Expand description
The LLVM intermediate representation.
Functions§
- Add a case to a
switch
instruction - Add a catch or filter clause to a
landingpad
instruction - Add a destination to an
indirectbr
instruction - Add a global indirect function to a module under a specified name.
- Add a destination to the catchswitch instruction
- Adds the metadata registered with the given builder to the given instruction.
- Add a module-level flag to the module-level flags metadata if it doesn’t already exist.
- Retrieve the target value of an alias.
- Set the target value of an alias.
- Append the given basic block to the basic block list of the given function.
- LLVM
Array ⚠Type Deprecated - Create a fixed size array type that refers to a specific type.
- Get the dafult floating-point math metadata for a given builder.
- Set the default floating-point math metadata for the given builder.
- Check if a given value can potentially have fast math flags.
- LLVM
Const ⚠Array Deprecated - Create a ConstantArray from values.
- LLVM
Const ⚠Inline Asm Deprecated - Get the diagnostic context of this context.
- Get the diagnostic handler of this context.
- Returns the module flags as an array of flag-key-value triples. The caller is responsible for freeing this array by calling LLVMDisposeModuleFlagsMetadata.
- Create an enum attribute.
- Create a new operand bundle.
- Create a string attribute.
- Create a type attribute.
- Remove the given instruction that is not inserted into a basic block. It must have previously been removed from its containing building block.
- Destroys module flags metadata entries.
- Destroy an operand bundle.
- Remove a global indirect function from its parent module and delete it.
- Get the number of funcletpad arguments.
- LLVM
GetArray ⚠Length Deprecated - Obtain the length of an array type.
- Get the string name of a basic block.
- Get a pointer to the function invoked by this instruction.
- Get the value of the clause with the given index on a landingpad instruction.
- Get location information used by debugging information.
- LLVM
GetData ⚠Layout Deprecated - Obtain the data layout for a module.
- LLVM
GetElement ⚠AsConstant Deprecated - Get the unique id corresponding to the provided enum attribute.
- Return a unique id given the name of an enum attribute, or 0 if no attribute by that name exists.
- Get the value of an enum attribute.
- Get the flags for which fast-math-style optimizations are allowed for this value.
- Obtain an iterator to the first GlobalAlias in a Module.
- Obtain an iterator to the first GlobalIFunc in a Module.
- Get the source element type of the given GEP operator.
- Retrieves the resolver function associated with this indirect function, or NULL if it doesn’t not exist.
- Obtain the basic blocks acting as handlers for a catchswitch instruction.
- Get the template string used for an inline assembly snippet.
- Get if the inline asm snippet may unwind the stack
- Get the raw constraint string for an inline assembly snippet.
- Get the dialect used by the inline asm snippet.
- Get the function type of the inline assembly snippet.
- Get if the inline asm snippet has side effects
- Get if the inline asm snippet needs an aligned stack
- Obtain the ID number from a function instance.
- Gets whether the instruction has the disjoint flag set.
- Obtain an iterator to the last GlobalAlias in a Module.
- Obtain an iterator to the last GlobalIFunc in a Module.
- Obtain the underlying string from a MDString value.
- Add a module-level flag to the module-level flags metadata if it doesn’t already exist.
- Get the identifier of a module.
- Gets if the instruction has the non-negative flag set.
- Obtain a GlobalAlias value from a Module by its name.
- Obtain a GlobalIFunc value from a Module by its name.
- Advance a GlobalAlias iterator to the next GlobalAlias.
- Advance a GlobalIFunc iterator to the next GlobalIFunc.
- Return the normal destination basic block of an invoke instruction.
- Get the number of clauses on a landingpad instruction.
- Return the number of types in the derived type.
- Get the number of handlers on the catchswitch instruction
- Get the number of indices on an ExtractValue, InsertValue or GEP operator.
- Obtain the number of operands for an operand bundle.
- Get the number of operand bundles attached to this instruction.
- Obtain the operand for an operand bundle at the given index.
- Get the operand bundle attached to this instruction at the given index.
- Obtain the tag of an operand bundle as a string.
- Get the parent catchswitch instruction of a catchpad instruction.
- Obtain the personality function attached to the function.
- Obtain a constant value referring to a poison value of a type.
- Decrement a GlobalAlias iterator to the previous GlobalAlias.
- Decrement a GlobalIFunc iterator to the previous GlobalIFunc.
- Obtain the module’s original source file name.
- Get a string attribute’s kind.
- Get a string attribute’s value.
- Get the subtypes of the given type.
- Get the type attribute’s value.
- LLVM
GetType ⚠ByName Deprecated - Obtain a Type from a context by its registered name.
- Return the unwind destination basic block.
- LLVM
GetValue ⚠Name Deprecated - Obtain the (possibly scalable) number of elements in a vector type.
- Check whether the given function has a personality function.
- LLVM
HasUnnamed ⚠Addr Deprecated - Insert the given basic block after the insertion point of the given builder.
- Remove the given instruction from its containing building block and delete it.
- Remove the given instruction from its containing building block but kept alive.
- LLVM
Intrinsic ⚠Copy Overloaded Name Deprecated - Get the cleanup flag in a landingpad instruction.
- Determine whether the specified value instance is constant.
- Determine whether a structure is packed.
- Determine whether a value instance is poisonous.
- Get whether a call instruction is a tail call.
- Obtain the intrinsic ID number which matches the given function name.
- LLVMMD
Node ⚠Deprecated - LLVMMD
Node ⚠InContext Deprecated - Create an MDNode value with the given array of operands.
- LLVMMD
String ⚠Deprecated - LLVMMD
String ⚠InContext Deprecated - Create an MDString value from a given string value.
- Obtain Metadata as a Value.
- Returns the flag behavior for a module flag entry at a specific index.
- Returns the key for a module flag entry at a specific index.
- Returns the metadata for a module flag entry at a specific index.
- Create an opaque pointer type in a context.
- Determine whether a pointer is opaque.
- Remove a global indirect function from its parent module.
- Replace an operand at a specific index in a llvm::MDNode value.
- Create a vector type that contains a defined type and has a scalable number of elements.
- Set a funcletpad argument at the given index.
- Set the cleanup flag in a
landingpad
instruction. - LLVM
SetCurrent ⚠Debug Location Deprecated - Set location information used by debugging information.
- Sets the flags for which fast-math-style optimizations are allowed for this value.
- Sets the resolver function associated with this indirect function.
- LLVM
SetInst ⚠Debug Location Deprecated Attempts to set the debug location for the given instruction using the current debug location for the given builder. If the builder has no current debug location, this function is a no-op. - Sets the disjoint flag for the instruction.
- Set the given GEP instruction to be inbounds or not.
- Set the identifier of a module.
- LLVM
SetModule ⚠Inline Asm Deprecated - Sets the non-negative flag for the instruction.
- Set the normal destination basic block.
- Set the parent catchswitch instruction of a catchpad instruction. This only works on llvm::CatchPadInst instructions.
- Set the personality function attached to the function.
- Set the original source file name of a module to a string Name with length Len.
- LLVM
SetUnnamed ⚠Addr Deprecated - Set the unwind destination basic block.
- LLVM
SetValue ⚠Name Deprecated - Deprecated: LLVM threading is configured at compile-time with
LLVM_ENABLE_THREADS
- Deprecated: LLVM threading is configured at compile-time with
LLVM_ENABLE_THREADS
- Get the type of the element at the given index in a structure.
- Obtain a Value as Metadata.