rocm.bindings.llvm.c.core#
2026-09-24
226 min read time
Advanced Micro Devices, Inc.
Attributes#
Classes#
External users depend on the following values being stable. |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
Tail call kind for LLVMSetTailCallKind and LLVMGetTailCallKind. |
|
(No short description) |
|
Contexts are execution states for the core LLVM IR system. |
|
(No short description) |
|
Represent different denormal handling kinds for use with |
Functions#
|
|
Deallocate and destroy all ManagedStatic variables. |
|
Return the major, minor, and patch version of LLVM |
|
|
===-- Error handling ----------------------------------------------------=== |
|
===-- Error handling ----------------------------------------------------=== |
Create a new context. |
|
Obtain the global context instance. |
|
|
Set the diagnostic handler for this context. |
Get the diagnostic handler of this context. |
|
Get the diagnostic context of this context. |
|
|
Set the yield callback function for this context. |
Retrieve whether the given context is set to discard all value names. |
|
|
Set whether the given context discards all value names. |
Destroy a context instance. |
|
Return a string representation of the DiagnosticInfo. |
|
Return an enum LLVMDiagnosticSeverity. |
|
|
Return an enum LLVMDiagnosticSeverity. |
|
(No short description, might be part of a group.) |
|
Maps a synchronization scope name to a ID unique within this context. |
|
Return an unique id given the name of a enum attribute, |
Return an unique id given the name of a enum attribute, |
|
|
Create an enum attribute. |
Get the unique id corresponding to the enum attribute |
|
Get the enum attribute's value. 0 is returned if none exists. |
|
|
Create a type attribute |
Get the type attribute's value. |
|
|
Create a ConstantRange attribute. |
|
Create a DenormalFPEnv attribute. |
|
Create a string attribute. |
|
Get the string attribute's kind. |
|
Get the string attribute's value. |
Check for the different types of attributes. |
|
Check for the different types of attributes. |
|
Check for the different types of attributes. |
|
|
Obtain a Type from a context by its registered name. |
|
Create a new, empty module in the global context. |
|
Create a new, empty module in a specific context. |
Return an exact copy of the specified module. |
|
Destroy a module instance. |
|
Soon to be deprecated. |
|
|
Soon to be deprecated. |
|
Obtain the identifier of a module. |
|
Set the identifier of a module to a string Ident with length Len. |
|
Obtain the module's original source file name. |
|
Set the original source file name of a module to a string Name with length |
Obtain the data layout for a module. |
|
Obtain the data layout for a module. |
|
|
Set the data layout for a module. |
Obtain the target triple for a module. |
|
|
Set the target triple for a module. |
|
Returns the module flags as an array of flag-key-value triples. |
|
Destroys module flags metadata entries. |
|
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. |
|
Add a module-level flag to the module-level flags metadata if it doesn't |
|
Add a module-level flag to the module-level flags metadata if it doesn't |
Dump a representation of a module to stderr. |
|
|
Print a representation of a module to a file. |
Return a string representation of the module. |
|
|
Get inline assembly for a module. |
|
Set inline assembly for a module. |
|
Append inline assembly to a module. |
|
Create the specified uniqued inline asm string. |
|
Get the template string used for an inline assembly snippet |
|
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 |
|
Get if the inline asm snippet may unwind the stack |
Obtain the context to which this module is associated. |
|
|
Deprecated: Use LLVMGetTypeByName2 instead. |
Obtain an iterator to the first NamedMDNode in a Module. |
|
Obtain an iterator to the last NamedMDNode in a Module. |
|
|
Advance a NamedMDNode iterator to the next NamedMDNode. |
|
Decrement a NamedMDNode iterator to the previous NamedMDNode. |
|
Retrieve a NamedMDNode with the given name, returning NULL if no such |
|
Retrieve a NamedMDNode with the given name, creating a new node if no such |
|
Retrieve the name of a NamedMDNode. |
|
Obtain the number of operands for named metadata in a module. |
|
Obtain the named metadata operands for a module. |
|
Add an operand to named metadata. |
|
Return the directory of the debug location for this value, which must be |
|
Return the filename of the debug location for this value, which must be |
|
Return the line number of the debug location for this value, which must be |
Return the column number of the debug location for this value, which must be |
|
|
Add a function to a module under a specified name. |
|
Obtain or insert a function into a module. |
|
Obtain a Function value from a Module by its name. |
|
Obtain a Function value from a Module by its name. |
Obtain an iterator to the first Function in a Module. |
|
Obtain an iterator to the last Function in a Module. |
|
Advance a Function iterator to the next Function. |
|
Decrement a Function iterator to the previous Function. |
|
|
Deprecated: Use LLVMSetModuleInlineAsm2 instead. |
|
Obtain the enumerated type of a Type instance. |
|
Whether the type has a known size. |
Obtain the context to which this type instance is associated. |
|
|
Dump a representation of a type to stderr. |
Return a string representation of the type. |
|
|
Obtain a byte type from a context with specified bit width. |
|
Obtain a byte type from a context with specified bit width. |
Obtain an integer type from a context with specified bit width. |
|
Obtain an integer type from a context with specified bit width. |
|
Obtain an integer type from a context with specified bit width. |
|
Obtain an integer type from a context with specified bit width. |
|
Obtain an integer type from a context with specified bit width. |
|
Obtain an integer type from a context with specified bit width. |
|
|
Obtain an integer type from a context with specified bit width. |
Obtain an integer type from the global context with a specified bit |
|
(No short description, might be part of a group.) |
|
(No short description, might be part of a group.) |
|
(No short description, might be part of a group.) |
|
(No short description, might be part of a group.) |
|
(No short description, might be part of a group.) |
|
|
(No short description, might be part of a group.) |
|
Obtain an integer type from the global context with a specified bit |
Obtain a 16-bit floating point type from a context. |
|
Obtain a 16-bit brain floating point type from a context. |
|
Obtain a 32-bit floating point type from a context. |
|
Obtain a 64-bit floating point type from a context. |
|
Obtain a 80-bit floating point type (X87) from a context. |
|
Obtain a 128-bit floating point type (112-bit mantissa) from a |
|
Obtain a 128-bit floating point type (two 64-bits) from a context. |
|
Obtain a floating point type from the global context. |
|
(No short description, might be part of a group.) |
|
(No short description, might be part of a group.) |
|
(No short description, might be part of a group.) |
|
(No short description, might be part of a group.) |
|
(No short description, might be part of a group.) |
|
(No short description, might be part of a group.) |
|
|
Obtain a function type consisting of a specified signature. |
|
Returns whether a function type is variadic. |
|
Obtain the Type this function Type returns. |
|
Obtain the number of parameters this function accepts. |
|
Obtain the types of a function's parameters. |
|
Create a new structure type in a context. |
|
Create a new structure type in the global context. |
|
Create an empty structure in a context having a specified name. |
Obtain the name of a structure. |
|
|
Set the contents of a structure type. |
|
Get the number of elements defined inside the structure. |
|
Get the elements within a structure. |
|
Get the type of the element at a given index in the structure. |
|
Determine whether a structure is packed. |
|
Determine whether a structure is opaque. |
|
Determine whether a structure is literal. |
Obtain the element type of an array or vector type. |
|
|
Returns type's subtypes |
Return the number of types in the derived type. |
|
|
Create a fixed size array type that refers to a specific type. |
|
Create a fixed size array type that refers to a specific type. |
|
Obtain the length of an array type. |
|
Obtain the length of an array type. |
|
Create a pointer type that points to a defined type. |
Determine whether a pointer is opaque. |
|
|
Create an opaque pointer type in a context. |
|
Obtain the address space of a pointer type. |
|
Create a vector type that contains a defined type and has a specific |
|
Create a vector type that contains a defined type and has a scalable |
|
Obtain the (possibly scalable) number of elements in a vector type. |
|
Get the pointer value for the associated ConstantPtrAuth constant. |
|
Get the key value for the associated ConstantPtrAuth constant. |
|
Get the discriminator value for the associated ConstantPtrAuth constant. |
Get the address discriminator value for the associated ConstantPtrAuth |
|
Create a void type in a context. |
|
Create a label type in a context. |
|
Create a X86 AMX type in a context. |
|
Create a token type in a context. |
|
Create a metadata type in a context. |
|
These are similar to the above functions except they operate on the |
|
(No short description, might be part of a group.) |
|
(No short description, might be part of a group.) |
|
|
Create a target extension type in LLVM context. |
|
Obtain the name for this target extension type. |
|
Obtain the number of type parameters for this target extension type. |
|
Get the type parameter at the given index for the target extension type. |
|
Obtain the number of int parameters for this target extension type. |
|
Get the int parameter at the given index for the target extension type. |
|
Obtain the type of a value. |
|
Obtain the enumerated type of a Value instance. |
|
Obtain the string name of a value. |
|
Set the string name of a value. |
|
Dump a representation of a value to stderr. |
Return a string representation of the value. |
|
|
Obtain the context to which this value is associated. |
|
Return a string representation of the DbgRecord. |
|
Replace all uses of a value with another one. |
|
Determine whether the specified value instance is constant. |
|
Determine whether a value instance is undefined. |
|
Determine whether a value instance is poisonous. |
|
(No short description, might be part of a group.) |
|
(No short description, might be part of a group.) |
|
(No short description, might be part of a group.) |
|
(No short description, might be part of a group.) |
|
(No short description, might be part of a group.) |
|
(No short description, might be part of a group.) |
(No short description, might be part of a group.) |
|
|
(No short description, might be part of a group.) |
(No short description, might be part of a group.) |
|
(No short description, might be part of a group.) |
|
(No short description, might be part of a group.) |
|
|
(No short description, might be part of a group.) |
|
(No short description, might be part of a group.) |
|
(No short description, might be part of a group.) |
|
(No short description, might be part of a group.) |
(No short description, might be part of a group.) |
|
(No short description, might be part of a group.) |
|
(No short description, might be part of a group.) |
|
(No short description, might be part of a group.) |
|
(No short description, might be part of a group.) |
|
|
(No short description, might be part of a group.) |
|
(No short description, might be part of a group.) |
|
(No short description, might be part of a group.) |
|
(No short description, might be part of a group.) |
(No short description, might be part of a group.) |
|
|
(No short description, might be part of a group.) |
|
(No short description, might be part of a group.) |
|
(No short description, might be part of a group.) |
|
(No short description, might be part of a group.) |
|
(No short description, might be part of a group.) |
(No short description, might be part of a group.) |
|
|
(No short description, might be part of a group.) |
|
(No short description, might be part of a group.) |
(No short description, might be part of a group.) |
|
(No short description, might be part of a group.) |
|
(No short description, might be part of a group.) |
|
|
(No short description, might be part of a group.) |
|
(No short description, might be part of a group.) |
|
(No short description, might be part of a group.) |
|
(No short description, might be part of a group.) |
|
(No short description, might be part of a group.) |
|
(No short description, might be part of a group.) |
|
(No short description, might be part of a group.) |
|
(No short description, might be part of a group.) |
(No short description, might be part of a group.) |
|
(No short description, might be part of a group.) |
|
(No short description, might be part of a group.) |
|
(No short description, might be part of a group.) |
|
(No short description, might be part of a group.) |
|
|
(No short description, might be part of a group.) |
|
(No short description, might be part of a group.) |
(No short description, might be part of a group.) |
|
|
(No short description, might be part of a group.) |
|
(No short description, might be part of a group.) |
|
(No short description, might be part of a group.) |
(No short description, might be part of a group.) |
|
|
(No short description, might be part of a group.) |
|
(No short description, might be part of a group.) |
|
(No short description, might be part of a group.) |
(No short description, might be part of a group.) |
|
|
(No short description, might be part of a group.) |
(No short description, might be part of a group.) |
|
(No short description, might be part of a group.) |
|
(No short description, might be part of a group.) |
|
|
(No short description, might be part of a group.) |
(No short description, might be part of a group.) |
|
|
(No short description, might be part of a group.) |
(No short description, might be part of a group.) |
|
(No short description, might be part of a group.) |
|
|
(No short description, might be part of a group.) |
|
(No short description, might be part of a group.) |
(No short description, might be part of a group.) |
|
|
(No short description, might be part of a group.) |
|
(No short description, might be part of a group.) |
|
(No short description, might be part of a group.) |
|
(No short description, might be part of a group.) |
|
(No short description, might be part of a group.) |
|
(No short description, might be part of a group.) |
|
(No short description, might be part of a group.) |
|
(No short description, might be part of a group.) |
|
(No short description, might be part of a group.) |
|
(No short description, might be part of a group.) |
|
(No short description, might be part of a group.) |
|
(No short description, might be part of a group.) |
(No short description, might be part of a group.) |
|
|
(No short description, might be part of a group.) |
|
(No short description, might be part of a group.) |
|
(No short description, might be part of a group.) |
(No short description, might be part of a group.) |
|
|
(No short description, might be part of a group.) |
|
(No short description, might be part of a group.) |
|
(No short description, might be part of a group.) |
|
Convert value instances between types. |
Convert value instances between types. |
|
|
Convert value instances between types. |
|
Deprecated: Use LLVMGetValueName2 instead. |
|
Deprecated: Use LLVMSetValueName2 instead. |
|
Obtain the first use of a value. |
Obtain the next use of a value. |
|
|
Obtain the user value for a user. |
Obtain the value this use corresponds to. |
|
|
Obtain an operand at a specific index in a llvm::User value. |
|
Obtain the use of an operand at a specific index in a llvm::User value. |
|
Set an operand at a specific index in a llvm::User value. |
|
Obtain the number of operands in a llvm::User value. |
|
Obtain a constant value referring to the null instance of a type. |
|
Obtain a constant value referring to the instance of a type |
|
Obtain a constant value referring to an undefined value of a type. |
|
Obtain a constant value referring to a poison value of a type. |
|
Determine whether a value instance is null. |
Obtain a constant that is a constant pointer pointing to NULL for a |
|
|
Obtain a constant value for an integer type. |
|
Obtain a constant value for an integer of arbitrary precision. |
|
Obtain a constant value for an integer parsed from a string. |
|
Obtain a constant value for an integer parsed from a string with |
|
Obtain a constant value for a byte type. |
|
Obtain a constant value for a byte of arbitrary precision. |
|
Obtain a constant value for a byte parsed from a string with specified |
|
Obtain a constant value referring to a double floating point value. |
|
Obtain a constant for a floating point value parsed from a string. |
|
Obtain a constant for a floating point value parsed from a string. |
|
Obtain a constant for a floating point value from array of 64 bit values. |
|
Obtain the zero extended value for an integer constant value. |
|
Obtain the sign extended value for an integer constant value. |
|
Obtain the zero extended value for a byte constant value. |
|
Obtain the sign extended value for a byte constant value. |
|
Obtain the double value for an floating point constant value. |
|
Create a ConstantDataSequential and initialize it with a string. |
|
Create a ConstantDataSequential and initialize it with a string. |
|
Create a ConstantDataSequential with string content in the global context. |
Returns true if the specified constant is an array of i8. |
|
|
Get the given constant data sequential as a string. |
|
Get the raw, underlying bytes of the given constant data sequential. |
|
Create an anonymous ConstantStruct with the specified values. |
|
Create a ConstantStruct in the global Context. |
|
Create a ConstantArray from values. |
|
Create a ConstantArray from values. |
|
Create a ConstantDataArray from raw values. |
|
Create a non-anonymous ConstantStruct from values. |
|
Get element of a constant aggregate (struct, array or vector) at the |
|
Get an element at specified index as a constant. |
|
Create a ConstantVector from values. |
|
Create a ConstantPtrAuth constant with the given values. |
|
Functions in this group correspond to APIs on llvm::ConstantExpr. |
|
Functions in this group correspond to APIs on llvm::ConstantExpr. |
|
Functions in this group correspond to APIs on llvm::ConstantExpr. |
|
Functions in this group correspond to APIs on llvm::ConstantExpr. |
|
Functions in this group correspond to APIs on llvm::ConstantExpr. |
|
(No short description, might be part of a group.) |
|
Functions in this group correspond to APIs on llvm::ConstantExpr. |
|
Functions in this group correspond to APIs on llvm::ConstantExpr. |
|
Functions in this group correspond to APIs on llvm::ConstantExpr. |
|
Functions in this group correspond to APIs on llvm::ConstantExpr. |
|
Functions in this group correspond to APIs on llvm::ConstantExpr. |
|
Functions in this group correspond to APIs on llvm::ConstantExpr. |
|
Functions in this group correspond to APIs on llvm::ConstantExpr. |
|
Functions in this group correspond to APIs on llvm::ConstantExpr. |
|
Functions in this group correspond to APIs on llvm::ConstantExpr. |
|
Functions in this group correspond to APIs on llvm::ConstantExpr. |
|
Creates a constant GetElementPtr expression. |
|
Creates a constant GetElementPtr expression. |
|
Creates a constant GetElementPtr expression. |
|
Creates a constant GetElementPtr expression. |
|
Creates a constant GetElementPtr expression. |
|
Creates a constant GetElementPtr expression. |
|
Creates a constant GetElementPtr expression. |
|
Creates a constant GetElementPtr expression. |
|
Creates a constant GetElementPtr expression. |
|
Creates a constant GetElementPtr expression. |
|
Creates a constant GetElementPtr expression. |
|
Creates a constant GetElementPtr expression. |
|
Gets the function associated with a given BlockAddress constant value. |
|
Gets the basic block associated with a given BlockAddress constant value. |
|
Deprecated: Use LLVMGetInlineAsm instead. |
|
This group contains functions that operate on global values. |
|
This group contains functions that operate on global values. |
|
This group contains functions that operate on global values. |
|
This group contains functions that operate on global values. |
|
This group contains functions that operate on global values. |
|
This group contains functions that operate on global values. |
|
This group contains functions that operate on global values. |
|
This group contains functions that operate on global values. |
|
This group contains functions that operate on global values. |
|
This group contains functions that operate on global values. |
|
This group contains functions that operate on global values. |
|
This group contains functions that operate on global values. |
|
Returns the "value type" of a global value. |
|
Deprecated: Use LLVMGetUnnamedAddress instead. |
|
Deprecated: Use LLVMSetUnnamedAddress instead. |
Obtain the preferred alignment of the value. |
|
|
Set the preferred alignment of the value. |
|
Sets a metadata attachment, erasing the existing metadata attachment if |
|
Adds a metadata attachment. |
|
Erases a metadata attachment of the given kind if it exists. |
|
Removes all metadata attachments from this value. |
|
Add debuginfo metadata to this global. |
|
Retrieves an array of metadata entries representing the metadata attached to |
|
Destroys value metadata entries. |
|
Returns the kind of a value metadata entry at a specific index. |
|
Returns the underlying metadata node of a value metadata entry at a |
|
This group contains functions that operate on global variable values. |
|
This group contains functions that operate on global variable values. |
|
This group contains functions that operate on global variable values. |
|
This group contains functions that operate on global variable values. |
This group contains functions that operate on global variable values. |
|
This group contains functions that operate on global variable values. |
|
|
This group contains functions that operate on global variable values. |
|
This group contains functions that operate on global variable values. |
|
This group contains functions that operate on global variable values. |
|
This group contains functions that operate on global variable values. |
|
This group contains functions that operate on global variable values. |
|
This group contains functions that operate on global variable values. |
|
This group contains functions that operate on global variable values. |
|
This group contains functions that operate on global variable values. |
|
This group contains functions that operate on global variable values. |
|
This group contains functions that operate on global variable values. |
|
This group contains functions that operate on global variable values. |
|
This group contains functions that operate on global variable values. |
|
This group contains functions that operate on global variable values. |
|
Add a GlobalAlias with the given value type, address space and aliasee. |
|
Obtain a GlobalAlias value from a Module by its name. |
Obtain an iterator to the first GlobalAlias in a Module. |
|
Obtain an iterator to the last GlobalAlias in a Module. |
|
Advance a GlobalAlias iterator to the next GlobalAlias. |
|
Decrement a GlobalAlias iterator to the previous GlobalAlias. |
|
|
Retrieve the target value of an alias. |
|
Set the target value of an alias. |
Remove a function from its containing module and deletes it. |
|
Check whether the given function has a personality function. |
|
Obtain the personality function attached to the function. |
|
|
Set the personality function attached to the function. |
|
Obtain the intrinsic ID number which matches the given function name. |
Obtain the ID number from a function instance. |
|
|
Get or insert the declaration of an intrinsic. |
|
Retrieves the type of an intrinsic. |
|
Retrieves the name of an intrinsic. |
|
Deprecated: Use LLVMIntrinsicCopyOverloadedName2 instead. |
|
Copies the name of an overloaded intrinsic identified by a given list of |
Obtain if the intrinsic identified by the given ID is overloaded. |
|
Obtain the calling function of a function. |
|
|
Set the calling convention of a function. |
|
Obtain the name of the garbage collector to use during code |
|
Define the garbage collector to use during code generation. |
Gets the prefix data associated with a function. |
|
Check if a given function has prefix data. |
|
|
Sets the prefix data for the function. |
Gets the prologue data associated with a function. |
|
Check if a given function has prologue data. |
|
|
Sets the prologue data for the function. |
|
Add an attribute to a function. |
|
Add an attribute to a function. |
|
Add an attribute to a function. |
|
Add an attribute to a function. |
|
Add an attribute to a function. |
|
Add an attribute to a function. |
|
Add an attribute to a function. |
|
Add a target-dependent attribute to a function |
|
Obtain the number of parameters in a function. |
|
Obtain the parameters in a function. |
|
Obtain the parameter at the specified index. |
|
Obtain the function to which this argument belongs. |
Obtain the first parameter to a function. |
|
|
Obtain the last parameter to a function. |
|
Obtain the next parameter to a function. |
|
Obtain the previous parameter to a function. |
|
Set the alignment for a function parameter. |
|
Add a global indirect function to a module under a specified name. |
|
Obtain a GlobalIFunc value from a Module by its name. |
Obtain an iterator to the first GlobalIFunc in a Module. |
|
Obtain an iterator to the last GlobalIFunc in a Module. |
|
|
Advance a GlobalIFunc iterator to the next GlobalIFunc. |
|
Decrement a GlobalIFunc iterator to the previous GlobalIFunc. |
|
Retrieves the resolver function associated with this indirect function, or |
|
Sets the resolver function associated with this indirect function. |
|
Remove a global indirect function from its parent module and delete it. |
|
Remove a global indirect function from its parent module. |
|
Create an MDString value from a given string value. |
|
Create an MDNode value with the given array of operands. |
|
Obtain a Metadata as a Value. |
|
Obtain a Value as a Metadata. |
|
Obtain the underlying string from a MDString value. |
Obtain the number of operands from an MDNode value. |
|
|
Obtain the given MDNode's operands. |
|
Replace an operand at a specific index in a llvm::MDNode value. |
|
Deprecated: Use LLVMMDStringInContext2 instead. |
|
Deprecated: Use LLVMMDStringInContext2 instead. |
|
Deprecated: Use LLVMMDNodeInContext2 instead. |
|
Deprecated: Use LLVMMDNodeInContext2 instead. |
|
Create a new operand bundle. |
|
Destroy an operand bundle. |
|
Obtain the tag of an operand bundle as a string. |
|
Obtain the number of operands for an operand bundle. |
|
Obtain the operand for an operand bundle at the given index. |
Convert a basic block instance to a value type. |
|
Determine whether an LLVMValueRef is itself a basic block. |
|
Convert an LLVMValueRef to an LLVMBasicBlockRef instance. |
|
Obtain the string name of a basic block. |
|
Obtain the function to which a basic block belongs. |
|
Obtain the terminator instruction for a basic block. |
|
Obtain the number of basic blocks in a function. |
|
|
Obtain all of the basic blocks in a function. |
Obtain the first basic block in a function. |
|
Obtain the last basic block in a function. |
|
Advance a basic block iterator. |
|
Go backwards in a basic block iterator. |
|
Obtain the basic block that corresponds to the entry point of a |
|
|
Insert the given basic block after the insertion point of the given builder. |
|
Append the given basic block to the basic block list of the given function. |
|
Create a new basic block without inserting it into a function. |
|
Append a basic block to the end of a function. |
|
Append a basic block to the end of a function using the global |
|
Insert a basic block in a function before another basic block. |
|
Insert a basic block in a function using the global context. |
Remove a basic block from a function and delete it. |
|
Remove a basic block from a function. |
|
|
Move a basic block to before another one. |
|
Move a basic block to after another one. |
Obtain the first instruction in a basic block. |
|
Obtain the last instruction in a basic block. |
|
|
Determine whether an instruction has any metadata attached. |
|
Return metadata associated with an instruction value. |
|
Set metadata associated with an instruction value. |
|
Returns the metadata associated with an instruction value, but filters out |
|
Obtain the basic block to which an instruction belongs. |
|
Obtain the instruction that occurs after the one specified. |
Obtain the instruction that occurred before this one. |
|
Remove an instruction. |
|
Remove and delete an instruction. |
|
|
Delete an instruction. |
|
Obtain the code opcode for an individual instruction. |
|
Obtain the predicate of an instruction. |
|
Get whether or not an icmp instruction has the samesign flag. |
|
Set the samesign flag on an icmp instruction. |
|
Obtain the float predicate of an instruction. |
|
Create a copy of 'this' instruction that is identical in all ways except the following: * The instruction has no parent * The instruction has no name |
|
Determine whether an instruction is a terminator. |
|
Obtain the first debug record attached to an instruction. |
|
Obtain the last debug record attached to an instruction. |
|
Obtain the next DbgRecord in the sequence or NULL if there are no more. |
|
Obtain the previous DbgRecord in the sequence or NULL if there are no more. |
Get the debug location attached to the debug record. |
|
|
Get the debug location attached to the debug record. |
|
Get the value of the DbgVariableRecord. |
Get the debug info variable of the DbgVariableRecord. |
|
Get the debug info expression of the DbgVariableRecord. |
|
|
Obtain the argument count for a call instruction. |
|
Set the calling convention for a call instruction. |
|
Obtain the calling convention for a call instruction. |
|
Obtain the calling convention for a call instruction. |
|
Obtain the calling convention for a call instruction. |
|
Obtain the calling convention for a call instruction. |
|
Obtain the calling convention for a call instruction. |
|
Obtain the calling convention for a call instruction. |
|
Obtain the calling convention for a call instruction. |
|
Obtain the calling convention for a call instruction. |
|
Obtain the calling convention for a call instruction. |
Obtain the function type called by this instruction. |
|
|
Obtain the pointer to the function invoked by this instruction. |
Obtain the number of operand bundles attached to this instruction. |
|
|
Obtain the operand bundle attached to this instruction at the given index. |
|
Obtain whether a call instruction is a tail call. |
|
Set whether a call instruction is a tail call. |
|
Obtain a tail call kind of the call instruction. |
|
Set the call kind of the call instruction. |
|
Return the normal destination basic block. |
|
Return the unwind destination basic block. |
|
Set the normal destination basic block. |
|
Set the unwind destination basic block. |
|
Get the default destination of a CallBr instruction. |
|
Get the number of indirect destinations of a CallBr instruction. |
|
Get the indirect destination of a CallBr instruction at the given index. |
|
Return the number of successors that this terminator has. |
|
Return the specified successor. |
|
Update the specified successor to point at the provided block. |
|
Return if an instruction is a conditional branch. |
|
Return the condition of a branch instruction. |
|
Set the condition of a branch instruction. |
|
Obtain the default destination basic block of a switch instruction. |
|
Obtain the case value for a successor of a switch instruction. |
|
Set the case value for a successor of a switch instruction. |
|
Obtain the type that is being allocated by the alloca instruction. |
|
Check whether the given GEP operator is inbounds. |
|
Set the given GEP instruction to be inbounds or not. |
Get the source element type of the given GEP operator. |
|
Get the no-wrap related flags for the given GEP instruction. |
|
|
Set the no-wrap related flags for the given GEP instruction. |
|
Add an incoming value to the end of a PHI list. |
|
Obtain the number of incoming basic blocks to a PHI node. |
|
Obtain an incoming value to a PHI node as an LLVMValueRef. |
|
Obtain an incoming value to a PHI node as an LLVMBasicBlockRef. |
|
Obtain the number of indices. |
|
Obtain the indices as an array. |
An instruction builder represents a point within a basic block and is |
|
(No short description, might be part of a group.) |
|
|
Set the builder position before Instr but after any attached debug records, |
|
Set the builder position before Instr and any attached debug records, |
|
Set the builder position before Instr but after any attached debug records. |
|
Set the builder position before Instr and any attached debug records. |
|
Set the builder position before Instr and any attached debug records. |
|
Set the builder position before Instr and any attached debug records. |
|
Set the builder position before Instr and any attached debug records. |
|
Set the builder position before Instr and any attached debug records. |
|
Set the builder position before Instr and any attached debug records. |
|
Set the builder position before Instr and any attached debug records. |
|
Get location information used by debugging information. |
|
Set location information used by debugging information. |
|
Attempts to set the debug location for the given instruction using the |
|
Adds the metadata registered with the given builder to the given instruction. |
|
Get the dafult floating-point math metadata for a given builder. |
|
Set the default floating-point math metadata for the given builder. |
|
Obtain the context to which this builder is associated. |
|
Deprecated: Passing the NULL location will crash. |
|
Deprecated: Returning the NULL location will crash. |
|
Terminators |
|
Terminators |
|
Terminators |
|
Terminators |
|
Terminators |
|
Terminators |
|
Terminators |
|
Terminators |
|
Terminators |
|
Terminators |
|
Terminators |
|
Exception Handling |
|
Exception Handling |
|
Exception Handling |
|
Exception Handling |
|
Exception Handling |
|
Exception Handling |
|
Exception Handling |
|
Add a case to the switch instruction |
|
Add a destination to the indirectbr instruction |
|
Get the number of clauses on the landingpad instruction |
|
Get the value of the clause at index Idx on the landingpad instruction |
|
Add a catch or filter clause to the landingpad instruction |
|
Get the 'cleanup' flag in the landingpad instruction |
|
Set the 'cleanup' flag in the landingpad instruction |
|
Add a destination to the catchswitch instruction |
|
Get the number of handlers on the catchswitch instruction |
|
Obtain the basic blocks acting as handlers for a catchswitch instruction. |
|
Get the number of funcletpad arguments. |
|
Set a funcletpad argument at the given index. |
|
Get the parent catchswitch instruction of a catchpad instruction. |
|
Set the parent catchswitch instruction of a catchpad instruction. |
|
Arithmetic |
|
Arithmetic |
|
Arithmetic |
|
Arithmetic |
|
Arithmetic |
|
Arithmetic |
|
Arithmetic |
|
Arithmetic |
|
Arithmetic |
|
Arithmetic |
|
Arithmetic |
|
Arithmetic |
|
Arithmetic |
|
Arithmetic |
|
Arithmetic |
|
Arithmetic |
|
Arithmetic |
|
Arithmetic |
|
Arithmetic |
|
Arithmetic |
|
Arithmetic |
|
Arithmetic |
|
Arithmetic |
|
Arithmetic |
|
Arithmetic |
|
Arithmetic |
|
Arithmetic |
|
Arithmetic |
|
Arithmetic |
|
(No short description, might be part of a group.) |
|
Arithmetic |
|
Arithmetic |
|
Arithmetic |
|
Arithmetic |
|
Arithmetic |
|
Arithmetic |
|
Arithmetic |
|
Arithmetic |
|
Gets if the instruction has the non-negative flag set. |
|
Sets the non-negative flag for the instruction. |
|
Get the flags for which fast-math-style optimizations are allowed for this |
|
Sets the flags for which fast-math-style optimizations are allowed for this |
Check if a given value can potentially have fast math flags. |
|
|
Gets whether the instruction has the disjoint flag set. |
|
Sets the disjoint flag for the instruction. |
|
Memory |
|
Memory |
|
Creates and inserts a memset to the specified pointer and the |
|
Creates and inserts a memcpy between the specified pointers. |
|
Creates and inserts a memmove between the specified pointers. |
|
Creates and inserts a memmove between the specified pointers. |
|
Creates and inserts a memmove between the specified pointers. |
|
Creates and inserts a memmove between the specified pointers. |
|
Creates and inserts a memmove between the specified pointers. |
|
Creates and inserts a memmove between the specified pointers. |
|
Creates and inserts a memmove between the specified pointers. |
|
Creates and inserts a memmove between the specified pointers. |
|
Creates a GetElementPtr instruction. |
|
Creates a GetElementPtr instruction. |
|
Creates a GetElementPtr instruction. |
|
Deprecated: Use LLVMBuildGlobalString instead, which has identical behavior. |
|
Deprecated: Use LLVMBuildGlobalString instead, which has identical behavior. |
|
Deprecated: Use LLVMBuildGlobalString instead, which has identical behavior. |
|
Deprecated: Use LLVMBuildGlobalString instead, which has identical behavior. |
|
Deprecated: Use LLVMBuildGlobalString instead, which has identical behavior. |
|
Deprecated: Use LLVMBuildGlobalString instead, which has identical behavior. |
|
Deprecated: Use LLVMBuildGlobalString instead, which has identical behavior. |
|
Deprecated: Use LLVMBuildGlobalString instead, which has identical behavior. |
|
Deprecated: Use LLVMBuildGlobalString instead, which has identical behavior. |
|
Casts |
|
Casts |
|
Casts |
|
Casts |
|
Casts |
|
Casts |
|
Casts |
|
Casts |
|
Casts |
|
Casts |
|
Casts |
|
Casts |
|
Casts |
|
Casts |
|
Casts |
|
Casts |
|
Casts |
|
Casts |
|
Casts |
|
Casts |
|
Deprecated: This cast is always signed. Use LLVMBuildIntCast2 instead. |
|
Signed cast! |
|
Comparisons |
|
Comparisons |
|
Miscellaneous instructions |
|
Miscellaneous instructions |
|
Miscellaneous instructions |
|
Miscellaneous instructions |
|
Miscellaneous instructions |
|
Miscellaneous instructions |
|
Miscellaneous instructions |
|
Miscellaneous instructions |
|
Miscellaneous instructions |
|
Miscellaneous instructions |
|
Miscellaneous instructions |
|
Miscellaneous instructions |
|
Miscellaneous instructions |
|
Miscellaneous instructions |
|
Miscellaneous instructions |
|
Miscellaneous instructions |
|
Miscellaneous instructions |
|
Miscellaneous instructions |
|
Miscellaneous instructions |
|
Miscellaneous instructions |
|
Get the number of elements in the mask of a ShuffleVector instruction. |
a constant that specifies that the result of a |
|
|
Get the mask value at position Elt in the mask of a ShuffleVector |
|
Get the mask value at position Elt in the mask of a ShuffleVector |
|
Get the mask value at position Elt in the mask of a ShuffleVector |
|
Returns whether an instruction is an atomic instruction, e.g., atomicrmw, |
|
Returns the synchronization scope ID of an atomic instruction. |
|
Sets the synchronization scope ID of an atomic instruction. |
|
Sets the synchronization scope ID of an atomic instruction. |
|
Sets the synchronization scope ID of an atomic instruction. |
|
Sets the synchronization scope ID of an atomic instruction. |
|
Sets the synchronization scope ID of an atomic instruction. |
Changes the type of M so it can be passed to FunctionPassManagers and the |
|
Destroys the module M. |
|
(No short description, might be part of a group.) |
|
(No short description, might be part of a group.) |
|
|
(No short description, might be part of a group.) |
|
(No short description, might be part of a group.) |
|
(No short description, might be part of a group.) |
|
(No short description, might be part of a group.) |
|
(No short description, might be part of a group.) |
Constructs a new whole-module pass pipeline. |
|
Constructs a new function-by-function pass pipeline over the module |
|
Deprecated: Use LLVMCreateFunctionPassManagerForModule instead. |
|
|
Initializes, executes on the provided module, and finalizes all of the |
Initializes all of the function passes scheduled in the function pass |
|
|
Executes all of the function passes scheduled in the function pass manager |
Finalizes all of the function passes scheduled in the function pass |
|
Frees the memory of a pass pipeline. |
|
Deprecated: Multi-threading can only be enabled/disabled with the compile |
|
Deprecated: Multi-threading can only be enabled/disabled with the compile |
|
Check whether LLVM is executing in thread-safe mode or not. |
Module Contents#
- class rocm.bindings.llvm.c.core.LLVMOpcode#
Bases:
enum.IntEnumExternal users depend on the following values being stable.
It is not safe to reorder them.
- class rocm.bindings.llvm.c.core.LLVMTypeKind#
Bases:
enum.IntEnum(No short description)
- class rocm.bindings.llvm.c.core.LLVMLinkage#
Bases:
enum.IntEnum(No short description)
- class rocm.bindings.llvm.c.core.LLVMVisibility#
Bases:
enum.IntEnum(No short description)
- class rocm.bindings.llvm.c.core.LLVMUnnamedAddr#
Bases:
enum.IntEnum(No short description)
- class rocm.bindings.llvm.c.core.LLVMDLLStorageClass#
Bases:
enum.IntEnum(No short description)
- class rocm.bindings.llvm.c.core.LLVMCallConv#
Bases:
enum.IntEnum(No short description)
- class rocm.bindings.llvm.c.core.LLVMValueKind#
Bases:
enum.IntEnum(No short description)
- class rocm.bindings.llvm.c.core.LLVMIntPredicate#
Bases:
enum.IntEnum(No short description)
- class rocm.bindings.llvm.c.core.LLVMRealPredicate#
Bases:
enum.IntEnum(No short description)
- class rocm.bindings.llvm.c.core.LLVMThreadLocalMode#
Bases:
enum.IntEnum(No short description)
- class rocm.bindings.llvm.c.core.LLVMAtomicOrdering#
Bases:
enum.IntEnum(No short description)
- class rocm.bindings.llvm.c.core.LLVMAtomicRMWBinOp#
Bases:
enum.IntEnum(No short description)
- class rocm.bindings.llvm.c.core.LLVMDiagnosticSeverity#
Bases:
enum.IntEnum(No short description)
- class rocm.bindings.llvm.c.core.LLVMInlineAsmDialect#
Bases:
enum.IntEnum(No short description)
- class rocm.bindings.llvm.c.core.LLVMModuleFlagBehavior#
Bases:
enum.IntEnum(No short description)
- class rocm.bindings.llvm.c.core.LLVMTailCallKind#
Bases:
enum.IntEnumTail call kind for LLVMSetTailCallKind and LLVMGetTailCallKind.
Note that ‘musttail’ implies ‘tail’.
- See:
CallInst::TailCallKind
- class rocm.bindings.llvm.c.core.LLVMDbgRecordKind#
Bases:
enum.IntEnum(No short description)
- rocm.bindings.llvm.c.core.LLVMShutdown()#
Deallocate and destroy all ManagedStatic variables.
- See:
llvm::llvm_shutdown
- See:
ManagedStatic
C signature
void LLVMShutdown()
- rocm.bindings.llvm.c.core.LLVMGetVersion()#
Return the major, minor, and patch version of LLVM
The version components are returned via the function’s three output parameters or skipped if a NULL pointer was supplied.
- Returns:
A
tupleof size 3 that contains (in that order):
C signature
void LLVMGetVersion(unsigned int * Major, unsigned int * Minor, unsigned int * Patch)
- rocm.bindings.llvm.c.core.LLVMCreateMessage(Message)#
===– Error handling —————————————————-===
C signature
char * LLVMCreateMessage(const char * Message)
- rocm.bindings.llvm.c.core.LLVMDisposeMessage(Message)#
===– Error handling —————————————————-===
C signature
void LLVMDisposeMessage(char * Message)
- class rocm.bindings.llvm.c.core.LLVMDiagnosticHandler(*args, **kwargs)#
Bases:
rocm.bindings.util.types.PointerContexts are execution states for the core LLVM IR system.
Most types are tied to a context instance. Multiple contexts can exist simultaneously. A single context is not thread safe. However, different contexts can execute on different threads simultaneously.
- class rocm.bindings.llvm.c.core.LLVMYieldCallback(*args, **kwargs)#
Bases:
rocm.bindings.util.types.Pointer(No short description)
- rocm.bindings.llvm.c.core.LLVMContextCreate()#
Create a new context.
Every call to this function should be paired with a call to LLVMContextDispose() or the context will leak memory.
- Returns:
None: (undocumented)
C signature
LLVMContextRef LLVMContextCreate()
- rocm.bindings.llvm.c.core.LLVMGetGlobalContext()#
Obtain the global context instance.
- Returns:
None: (undocumented)
C signature
LLVMContextRef LLVMGetGlobalContext()
- rocm.bindings.llvm.c.core.LLVMContextSetDiagnosticHandler(C, Handler, DiagnosticContext)#
Set the diagnostic handler for this context.
- Args:
C signature
void LLVMContextSetDiagnosticHandler(LLVMContextRef C, LLVMDiagnosticHandler Handler, void * DiagnosticContext)
- rocm.bindings.llvm.c.core.LLVMContextGetDiagnosticHandler(C)#
Get the diagnostic handler of this context.
C signature
LLVMDiagnosticHandler LLVMContextGetDiagnosticHandler(LLVMContextRef C)
- rocm.bindings.llvm.c.core.LLVMContextGetDiagnosticContext(C)#
Get the diagnostic context of this context.
C signature
void * LLVMContextGetDiagnosticContext(LLVMContextRef C)
- rocm.bindings.llvm.c.core.LLVMContextSetYieldCallback(C, Callback, OpaqueHandle)#
Set the yield callback function for this context.
- See:
LLVMContext::setYieldCallback()
- Args:
C signature
void LLVMContextSetYieldCallback(LLVMContextRef C, LLVMYieldCallback Callback, void * OpaqueHandle)
- rocm.bindings.llvm.c.core.LLVMContextShouldDiscardValueNames(C)#
Retrieve whether the given context is set to discard all value names.
- See:
LLVMContext::shouldDiscardValueNames()
- Args:
- Returns:
int: (undocumented)
C signature
LLVMBool LLVMContextShouldDiscardValueNames(LLVMContextRef C)
- rocm.bindings.llvm.c.core.LLVMContextSetDiscardValueNames(C, Discard)#
Set whether the given context discards all value names.
If true, only the names of GlobalValue objects will be available in the IR. This can be used to save memory and runtime, especially in release mode.
- See:
LLVMContext::setDiscardValueNames()
- Args:
C signature
void LLVMContextSetDiscardValueNames(LLVMContextRef C, LLVMBool Discard)
- rocm.bindings.llvm.c.core.LLVMContextDispose(C)#
Destroy a context instance.
This should be called for every call to LLVMContextCreate() or memory will be leaked.
C signature
void LLVMContextDispose(LLVMContextRef C)
- rocm.bindings.llvm.c.core.LLVMGetDiagInfoDescription(DI)#
Return a string representation of the DiagnosticInfo.
Use LLVMDisposeMessage to free the string.
C signature
char * LLVMGetDiagInfoDescription(LLVMDiagnosticInfoRef DI)
- rocm.bindings.llvm.c.core.LLVMGetDiagInfoSeverity(DI)#
Return an enum LLVMDiagnosticSeverity.
- See:
DiagnosticInfo::getSeverity()
- Args:
- Returns:
LLVMDiagnosticSeverity: (undocumented)
C signature
LLVMDiagnosticSeverity LLVMGetDiagInfoSeverity(LLVMDiagnosticInfoRef DI)
- rocm.bindings.llvm.c.core.LLVMGetMDKindIDInContext(C, Name, SLen)#
Return an enum LLVMDiagnosticSeverity.
- See:
DiagnosticInfo::getSeverity()
- Args:
- Returns:
int: (undocumented)
C signature
unsigned int LLVMGetMDKindIDInContext(LLVMContextRef C, const char * Name, unsigned int SLen)
- rocm.bindings.llvm.c.core.LLVMGetMDKindID(Name, SLen)#
(No short description, might be part of a group.)
C signature
unsigned int LLVMGetMDKindID(const char * Name, unsigned int SLen)
- rocm.bindings.llvm.c.core.LLVMGetSyncScopeID(C, Name, SLen)#
Maps a synchronization scope name to a ID unique within this context.
- Args:
- Returns:
int: (undocumented)
C signature
unsigned int LLVMGetSyncScopeID(LLVMContextRef C, const char * Name, size_t SLen)
- rocm.bindings.llvm.c.core.LLVMGetEnumAttributeKindForName(Name, SLen)#
Return an unique id given the name of a enum attribute, or 0 if no attribute by that name exists.
See http://llvm.org/docs/LangRef.html:py:obj:
parameter-attributes and http://llvm.org/docs/LangRef.html:py:obj:function-attributes for the list of available attributes.NB: Attribute names and/or id are subject to change without going through the C API deprecation cycle.
C signature
unsigned int LLVMGetEnumAttributeKindForName(const char * Name, size_t SLen)
- rocm.bindings.llvm.c.core.LLVMGetLastEnumAttributeKind()#
Return an unique id given the name of a enum attribute, or 0 if no attribute by that name exists.
See http://llvm.org/docs/LangRef.html:py:obj:
parameter-attributes and http://llvm.org/docs/LangRef.html:py:obj:function-attributes for the list of available attributes.NB: Attribute names and/or id are subject to change without going through the C API deprecation cycle.
- Returns:
int: (undocumented)
C signature
unsigned int LLVMGetLastEnumAttributeKind()
- rocm.bindings.llvm.c.core.LLVMCreateEnumAttribute(C, KindID, Val)#
Create an enum attribute.
- Args:
- Returns:
None: (undocumented)
C signature
LLVMAttributeRef LLVMCreateEnumAttribute(LLVMContextRef C, unsigned int KindID, uint64_t Val)
- rocm.bindings.llvm.c.core.LLVMGetEnumAttributeKind(A)#
Get the unique id corresponding to the enum attribute passed as argument.
C signature
unsigned int LLVMGetEnumAttributeKind(LLVMAttributeRef A)
- rocm.bindings.llvm.c.core.LLVMGetEnumAttributeValue(A)#
Get the enum attribute’s value. 0 is returned if none exists.
C signature
uint64_t LLVMGetEnumAttributeValue(LLVMAttributeRef A)
- rocm.bindings.llvm.c.core.LLVMCreateTypeAttribute(C, KindID, type_ref)#
Create a type attribute
- Args:
- Returns:
None: (undocumented)
C signature
LLVMAttributeRef LLVMCreateTypeAttribute(LLVMContextRef C, unsigned int KindID, LLVMTypeRef type_ref)
- rocm.bindings.llvm.c.core.LLVMGetTypeAttributeValue(A)#
Get the type attribute’s value.
C signature
LLVMTypeRef LLVMGetTypeAttributeValue(LLVMAttributeRef A)
- rocm.bindings.llvm.c.core.LLVMCreateConstantRangeAttribute(C, KindID, NumBits, LowerWords, UpperWords)#
Create a ConstantRange attribute.
LowerWords and UpperWords need to be NumBits divided by 64 rounded up elements long.
- Args:
- Returns:
None: (undocumented)
C signature
LLVMAttributeRef LLVMCreateConstantRangeAttribute(LLVMContextRef C, unsigned int KindID, unsigned int NumBits, const uint64_t[] LowerWords, const uint64_t[] UpperWords)
- class rocm.bindings.llvm.c.core.LLVMDenormalModeKind#
Bases:
enum.IntEnumRepresent different denormal handling kinds for use with LLVMCreateDenormalFPEnvAttribute.
- rocm.bindings.llvm.c.core.LLVMCreateDenormalFPEnvAttribute(C, DefaultModeOutput, DefaultModeInput, FloatModeOutput, FloatModeInput)#
Create a DenormalFPEnv attribute.
DefaultModeOutputis the assumed denormal handling for the outputs of mostfloating-point types.
DefaultModeInputis the assumed denormal handling for the inputs of mostfloating-point types.
FloatModeOutputis the assumed denormal handling for the outputs offloat. This should always be the same as as DefaultModeOutput for most targets.
FloatModeInputis the assumed denormal handling for the inputs offloat. This should always be the same as as DefaultModeInput for most targets.
- Args:
- C (
Pointer/object): (undocumented)
- DefaultModeOutput (
LLVMDenormalModeKind): (undocumented)
- DefaultModeInput (
LLVMDenormalModeKind): (undocumented)
- FloatModeOutput (
LLVMDenormalModeKind): (undocumented)
- FloatModeInput (
LLVMDenormalModeKind): (undocumented)
- C (
- Returns:
None: (undocumented)
C signature
LLVMAttributeRef LLVMCreateDenormalFPEnvAttribute(LLVMContextRef C, LLVMDenormalModeKind DefaultModeOutput, LLVMDenormalModeKind DefaultModeInput, LLVMDenormalModeKind FloatModeOutput, LLVMDenormalModeKind FloatModeInput)
- rocm.bindings.llvm.c.core.LLVMCreateStringAttribute(C, K, KLength, V, VLength)#
Create a string attribute.
- Args:
- Returns:
None: (undocumented)
C signature
LLVMAttributeRef LLVMCreateStringAttribute(LLVMContextRef C, const char * K, unsigned int KLength, const char * V, unsigned int VLength)
- rocm.bindings.llvm.c.core.LLVMGetStringAttributeKind(A, Length)#
Get the string attribute’s kind.
- Args:
- A (
Pointer/object): (undocumented)
- Length (
PointerToUnsigned/object): (undocumented)
- A (
- Returns:
bytes: (undocumented)
C signature
const char * LLVMGetStringAttributeKind(LLVMAttributeRef A, unsigned int * Length)
- rocm.bindings.llvm.c.core.LLVMGetStringAttributeValue(A, Length)#
Get the string attribute’s value.
- Args:
- A (
Pointer/object): (undocumented)
- Length (
PointerToUnsigned/object): (undocumented)
- A (
- Returns:
bytes: (undocumented)
C signature
const char * LLVMGetStringAttributeValue(LLVMAttributeRef A, unsigned int * Length)
- rocm.bindings.llvm.c.core.LLVMIsEnumAttribute(A)#
Check for the different types of attributes.
C signature
LLVMBool LLVMIsEnumAttribute(LLVMAttributeRef A)
- rocm.bindings.llvm.c.core.LLVMIsStringAttribute(A)#
Check for the different types of attributes.
C signature
LLVMBool LLVMIsStringAttribute(LLVMAttributeRef A)
- rocm.bindings.llvm.c.core.LLVMIsTypeAttribute(A)#
Check for the different types of attributes.
C signature
LLVMBool LLVMIsTypeAttribute(LLVMAttributeRef A)
- rocm.bindings.llvm.c.core.LLVMGetTypeByName2(C, Name)#
Obtain a Type from a context by its registered name.
- Args:
- Returns:
None: (undocumented)
C signature
LLVMTypeRef LLVMGetTypeByName2(LLVMContextRef C, const char * Name)
- rocm.bindings.llvm.c.core.LLVMModuleCreateWithName(ModuleID)#
Create a new, empty module in the global context.
This is equivalent to calling LLVMModuleCreateWithNameInContext with LLVMGetGlobalContext() as the context parameter.
Every invocation should be paired with LLVMDisposeModule() or memory will be leaked.
C signature
LLVMModuleRef LLVMModuleCreateWithName(const char * ModuleID)
- rocm.bindings.llvm.c.core.LLVMModuleCreateWithNameInContext(ModuleID, C)#
Create a new, empty module in a specific context.
Every invocation should be paired with LLVMDisposeModule() or memory will be leaked.
- Args:
- Returns:
None: (undocumented)
C signature
LLVMModuleRef LLVMModuleCreateWithNameInContext(const char * ModuleID, LLVMContextRef C)
- rocm.bindings.llvm.c.core.LLVMCloneModule(M)#
Return an exact copy of the specified module.
C signature
LLVMModuleRef LLVMCloneModule(LLVMModuleRef M)
- rocm.bindings.llvm.c.core.LLVMDisposeModule(M)#
Destroy a module instance.
This must be called for every created module or memory will be leaked.
C signature
void LLVMDisposeModule(LLVMModuleRef M)
- rocm.bindings.llvm.c.core.LLVMIsNewDbgInfoFormat(M)#
Soon to be deprecated.
See https://llvm.org/docs/RemoveDIsDebugInfo.html:py:obj:
c-api-changesReturns true if the module is in the new debug info mode which uses non-instruction debug records instead of debug intrinsics for variable location tracking.
C signature
LLVMBool LLVMIsNewDbgInfoFormat(LLVMModuleRef M)
- rocm.bindings.llvm.c.core.LLVMSetIsNewDbgInfoFormat(M, UseNewFormat)#
Soon to be deprecated.
See https://llvm.org/docs/RemoveDIsDebugInfo.html:py:obj:
c-api-changesConvert module into desired debug info format.
C signature
void LLVMSetIsNewDbgInfoFormat(LLVMModuleRef M, LLVMBool UseNewFormat)
- rocm.bindings.llvm.c.core.LLVMGetModuleIdentifier(M, Len)#
Obtain the identifier of a module.
- See:
Module::getModuleIdentifier()
- Args:
- M (
Pointer/object): Module to obtain identifier of
- Len (
PointerToUInt64/object): Out parameter which holds the length of the returned string.
- M (
- Returns:
bytes: The identifier of M.
C signature
const char * LLVMGetModuleIdentifier(LLVMModuleRef M, size_t * Len)
- rocm.bindings.llvm.c.core.LLVMSetModuleIdentifier(M, Ident, Len)#
Set the identifier of a module to a string Ident with length Len.
- See:
Module::setModuleIdentifier()
- Args:
C signature
void LLVMSetModuleIdentifier(LLVMModuleRef M, const char * Ident, size_t Len)
- rocm.bindings.llvm.c.core.LLVMGetSourceFileName(M, Len)#
Obtain the module’s original source file name.
- See:
Module::getSourceFileName()
- Args:
- M (
Pointer/object): Module to obtain the name of
- Len (
PointerToUInt64/object): Out parameter which holds the length of the returned string
- M (
- Returns:
bytes: The original source file name of M
C signature
const char * LLVMGetSourceFileName(LLVMModuleRef M, size_t * Len)
- rocm.bindings.llvm.c.core.LLVMSetSourceFileName(M, Name, Len)#
Set the original source file name of a module to a string Name with length Len.
- See:
Module::setSourceFileName()
- Args:
C signature
void LLVMSetSourceFileName(LLVMModuleRef M, const char * Name, size_t Len)
- rocm.bindings.llvm.c.core.LLVMGetDataLayoutStr(M)#
Obtain the data layout for a module.
- See:
Module::getDataLayoutStr()
LLVMGetDataLayout is DEPRECATED, as the name is not only incorrect, but match the name of another method on the module. Prefer the use of LLVMGetDataLayoutStr, which is not ambiguous.
C signature
const char * LLVMGetDataLayoutStr(LLVMModuleRef M)
- rocm.bindings.llvm.c.core.LLVMGetDataLayout(M)#
Obtain the data layout for a module.
- See:
Module::getDataLayoutStr()
LLVMGetDataLayout is DEPRECATED, as the name is not only incorrect, but match the name of another method on the module. Prefer the use of LLVMGetDataLayoutStr, which is not ambiguous.
C signature
const char * LLVMGetDataLayout(LLVMModuleRef M)
- rocm.bindings.llvm.c.core.LLVMSetDataLayout(M, DataLayoutStr)#
Set the data layout for a module.
- See:
Module::setDataLayout()
- Args:
C signature
void LLVMSetDataLayout(LLVMModuleRef M, const char * DataLayoutStr)
- rocm.bindings.llvm.c.core.LLVMGetTarget(M)#
Obtain the target triple for a module.
C signature
const char * LLVMGetTarget(LLVMModuleRef M)
- rocm.bindings.llvm.c.core.LLVMSetTarget(M, Triple)#
Set the target triple for a module.
- See:
Module::setTargetTriple()
- Args:
C signature
void LLVMSetTarget(LLVMModuleRef M, const char * Triple)
- rocm.bindings.llvm.c.core.LLVMCopyModuleFlagsMetadata(M, Len)#
Returns the module flags as an array of flag-key-value triples.
The caller is responsible for freeing this array by calling
LLVMDisposeModuleFlagsMetadata.- See:
Module::getModuleFlagsMetadata()
- Args:
- M (
Pointer/object): (undocumented)
- Len (
PointerToUInt64/object): (undocumented)
- M (
- Returns:
None: (undocumented)
C signature
LLVMModuleFlagEntry * LLVMCopyModuleFlagsMetadata(LLVMModuleRef M, size_t * Len)
- rocm.bindings.llvm.c.core.LLVMDisposeModuleFlagsMetadata(Entries)#
Destroys module flags metadata entries.
C signature
void LLVMDisposeModuleFlagsMetadata(LLVMModuleFlagEntry * Entries)
- rocm.bindings.llvm.c.core.LLVMModuleFlagEntriesGetFlagBehavior(Entries, Index)#
Returns the flag behavior for a module flag entry at a specific index.
- See:
Module::ModuleFlagEntry::Behavior
- Args:
- Returns:
LLVMModuleFlagBehavior: (undocumented)
C signature
LLVMModuleFlagBehavior LLVMModuleFlagEntriesGetFlagBehavior(LLVMModuleFlagEntry * Entries, unsigned int Index)
- rocm.bindings.llvm.c.core.LLVMModuleFlagEntriesGetKey(Entries, Index, Len)#
Returns the key for a module flag entry at a specific index.
- See:
Module::ModuleFlagEntry::Key
- Args:
- Entries (
Pointer/object): (undocumented)
- Index (
int): (undocumented)
- Len (
PointerToUInt64/object): (undocumented)
- Entries (
- Returns:
bytes: (undocumented)
C signature
const char * LLVMModuleFlagEntriesGetKey(LLVMModuleFlagEntry * Entries, unsigned int Index, size_t * Len)
- rocm.bindings.llvm.c.core.LLVMModuleFlagEntriesGetMetadata(Entries, Index)#
Returns the metadata for a module flag entry at a specific index.
- See:
Module::ModuleFlagEntry::Val
- Args:
- Returns:
None: (undocumented)
C signature
LLVMMetadataRef LLVMModuleFlagEntriesGetMetadata(LLVMModuleFlagEntry * Entries, unsigned int Index)
- rocm.bindings.llvm.c.core.LLVMGetModuleFlag(M, Key, KeyLen)#
Add a module-level flag to the module-level flags metadata if it doesn’t already exist.
- See:
Module::getModuleFlag()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMMetadataRef LLVMGetModuleFlag(LLVMModuleRef M, const char * Key, size_t KeyLen)
- rocm.bindings.llvm.c.core.LLVMAddModuleFlag(M, Behavior, Key, KeyLen, Val)#
Add a module-level flag to the module-level flags metadata if it doesn’t already exist.
- See:
Module::addModuleFlag()
- Args:
C signature
void LLVMAddModuleFlag(LLVMModuleRef M, LLVMModuleFlagBehavior Behavior, const char * Key, size_t KeyLen, LLVMMetadataRef Val)
- rocm.bindings.llvm.c.core.LLVMDumpModule(M)#
Dump a representation of a module to stderr.
C signature
void LLVMDumpModule(LLVMModuleRef M)
- rocm.bindings.llvm.c.core.LLVMPrintModuleToFile(M, Filename, ErrorMessage)#
Print a representation of a module to a file.
The ErrorMessage needs to be disposed with LLVMDisposeMessage. Returns 0 on success, 1 otherwise.
- See:
Module::print()
- Args:
- Returns:
int: (undocumented)
C signature
LLVMBool LLVMPrintModuleToFile(LLVMModuleRef M, const char * Filename, char ** ErrorMessage)
- rocm.bindings.llvm.c.core.LLVMPrintModuleToString(M)#
Return a string representation of the module.
Use LLVMDisposeMessage to free the string.
C signature
char * LLVMPrintModuleToString(LLVMModuleRef M)
- rocm.bindings.llvm.c.core.LLVMGetModuleInlineAsm(M, Len)#
Get inline assembly for a module.
- See:
Module::getModuleInlineAsm()
- Args:
- M (
Pointer/object): (undocumented)
- Len (
PointerToUInt64/object): (undocumented)
- M (
- Returns:
bytes: (undocumented)
C signature
const char * LLVMGetModuleInlineAsm(LLVMModuleRef M, size_t * Len)
- rocm.bindings.llvm.c.core.LLVMSetModuleInlineAsm2(M, Asm, Len)#
Set inline assembly for a module.
- See:
Module::setModuleInlineAsm()
- Args:
C signature
void LLVMSetModuleInlineAsm2(LLVMModuleRef M, const char * Asm, size_t Len)
- rocm.bindings.llvm.c.core.LLVMAppendModuleInlineAsm(M, Asm, Len)#
Append inline assembly to a module.
- See:
Module::appendModuleInlineAsm()
- Args:
C signature
void LLVMAppendModuleInlineAsm(LLVMModuleRef M, const char * Asm, size_t Len)
- rocm.bindings.llvm.c.core.LLVMGetInlineAsm(Ty, AsmString, AsmStringSize, Constraints, ConstraintsSize, HasSideEffects, IsAlignStack, Dialect, CanThrow)#
Create the specified uniqued inline asm string.
- See:
InlineAsm::get()
- Args:
- Ty (
Pointer/object): (undocumented)
- AsmString (
CStr/object): (undocumented)
- AsmStringSize (
int): (undocumented)
- Constraints (
CStr/object): (undocumented)
- ConstraintsSize (
int): (undocumented)
- HasSideEffects (
int): (undocumented)
- IsAlignStack (
int): (undocumented)
- Dialect (
LLVMInlineAsmDialect): (undocumented)
- CanThrow (
int): (undocumented)
- Ty (
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMGetInlineAsm(LLVMTypeRef Ty, const char * AsmString, size_t AsmStringSize, const char * Constraints, size_t ConstraintsSize, LLVMBool HasSideEffects, LLVMBool IsAlignStack, LLVMInlineAsmDialect Dialect, LLVMBool CanThrow)
- rocm.bindings.llvm.c.core.LLVMGetInlineAsmAsmString(InlineAsmVal, Len)#
Get the template string used for an inline assembly snippet
- Args:
- InlineAsmVal (
Pointer/object): (undocumented)
- Len (
PointerToUInt64/object): (undocumented)
- InlineAsmVal (
- Returns:
bytes: (undocumented)
C signature
const char * LLVMGetInlineAsmAsmString(LLVMValueRef InlineAsmVal, size_t * Len)
- rocm.bindings.llvm.c.core.LLVMGetInlineAsmConstraintString(InlineAsmVal, Len)#
Get the raw constraint string for an inline assembly snippet
- Args:
- InlineAsmVal (
Pointer/object): (undocumented)
- Len (
PointerToUInt64/object): (undocumented)
- InlineAsmVal (
- Returns:
bytes: (undocumented)
C signature
const char * LLVMGetInlineAsmConstraintString(LLVMValueRef InlineAsmVal, size_t * Len)
- rocm.bindings.llvm.c.core.LLVMGetInlineAsmDialect(InlineAsmVal)#
Get the dialect used by the inline asm snippet
- Args:
- Returns:
LLVMInlineAsmDialect: (undocumented)
C signature
LLVMInlineAsmDialect LLVMGetInlineAsmDialect(LLVMValueRef InlineAsmVal)
- rocm.bindings.llvm.c.core.LLVMGetInlineAsmFunctionType(InlineAsmVal)#
Get the function type of the inline assembly snippet.
The same type that was passed into LLVMGetInlineAsm originally
- See:
- Args:
- Returns:
None: (undocumented)
C signature
LLVMTypeRef LLVMGetInlineAsmFunctionType(LLVMValueRef InlineAsmVal)
- rocm.bindings.llvm.c.core.LLVMGetInlineAsmHasSideEffects(InlineAsmVal)#
Get if the inline asm snippet has side effects
C signature
LLVMBool LLVMGetInlineAsmHasSideEffects(LLVMValueRef InlineAsmVal)
- rocm.bindings.llvm.c.core.LLVMGetInlineAsmNeedsAlignedStack(InlineAsmVal)#
Get if the inline asm snippet needs an aligned stack
C signature
LLVMBool LLVMGetInlineAsmNeedsAlignedStack(LLVMValueRef InlineAsmVal)
- rocm.bindings.llvm.c.core.LLVMGetInlineAsmCanUnwind(InlineAsmVal)#
Get if the inline asm snippet may unwind the stack
C signature
LLVMBool LLVMGetInlineAsmCanUnwind(LLVMValueRef InlineAsmVal)
- rocm.bindings.llvm.c.core.LLVMGetModuleContext(M)#
Obtain the context to which this module is associated.
C signature
LLVMContextRef LLVMGetModuleContext(LLVMModuleRef M)
- rocm.bindings.llvm.c.core.LLVMGetTypeByName(M, Name)#
Deprecated: Use LLVMGetTypeByName2 instead.
- Args:
- Returns:
None: (undocumented)
C signature
LLVMTypeRef LLVMGetTypeByName(LLVMModuleRef M, const char * Name)
- rocm.bindings.llvm.c.core.LLVMGetFirstNamedMetadata(M)#
Obtain an iterator to the first NamedMDNode in a Module.
- See:
llvm::Module::named_metadata_begin()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMNamedMDNodeRef LLVMGetFirstNamedMetadata(LLVMModuleRef M)
- rocm.bindings.llvm.c.core.LLVMGetLastNamedMetadata(M)#
Obtain an iterator to the last NamedMDNode in a Module.
- See:
llvm::Module::named_metadata_end()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMNamedMDNodeRef LLVMGetLastNamedMetadata(LLVMModuleRef M)
- rocm.bindings.llvm.c.core.LLVMGetNextNamedMetadata(NamedMDNode)#
Advance a NamedMDNode iterator to the next NamedMDNode.
Returns NULL if the iterator was already at the end and there are no more named metadata nodes.
C signature
LLVMNamedMDNodeRef LLVMGetNextNamedMetadata(LLVMNamedMDNodeRef NamedMDNode)
- rocm.bindings.llvm.c.core.LLVMGetPreviousNamedMetadata(NamedMDNode)#
Decrement a NamedMDNode iterator to the previous NamedMDNode.
Returns NULL if the iterator was already at the beginning and there are no previous named metadata nodes.
C signature
LLVMNamedMDNodeRef LLVMGetPreviousNamedMetadata(LLVMNamedMDNodeRef NamedMDNode)
- rocm.bindings.llvm.c.core.LLVMGetNamedMetadata(M, Name, NameLen)#
Retrieve a NamedMDNode with the given name, returning NULL if no such node exists.
- See:
llvm::Module::getNamedMetadata()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMNamedMDNodeRef LLVMGetNamedMetadata(LLVMModuleRef M, const char * Name, size_t NameLen)
- rocm.bindings.llvm.c.core.LLVMGetOrInsertNamedMetadata(M, Name, NameLen)#
Retrieve a NamedMDNode with the given name, creating a new node if no such node exists.
- See:
llvm::Module::getOrInsertNamedMetadata()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMNamedMDNodeRef LLVMGetOrInsertNamedMetadata(LLVMModuleRef M, const char * Name, size_t NameLen)
- rocm.bindings.llvm.c.core.LLVMGetNamedMetadataName(NamedMD, NameLen)#
Retrieve the name of a NamedMDNode.
- See:
llvm::NamedMDNode::getName()
- Args:
- NamedMD (
Pointer/object): (undocumented)
- NameLen (
PointerToUInt64/object): (undocumented)
- NamedMD (
- Returns:
bytes: (undocumented)
C signature
const char * LLVMGetNamedMetadataName(LLVMNamedMDNodeRef NamedMD, size_t * NameLen)
- rocm.bindings.llvm.c.core.LLVMGetNamedMetadataNumOperands(M, Name)#
Obtain the number of operands for named metadata in a module.
- See:
llvm::Module::getNamedMetadata()
- Args:
- Returns:
int: (undocumented)
C signature
unsigned int LLVMGetNamedMetadataNumOperands(LLVMModuleRef M, const char * Name)
- rocm.bindings.llvm.c.core.LLVMGetNamedMetadataOperands(M, Name, Dest)#
Obtain the named metadata operands for a module.
The passed LLVMValueRef pointer should refer to an array of LLVMValueRef at least LLVMGetNamedMetadataNumOperands long. This array will be populated with the LLVMValueRef instances. Each instance corresponds to a llvm::MDNode.
- See:
llvm::Module::getNamedMetadata()
- See:
llvm::MDNode::getOperand()
- Args:
C signature
void LLVMGetNamedMetadataOperands(LLVMModuleRef M, const char * Name, LLVMValueRef * Dest)
- rocm.bindings.llvm.c.core.LLVMAddNamedMetadataOperand(M, Name, Val)#
Add an operand to named metadata.
- See:
llvm::Module::getNamedMetadata()
- See:
llvm::MDNode::addOperand()
- Args:
C signature
void LLVMAddNamedMetadataOperand(LLVMModuleRef M, const char * Name, LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMGetDebugLocDirectory(Val, Length)#
Return the directory of the debug location for this value, which must be an llvm::Instruction, llvm::GlobalVariable, or llvm::Function.
- See:
llvm::Instruction::getDebugLoc()
- See:
llvm::GlobalVariable::getDebugInfo()
- See:
llvm::Function::getSubprogram()
- Args:
- Val (
Pointer/object): (undocumented)
- Length (
PointerToUnsigned/object): (undocumented)
- Val (
- Returns:
bytes: (undocumented)
C signature
const char * LLVMGetDebugLocDirectory(LLVMValueRef Val, unsigned int * Length)
- rocm.bindings.llvm.c.core.LLVMGetDebugLocFilename(Val, Length)#
Return the filename of the debug location for this value, which must be an llvm::Instruction, llvm::GlobalVariable, or llvm::Function.
- See:
llvm::Instruction::getDebugLoc()
- See:
llvm::GlobalVariable::getDebugInfo()
- See:
llvm::Function::getSubprogram()
- Args:
- Val (
Pointer/object): (undocumented)
- Length (
PointerToUnsigned/object): (undocumented)
- Val (
- Returns:
bytes: (undocumented)
C signature
const char * LLVMGetDebugLocFilename(LLVMValueRef Val, unsigned int * Length)
- rocm.bindings.llvm.c.core.LLVMGetDebugLocLine(Val)#
Return the line number of the debug location for this value, which must be an llvm::Instruction, llvm::GlobalVariable, or llvm::Function.
- See:
llvm::Instruction::getDebugLoc()
- See:
llvm::GlobalVariable::getDebugInfo()
- See:
llvm::Function::getSubprogram()
- Args:
- Returns:
int: (undocumented)
C signature
unsigned int LLVMGetDebugLocLine(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMGetDebugLocColumn(Val)#
Return the column number of the debug location for this value, which must be an llvm::Instruction.
- See:
llvm::Instruction::getDebugLoc()
- Args:
- Returns:
int: (undocumented)
C signature
unsigned int LLVMGetDebugLocColumn(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMAddFunction(M, Name, FunctionTy)#
Add a function to a module under a specified name.
- See:
llvm::Function::Create()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMAddFunction(LLVMModuleRef M, const char * Name, LLVMTypeRef FunctionTy)
- rocm.bindings.llvm.c.core.LLVMGetOrInsertFunction(M, Name, NameLen, FunctionTy)#
Obtain or insert a function into a module.
If a function with the specified name already exists in the module, it is returned. Otherwise, a new function is created in the module with the specified name and type and is returned.
The returned value corresponds to a llvm::Function instance.
- See:
llvm::Module::getOrInsertFunction()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMGetOrInsertFunction(LLVMModuleRef M, const char * Name, size_t NameLen, LLVMTypeRef FunctionTy)
- rocm.bindings.llvm.c.core.LLVMGetNamedFunction(M, Name)#
Obtain a Function value from a Module by its name.
The returned value corresponds to a llvm::Function value.
- See:
llvm::Module::getFunction()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMGetNamedFunction(LLVMModuleRef M, const char * Name)
- rocm.bindings.llvm.c.core.LLVMGetNamedFunctionWithLength(M, Name, Length)#
Obtain a Function value from a Module by its name.
The returned value corresponds to a llvm::Function value.
- See:
llvm::Module::getFunction()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMGetNamedFunctionWithLength(LLVMModuleRef M, const char * Name, size_t Length)
- rocm.bindings.llvm.c.core.LLVMGetFirstFunction(M)#
Obtain an iterator to the first Function in a Module.
C signature
LLVMValueRef LLVMGetFirstFunction(LLVMModuleRef M)
- rocm.bindings.llvm.c.core.LLVMGetLastFunction(M)#
Obtain an iterator to the last Function in a Module.
C signature
LLVMValueRef LLVMGetLastFunction(LLVMModuleRef M)
- rocm.bindings.llvm.c.core.LLVMGetNextFunction(Fn)#
Advance a Function iterator to the next Function.
Returns NULL if the iterator was already at the end and there are no more functions.
C signature
LLVMValueRef LLVMGetNextFunction(LLVMValueRef Fn)
- rocm.bindings.llvm.c.core.LLVMGetPreviousFunction(Fn)#
Decrement a Function iterator to the previous Function.
Returns NULL if the iterator was already at the beginning and there are no previous functions.
C signature
LLVMValueRef LLVMGetPreviousFunction(LLVMValueRef Fn)
- rocm.bindings.llvm.c.core.LLVMSetModuleInlineAsm(M, Asm)#
Deprecated: Use LLVMSetModuleInlineAsm2 instead.
C signature
void LLVMSetModuleInlineAsm(LLVMModuleRef M, const char * Asm)
- rocm.bindings.llvm.c.core.LLVMGetTypeKind(Ty)#
Obtain the enumerated type of a Type instance.
- See:
llvm::Type:
getTypeID- Args:
- Returns:
LLVMTypeKind: (undocumented)
C signature
LLVMTypeKind LLVMGetTypeKind(LLVMTypeRef Ty)
- rocm.bindings.llvm.c.core.LLVMTypeIsSized(Ty)#
Whether the type has a known size.
Things that don’t have a size are abstract types, labels, and void.a
C signature
LLVMBool LLVMTypeIsSized(LLVMTypeRef Ty)
- rocm.bindings.llvm.c.core.LLVMGetTypeContext(Ty)#
Obtain the context to which this type instance is associated.
C signature
LLVMContextRef LLVMGetTypeContext(LLVMTypeRef Ty)
- rocm.bindings.llvm.c.core.LLVMDumpType(Val)#
Dump a representation of a type to stderr.
C signature
void LLVMDumpType(LLVMTypeRef Val)
- rocm.bindings.llvm.c.core.LLVMPrintTypeToString(Val)#
Return a string representation of the type.
Use LLVMDisposeMessage to free the string.
C signature
char * LLVMPrintTypeToString(LLVMTypeRef Val)
- rocm.bindings.llvm.c.core.LLVMByteTypeInContext(C, NumBits)#
Obtain a byte type from a context with specified bit width.
C signature
LLVMTypeRef LLVMByteTypeInContext(LLVMContextRef C, unsigned int NumBits)
- rocm.bindings.llvm.c.core.LLVMGetByteTypeWidth(ByteTy)#
Obtain a byte type from a context with specified bit width.
C signature
unsigned int LLVMGetByteTypeWidth(LLVMTypeRef ByteTy)
- rocm.bindings.llvm.c.core.LLVMInt1TypeInContext(C)#
Obtain an integer type from a context with specified bit width.
C signature
LLVMTypeRef LLVMInt1TypeInContext(LLVMContextRef C)
- rocm.bindings.llvm.c.core.LLVMInt8TypeInContext(C)#
Obtain an integer type from a context with specified bit width.
C signature
LLVMTypeRef LLVMInt8TypeInContext(LLVMContextRef C)
- rocm.bindings.llvm.c.core.LLVMInt16TypeInContext(C)#
Obtain an integer type from a context with specified bit width.
C signature
LLVMTypeRef LLVMInt16TypeInContext(LLVMContextRef C)
- rocm.bindings.llvm.c.core.LLVMInt32TypeInContext(C)#
Obtain an integer type from a context with specified bit width.
C signature
LLVMTypeRef LLVMInt32TypeInContext(LLVMContextRef C)
- rocm.bindings.llvm.c.core.LLVMInt64TypeInContext(C)#
Obtain an integer type from a context with specified bit width.
C signature
LLVMTypeRef LLVMInt64TypeInContext(LLVMContextRef C)
- rocm.bindings.llvm.c.core.LLVMInt128TypeInContext(C)#
Obtain an integer type from a context with specified bit width.
C signature
LLVMTypeRef LLVMInt128TypeInContext(LLVMContextRef C)
- rocm.bindings.llvm.c.core.LLVMIntTypeInContext(C, NumBits)#
Obtain an integer type from a context with specified bit width.
C signature
LLVMTypeRef LLVMIntTypeInContext(LLVMContextRef C, unsigned int NumBits)
- rocm.bindings.llvm.c.core.LLVMInt1Type()#
Obtain an integer type from the global context with a specified bit width.
- Returns:
None: (undocumented)
C signature
LLVMTypeRef LLVMInt1Type()
- rocm.bindings.llvm.c.core.LLVMInt8Type()#
(No short description, might be part of a group.)
- Returns:
None: (undocumented)
C signature
LLVMTypeRef LLVMInt8Type()
- rocm.bindings.llvm.c.core.LLVMInt16Type()#
(No short description, might be part of a group.)
- Returns:
None: (undocumented)
C signature
LLVMTypeRef LLVMInt16Type()
- rocm.bindings.llvm.c.core.LLVMInt32Type()#
(No short description, might be part of a group.)
- Returns:
None: (undocumented)
C signature
LLVMTypeRef LLVMInt32Type()
- rocm.bindings.llvm.c.core.LLVMInt64Type()#
(No short description, might be part of a group.)
- Returns:
None: (undocumented)
C signature
LLVMTypeRef LLVMInt64Type()
- rocm.bindings.llvm.c.core.LLVMInt128Type()#
(No short description, might be part of a group.)
- Returns:
None: (undocumented)
C signature
LLVMTypeRef LLVMInt128Type()
- rocm.bindings.llvm.c.core.LLVMIntType(NumBits)#
(No short description, might be part of a group.)
C signature
LLVMTypeRef LLVMIntType(unsigned int NumBits)
- rocm.bindings.llvm.c.core.LLVMGetIntTypeWidth(IntegerTy)#
Obtain an integer type from the global context with a specified bit width.
C signature
unsigned int LLVMGetIntTypeWidth(LLVMTypeRef IntegerTy)
- rocm.bindings.llvm.c.core.LLVMHalfTypeInContext(C)#
Obtain a 16-bit floating point type from a context.
C signature
LLVMTypeRef LLVMHalfTypeInContext(LLVMContextRef C)
- rocm.bindings.llvm.c.core.LLVMBFloatTypeInContext(C)#
Obtain a 16-bit brain floating point type from a context.
C signature
LLVMTypeRef LLVMBFloatTypeInContext(LLVMContextRef C)
- rocm.bindings.llvm.c.core.LLVMFloatTypeInContext(C)#
Obtain a 32-bit floating point type from a context.
C signature
LLVMTypeRef LLVMFloatTypeInContext(LLVMContextRef C)
- rocm.bindings.llvm.c.core.LLVMDoubleTypeInContext(C)#
Obtain a 64-bit floating point type from a context.
C signature
LLVMTypeRef LLVMDoubleTypeInContext(LLVMContextRef C)
- rocm.bindings.llvm.c.core.LLVMX86FP80TypeInContext(C)#
Obtain a 80-bit floating point type (X87) from a context.
C signature
LLVMTypeRef LLVMX86FP80TypeInContext(LLVMContextRef C)
- rocm.bindings.llvm.c.core.LLVMFP128TypeInContext(C)#
Obtain a 128-bit floating point type (112-bit mantissa) from a context.
C signature
LLVMTypeRef LLVMFP128TypeInContext(LLVMContextRef C)
- rocm.bindings.llvm.c.core.LLVMPPCFP128TypeInContext(C)#
Obtain a 128-bit floating point type (two 64-bits) from a context.
C signature
LLVMTypeRef LLVMPPCFP128TypeInContext(LLVMContextRef C)
- rocm.bindings.llvm.c.core.LLVMHalfType()#
Obtain a floating point type from the global context.
These map to the functions in this group of the same name.
- Returns:
None: (undocumented)
C signature
LLVMTypeRef LLVMHalfType()
- rocm.bindings.llvm.c.core.LLVMBFloatType()#
(No short description, might be part of a group.)
- Returns:
None: (undocumented)
C signature
LLVMTypeRef LLVMBFloatType()
- rocm.bindings.llvm.c.core.LLVMFloatType()#
(No short description, might be part of a group.)
- Returns:
None: (undocumented)
C signature
LLVMTypeRef LLVMFloatType()
- rocm.bindings.llvm.c.core.LLVMDoubleType()#
(No short description, might be part of a group.)
- Returns:
None: (undocumented)
C signature
LLVMTypeRef LLVMDoubleType()
- rocm.bindings.llvm.c.core.LLVMX86FP80Type()#
(No short description, might be part of a group.)
- Returns:
None: (undocumented)
C signature
LLVMTypeRef LLVMX86FP80Type()
- rocm.bindings.llvm.c.core.LLVMFP128Type()#
(No short description, might be part of a group.)
- Returns:
None: (undocumented)
C signature
LLVMTypeRef LLVMFP128Type()
- rocm.bindings.llvm.c.core.LLVMPPCFP128Type()#
(No short description, might be part of a group.)
- Returns:
None: (undocumented)
C signature
LLVMTypeRef LLVMPPCFP128Type()
- rocm.bindings.llvm.c.core.LLVMFunctionType(ReturnType, ParamTypes, ParamCount, IsVarArg)#
Obtain a function type consisting of a specified signature.
The function is defined as a tuple of a return Type, a list of parameter types, and whether the function is variadic.
- Args:
- Returns:
None: (undocumented)
C signature
LLVMTypeRef LLVMFunctionType(LLVMTypeRef ReturnType, LLVMTypeRef * ParamTypes, unsigned int ParamCount, LLVMBool IsVarArg)
- rocm.bindings.llvm.c.core.LLVMIsFunctionVarArg(FunctionTy)#
Returns whether a function type is variadic.
C signature
LLVMBool LLVMIsFunctionVarArg(LLVMTypeRef FunctionTy)
- rocm.bindings.llvm.c.core.LLVMGetReturnType(FunctionTy)#
Obtain the Type this function Type returns.
C signature
LLVMTypeRef LLVMGetReturnType(LLVMTypeRef FunctionTy)
- rocm.bindings.llvm.c.core.LLVMCountParamTypes(FunctionTy)#
Obtain the number of parameters this function accepts.
C signature
unsigned int LLVMCountParamTypes(LLVMTypeRef FunctionTy)
- rocm.bindings.llvm.c.core.LLVMGetParamTypes(FunctionTy, Dest)#
Obtain the types of a function’s parameters.
The Dest parameter should point to a pre-allocated array of LLVMTypeRef at least LLVMCountParamTypes() large. On return, the first LLVMCountParamTypes() entries in the array will be populated with LLVMTypeRef instances.
- Args:
- FunctionTy (
Pointer/object): The function type to operate on.
- Dest (
ListOfPointer/object): Memory address of an array to be filled with result.
- FunctionTy (
C signature
void LLVMGetParamTypes(LLVMTypeRef FunctionTy, LLVMTypeRef * Dest)
- rocm.bindings.llvm.c.core.LLVMStructTypeInContext(C, ElementTypes, ElementCount, Packed)#
Create a new structure type in a context.
A structure is specified by a list of inner elements/types and whether these can be packed together.
- See:
llvm::StructType::create()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMTypeRef LLVMStructTypeInContext(LLVMContextRef C, LLVMTypeRef * ElementTypes, unsigned int ElementCount, LLVMBool Packed)
- rocm.bindings.llvm.c.core.LLVMStructType(ElementTypes, ElementCount, Packed)#
Create a new structure type in the global context.
- See:
llvm::StructType::create()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMTypeRef LLVMStructType(LLVMTypeRef * ElementTypes, unsigned int ElementCount, LLVMBool Packed)
- rocm.bindings.llvm.c.core.LLVMStructCreateNamed(C, Name)#
Create an empty structure in a context having a specified name.
- See:
llvm::StructType::create()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMTypeRef LLVMStructCreateNamed(LLVMContextRef C, const char * Name)
- rocm.bindings.llvm.c.core.LLVMGetStructName(Ty)#
Obtain the name of a structure.
- See:
llvm::StructType::getName()
- Args:
- Returns:
bytes: (undocumented)
C signature
const char * LLVMGetStructName(LLVMTypeRef Ty)
- rocm.bindings.llvm.c.core.LLVMStructSetBody(StructTy, ElementTypes, ElementCount, Packed)#
Set the contents of a structure type.
- See:
llvm::StructType::setBody()
- Args:
C signature
void LLVMStructSetBody(LLVMTypeRef StructTy, LLVMTypeRef * ElementTypes, unsigned int ElementCount, LLVMBool Packed)
- rocm.bindings.llvm.c.core.LLVMCountStructElementTypes(StructTy)#
Get the number of elements defined inside the structure.
- See:
llvm::StructType::getNumElements()
- Args:
- Returns:
int: (undocumented)
C signature
unsigned int LLVMCountStructElementTypes(LLVMTypeRef StructTy)
- rocm.bindings.llvm.c.core.LLVMGetStructElementTypes(StructTy, Dest)#
Get the elements within a structure.
The function is passed the address of a pre-allocated array of LLVMTypeRef at least LLVMCountStructElementTypes() long. After invocation, this array will be populated with the structure’s elements. The objects in the destination array will have a lifetime of the structure type itself, which is the lifetime of the context it is contained in.
C signature
void LLVMGetStructElementTypes(LLVMTypeRef StructTy, LLVMTypeRef * Dest)
- rocm.bindings.llvm.c.core.LLVMStructGetTypeAtIndex(StructTy, i)#
Get the type of the element at a given index in the structure.
- See:
llvm::StructType::getTypeAtIndex()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMTypeRef LLVMStructGetTypeAtIndex(LLVMTypeRef StructTy, unsigned int i)
- rocm.bindings.llvm.c.core.LLVMIsPackedStruct(StructTy)#
Determine whether a structure is packed.
- See:
llvm::StructType::isPacked()
- Args:
- Returns:
int: (undocumented)
C signature
LLVMBool LLVMIsPackedStruct(LLVMTypeRef StructTy)
- rocm.bindings.llvm.c.core.LLVMIsOpaqueStruct(StructTy)#
Determine whether a structure is opaque.
- See:
llvm::StructType::isOpaque()
- Args:
- Returns:
int: (undocumented)
C signature
LLVMBool LLVMIsOpaqueStruct(LLVMTypeRef StructTy)
- rocm.bindings.llvm.c.core.LLVMIsLiteralStruct(StructTy)#
Determine whether a structure is literal.
- See:
llvm::StructType::isLiteral()
- Args:
- Returns:
int: (undocumented)
C signature
LLVMBool LLVMIsLiteralStruct(LLVMTypeRef StructTy)
- rocm.bindings.llvm.c.core.LLVMGetElementType(Ty)#
Obtain the element type of an array or vector type.
- See:
llvm::SequentialType::getElementType()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMTypeRef LLVMGetElementType(LLVMTypeRef Ty)
- rocm.bindings.llvm.c.core.LLVMGetSubtypes(Tp, Arr)#
Returns type’s subtypes
- See:
llvm::Type::subtypes()
- Args:
C signature
void LLVMGetSubtypes(LLVMTypeRef Tp, LLVMTypeRef * Arr)
- rocm.bindings.llvm.c.core.LLVMGetNumContainedTypes(Tp)#
Return the number of types in the derived type.
- See:
llvm::Type::getNumContainedTypes()
- Args:
- Returns:
int: (undocumented)
C signature
unsigned int LLVMGetNumContainedTypes(LLVMTypeRef Tp)
- rocm.bindings.llvm.c.core.LLVMArrayType(ElementType, ElementCount)#
Create a fixed size array type that refers to a specific type.
The created type will exist in the context that its element type exists in.
- Deprecated:
LLVMArrayType is deprecated in favor of the API accurate LLVMArrayType2
- See:
llvm::ArrayType::get()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMTypeRef LLVMArrayType(LLVMTypeRef ElementType, unsigned int ElementCount)
- rocm.bindings.llvm.c.core.LLVMArrayType2(ElementType, ElementCount)#
Create a fixed size array type that refers to a specific type.
The created type will exist in the context that its element type exists in.
- See:
llvm::ArrayType::get()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMTypeRef LLVMArrayType2(LLVMTypeRef ElementType, uint64_t ElementCount)
- rocm.bindings.llvm.c.core.LLVMGetArrayLength(ArrayTy)#
Obtain the length of an array type.
This only works on types that represent arrays.
- Deprecated:
LLVMGetArrayLength is deprecated in favor of the API accurate LLVMGetArrayLength2
- See:
llvm::ArrayType::getNumElements()
- Args:
- Returns:
int: (undocumented)
C signature
unsigned int LLVMGetArrayLength(LLVMTypeRef ArrayTy)
- rocm.bindings.llvm.c.core.LLVMGetArrayLength2(ArrayTy)#
Obtain the length of an array type.
This only works on types that represent arrays.
- See:
llvm::ArrayType::getNumElements()
- Args:
- Returns:
int: (undocumented)
C signature
uint64_t LLVMGetArrayLength2(LLVMTypeRef ArrayTy)
- rocm.bindings.llvm.c.core.LLVMPointerType(ElementType, AddressSpace)#
Create a pointer type that points to a defined type.
The created type will exist in the context that its pointee type exists in.
- See:
llvm::PointerType::get()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMTypeRef LLVMPointerType(LLVMTypeRef ElementType, unsigned int AddressSpace)
- rocm.bindings.llvm.c.core.LLVMPointerTypeIsOpaque(Ty)#
Determine whether a pointer is opaque.
True if this is an instance of an opaque PointerType.
- See:
llvm::Type::isOpaquePointerTy()
- Args:
- Returns:
int: (undocumented)
C signature
LLVMBool LLVMPointerTypeIsOpaque(LLVMTypeRef Ty)
- rocm.bindings.llvm.c.core.LLVMPointerTypeInContext(C, AddressSpace)#
Create an opaque pointer type in a context.
- See:
llvm::PointerType::get()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMTypeRef LLVMPointerTypeInContext(LLVMContextRef C, unsigned int AddressSpace)
- rocm.bindings.llvm.c.core.LLVMGetPointerAddressSpace(PointerTy)#
Obtain the address space of a pointer type.
This only works on types that represent pointers.
- See:
llvm::PointerType::getAddressSpace()
- Args:
- Returns:
int: (undocumented)
C signature
unsigned int LLVMGetPointerAddressSpace(LLVMTypeRef PointerTy)
- rocm.bindings.llvm.c.core.LLVMVectorType(ElementType, ElementCount)#
Create a vector type that contains a defined type and has a specific number of elements.
The created type will exist in the context thats its element type exists in.
- See:
llvm::VectorType::get()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMTypeRef LLVMVectorType(LLVMTypeRef ElementType, unsigned int ElementCount)
- rocm.bindings.llvm.c.core.LLVMScalableVectorType(ElementType, ElementCount)#
Create a vector type that contains a defined type and has a scalable number of elements.
The created type will exist in the context thats its element type exists in.
- See:
llvm::ScalableVectorType::get()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMTypeRef LLVMScalableVectorType(LLVMTypeRef ElementType, unsigned int ElementCount)
- rocm.bindings.llvm.c.core.LLVMGetVectorSize(VectorTy)#
Obtain the (possibly scalable) number of elements in a vector type.
This only works on types that represent vectors (fixed or scalable).
- See:
llvm::VectorType::getNumElements()
- Args:
- Returns:
int: (undocumented)
C signature
unsigned int LLVMGetVectorSize(LLVMTypeRef VectorTy)
- rocm.bindings.llvm.c.core.LLVMGetConstantPtrAuthPointer(PtrAuth)#
Get the pointer value for the associated ConstantPtrAuth constant.
- See:
llvm::ConstantPtrAuth::getPointer
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMGetConstantPtrAuthPointer(LLVMValueRef PtrAuth)
- rocm.bindings.llvm.c.core.LLVMGetConstantPtrAuthKey(PtrAuth)#
Get the key value for the associated ConstantPtrAuth constant.
- See:
llvm::ConstantPtrAuth::getKey
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMGetConstantPtrAuthKey(LLVMValueRef PtrAuth)
- rocm.bindings.llvm.c.core.LLVMGetConstantPtrAuthDiscriminator(PtrAuth)#
Get the discriminator value for the associated ConstantPtrAuth constant.
- See:
llvm::ConstantPtrAuth::getDiscriminator
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMGetConstantPtrAuthDiscriminator(LLVMValueRef PtrAuth)
- rocm.bindings.llvm.c.core.LLVMGetConstantPtrAuthAddrDiscriminator(PtrAuth)#
Get the address discriminator value for the associated ConstantPtrAuth constant.
- See:
llvm::ConstantPtrAuth::getAddrDiscriminator
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMGetConstantPtrAuthAddrDiscriminator(LLVMValueRef PtrAuth)
- rocm.bindings.llvm.c.core.LLVMVoidTypeInContext(C)#
Create a void type in a context.
C signature
LLVMTypeRef LLVMVoidTypeInContext(LLVMContextRef C)
- rocm.bindings.llvm.c.core.LLVMLabelTypeInContext(C)#
Create a label type in a context.
C signature
LLVMTypeRef LLVMLabelTypeInContext(LLVMContextRef C)
- rocm.bindings.llvm.c.core.LLVMX86AMXTypeInContext(C)#
Create a X86 AMX type in a context.
C signature
LLVMTypeRef LLVMX86AMXTypeInContext(LLVMContextRef C)
- rocm.bindings.llvm.c.core.LLVMTokenTypeInContext(C)#
Create a token type in a context.
C signature
LLVMTypeRef LLVMTokenTypeInContext(LLVMContextRef C)
- rocm.bindings.llvm.c.core.LLVMMetadataTypeInContext(C)#
Create a metadata type in a context.
C signature
LLVMTypeRef LLVMMetadataTypeInContext(LLVMContextRef C)
- rocm.bindings.llvm.c.core.LLVMVoidType()#
These are similar to the above functions except they operate on the global context.
- Returns:
None: (undocumented)
C signature
LLVMTypeRef LLVMVoidType()
- rocm.bindings.llvm.c.core.LLVMLabelType()#
(No short description, might be part of a group.)
- Returns:
None: (undocumented)
C signature
LLVMTypeRef LLVMLabelType()
- rocm.bindings.llvm.c.core.LLVMX86AMXType()#
(No short description, might be part of a group.)
- Returns:
None: (undocumented)
C signature
LLVMTypeRef LLVMX86AMXType()
- rocm.bindings.llvm.c.core.LLVMTargetExtTypeInContext(C, Name, TypeParams, TypeParamCount, IntParams, IntParamCount)#
Create a target extension type in LLVM context.
- Args:
- Returns:
None: (undocumented)
C signature
LLVMTypeRef LLVMTargetExtTypeInContext(LLVMContextRef C, const char * Name, LLVMTypeRef * TypeParams, unsigned int TypeParamCount, unsigned int * IntParams, unsigned int IntParamCount)
- rocm.bindings.llvm.c.core.LLVMGetTargetExtTypeName(TargetExtTy)#
Obtain the name for this target extension type.
- See:
llvm::TargetExtType::getName()
- Args:
- Returns:
bytes: (undocumented)
C signature
const char * LLVMGetTargetExtTypeName(LLVMTypeRef TargetExtTy)
- rocm.bindings.llvm.c.core.LLVMGetTargetExtTypeNumTypeParams(TargetExtTy)#
Obtain the number of type parameters for this target extension type.
- See:
llvm::TargetExtType::getNumTypeParameters()
- Args:
- Returns:
int: (undocumented)
C signature
unsigned int LLVMGetTargetExtTypeNumTypeParams(LLVMTypeRef TargetExtTy)
- rocm.bindings.llvm.c.core.LLVMGetTargetExtTypeTypeParam(TargetExtTy, Idx)#
Get the type parameter at the given index for the target extension type.
- See:
llvm::TargetExtType::getTypeParameter()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMTypeRef LLVMGetTargetExtTypeTypeParam(LLVMTypeRef TargetExtTy, unsigned int Idx)
- rocm.bindings.llvm.c.core.LLVMGetTargetExtTypeNumIntParams(TargetExtTy)#
Obtain the number of int parameters for this target extension type.
- See:
llvm::TargetExtType::getNumIntParameters()
- Args:
- Returns:
int: (undocumented)
C signature
unsigned int LLVMGetTargetExtTypeNumIntParams(LLVMTypeRef TargetExtTy)
- rocm.bindings.llvm.c.core.LLVMGetTargetExtTypeIntParam(TargetExtTy, Idx)#
Get the int parameter at the given index for the target extension type.
- See:
llvm::TargetExtType::getIntParameter()
- Args:
- Returns:
int: (undocumented)
C signature
unsigned int LLVMGetTargetExtTypeIntParam(LLVMTypeRef TargetExtTy, unsigned int Idx)
- rocm.bindings.llvm.c.core.LLVMTypeOf(Val)#
Obtain the type of a value.
C signature
LLVMTypeRef LLVMTypeOf(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMGetValueKind(Val)#
Obtain the enumerated type of a Value instance.
- See:
llvm::Value::getValueID()
- Args:
- Returns:
LLVMValueKind: (undocumented)
C signature
LLVMValueKind LLVMGetValueKind(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMGetValueName2(Val)#
Obtain the string name of a value.
- See:
llvm::Value::getName()
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):
C signature
const char * LLVMGetValueName2(LLVMValueRef Val, size_t * Length)
- rocm.bindings.llvm.c.core.LLVMSetValueName2(Val, Name, NameLen)#
Set the string name of a value.
- See:
llvm::Value::setName()
- Args:
C signature
void LLVMSetValueName2(LLVMValueRef Val, const char * Name, size_t NameLen)
- rocm.bindings.llvm.c.core.LLVMDumpValue(Val)#
Dump a representation of a value to stderr.
C signature
void LLVMDumpValue(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMPrintValueToString(Val)#
Return a string representation of the value.
Use LLVMDisposeMessage to free the string.
C signature
char * LLVMPrintValueToString(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMGetValueContext(Val)#
Obtain the context to which this value is associated.
- See:
llvm::Value::getContext()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMContextRef LLVMGetValueContext(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMPrintDbgRecordToString(Record)#
Return a string representation of the DbgRecord.
Use LLVMDisposeMessage to free the string.
- See:
llvm::DbgRecord::print()
- Args:
- Returns:
bytes: (undocumented)
C signature
char * LLVMPrintDbgRecordToString(LLVMDbgRecordRef Record)
- rocm.bindings.llvm.c.core.LLVMReplaceAllUsesWith(OldVal, NewVal)#
Replace all uses of a value with another one.
- See:
llvm::Value::replaceAllUsesWith()
- Args:
C signature
void LLVMReplaceAllUsesWith(LLVMValueRef OldVal, LLVMValueRef NewVal)
- rocm.bindings.llvm.c.core.LLVMIsConstant(Val)#
Determine whether the specified value instance is constant.
C signature
LLVMBool LLVMIsConstant(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsUndef(Val)#
Determine whether a value instance is undefined.
C signature
LLVMBool LLVMIsUndef(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsPoison(Val)#
Determine whether a value instance is poisonous.
C signature
LLVMBool LLVMIsPoison(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsAArgument(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsAArgument(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsABasicBlock(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsABasicBlock(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsAInlineAsm(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsAInlineAsm(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsAUser(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsAUser(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsAConstant(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsAConstant(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsABlockAddress(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsABlockAddress(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsAConstantAggregateZero(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsAConstantAggregateZero(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsAConstantArray(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsAConstantArray(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsAConstantDataSequential(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsAConstantDataSequential(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsAConstantDataArray(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsAConstantDataArray(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsAConstantDataVector(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsAConstantDataVector(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsAConstantExpr(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsAConstantExpr(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsAConstantFP(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsAConstantFP(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsAConstantInt(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsAConstantInt(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsAConstantByte(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsAConstantByte(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsAConstantPointerNull(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsAConstantPointerNull(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsAConstantStruct(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsAConstantStruct(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsAConstantTokenNone(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsAConstantTokenNone(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsAConstantVector(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsAConstantVector(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsAConstantPtrAuth(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsAConstantPtrAuth(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsAGlobalValue(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsAGlobalValue(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsAGlobalAlias(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsAGlobalAlias(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsAGlobalObject(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsAGlobalObject(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsAFunction(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsAFunction(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsAGlobalVariable(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsAGlobalVariable(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsAGlobalIFunc(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsAGlobalIFunc(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsAUndefValue(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsAUndefValue(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsAPoisonValue(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsAPoisonValue(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsAInstruction(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsAInstruction(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsAUnaryOperator(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsAUnaryOperator(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsABinaryOperator(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsABinaryOperator(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsACallInst(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsACallInst(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsAIntrinsicInst(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsAIntrinsicInst(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsADbgInfoIntrinsic(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsADbgInfoIntrinsic(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsADbgVariableIntrinsic(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsADbgVariableIntrinsic(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsADbgDeclareInst(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsADbgDeclareInst(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsADbgLabelInst(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsADbgLabelInst(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsAMemIntrinsic(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsAMemIntrinsic(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsAMemCpyInst(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsAMemCpyInst(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsAMemMoveInst(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsAMemMoveInst(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsAMemSetInst(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsAMemSetInst(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsACmpInst(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsACmpInst(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsAFCmpInst(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsAFCmpInst(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsAICmpInst(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsAICmpInst(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsAExtractElementInst(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsAExtractElementInst(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsAGetElementPtrInst(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsAGetElementPtrInst(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsAInsertElementInst(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsAInsertElementInst(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsAInsertValueInst(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsAInsertValueInst(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsALandingPadInst(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsALandingPadInst(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsAPHINode(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsAPHINode(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsASelectInst(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsASelectInst(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsAShuffleVectorInst(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsAShuffleVectorInst(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsAStoreInst(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsAStoreInst(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsAUncondBrInst(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsAUncondBrInst(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsACondBrInst(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsACondBrInst(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsAIndirectBrInst(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsAIndirectBrInst(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsAInvokeInst(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsAInvokeInst(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsAReturnInst(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsAReturnInst(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsASwitchInst(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsASwitchInst(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsAUnreachableInst(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsAUnreachableInst(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsAResumeInst(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsAResumeInst(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsACleanupReturnInst(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsACleanupReturnInst(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsACatchReturnInst(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsACatchReturnInst(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsACatchSwitchInst(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsACatchSwitchInst(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsACallBrInst(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsACallBrInst(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsAFuncletPadInst(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsAFuncletPadInst(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsACatchPadInst(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsACatchPadInst(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsACleanupPadInst(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsACleanupPadInst(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsAUnaryInstruction(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsAUnaryInstruction(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsAAllocaInst(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsAAllocaInst(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsACastInst(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsACastInst(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsAAddrSpaceCastInst(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsAAddrSpaceCastInst(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsABitCastInst(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsABitCastInst(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsAFPExtInst(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsAFPExtInst(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsAFPToSIInst(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsAFPToSIInst(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsAFPToUIInst(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsAFPToUIInst(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsAFPTruncInst(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsAFPTruncInst(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsAIntToPtrInst(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsAIntToPtrInst(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsAPtrToIntInst(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsAPtrToIntInst(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsASExtInst(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsASExtInst(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsASIToFPInst(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsASIToFPInst(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsATruncInst(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsATruncInst(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsAUIToFPInst(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsAUIToFPInst(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsAZExtInst(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsAZExtInst(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsAExtractValueInst(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsAExtractValueInst(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsALoadInst(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsALoadInst(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsAVAArgInst(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsAVAArgInst(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsAFreezeInst(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsAFreezeInst(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsAAtomicCmpXchgInst(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsAAtomicCmpXchgInst(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsAAtomicRMWInst(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsAAtomicRMWInst(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsAFenceInst(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsAFenceInst(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsABranchInst(Val)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMIsABranchInst(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsAMDNode(Val)#
Convert value instances between types.
Internally, an LLVMValueRef is “pinned” to a specific type. This series of functions allows you to cast an instance to a specific type.
If the cast is not valid for the specified type, NULL is returned.
C signature
LLVMValueRef LLVMIsAMDNode(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsAValueAsMetadata(Val)#
Convert value instances between types.
Internally, an LLVMValueRef is “pinned” to a specific type. This series of functions allows you to cast an instance to a specific type.
If the cast is not valid for the specified type, NULL is returned.
C signature
LLVMValueRef LLVMIsAValueAsMetadata(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMIsAMDString(Val)#
Convert value instances between types.
Internally, an LLVMValueRef is “pinned” to a specific type. This series of functions allows you to cast an instance to a specific type.
If the cast is not valid for the specified type, NULL is returned.
C signature
LLVMValueRef LLVMIsAMDString(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMGetValueName(Val)#
Deprecated: Use LLVMGetValueName2 instead.
C signature
const char * LLVMGetValueName(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMSetValueName(Val, Name)#
Deprecated: Use LLVMSetValueName2 instead.
C signature
void LLVMSetValueName(LLVMValueRef Val, const char * Name)
- rocm.bindings.llvm.c.core.LLVMGetFirstUse(Val)#
Obtain the first use of a value.
Uses are obtained in an iterator fashion. First, call this function to obtain a reference to the first use. Then, call LLVMGetNextUse() on that instance and all subsequently obtained instances until LLVMGetNextUse() returns NULL.
C signature
LLVMUseRef LLVMGetFirstUse(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMGetNextUse(U)#
Obtain the next use of a value.
This effectively advances the iterator. It returns NULL if you are on the final use and no more are available.
C signature
LLVMUseRef LLVMGetNextUse(LLVMUseRef U)
- rocm.bindings.llvm.c.core.LLVMGetUser(U)#
Obtain the user value for a user.
The returned value corresponds to a llvm::User type.
C signature
LLVMValueRef LLVMGetUser(LLVMUseRef U)
- rocm.bindings.llvm.c.core.LLVMGetUsedValue(U)#
Obtain the value this use corresponds to.
C signature
LLVMValueRef LLVMGetUsedValue(LLVMUseRef U)
- rocm.bindings.llvm.c.core.LLVMGetOperand(Val, Index)#
Obtain an operand at a specific index in a llvm::User value.
- See:
llvm::User::getOperand()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMGetOperand(LLVMValueRef Val, unsigned int Index)
- rocm.bindings.llvm.c.core.LLVMGetOperandUse(Val, Index)#
Obtain the use of an operand at a specific index in a llvm::User value.
- See:
llvm::User::getOperandUse()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMUseRef LLVMGetOperandUse(LLVMValueRef Val, unsigned int Index)
- rocm.bindings.llvm.c.core.LLVMSetOperand(User, Index, Val)#
Set an operand at a specific index in a llvm::User value.
- See:
llvm::User::setOperand()
- Args:
C signature
void LLVMSetOperand(LLVMValueRef User, unsigned int Index, LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMGetNumOperands(Val)#
Obtain the number of operands in a llvm::User value.
- See:
llvm::User::getNumOperands()
- Args:
- Returns:
int: (undocumented)
C signature
int LLVMGetNumOperands(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMConstNull(Ty)#
Obtain a constant value referring to the null instance of a type.
- See:
llvm::Constant::getNullValue()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMConstNull(LLVMTypeRef Ty)
- rocm.bindings.llvm.c.core.LLVMConstAllOnes(Ty)#
Obtain a constant value referring to the instance of a type consisting of all ones.
This is only valid for integer types.
- See:
llvm::Constant::getAllOnesValue()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMConstAllOnes(LLVMTypeRef Ty)
- rocm.bindings.llvm.c.core.LLVMGetUndef(Ty)#
Obtain a constant value referring to an undefined value of a type.
C signature
LLVMValueRef LLVMGetUndef(LLVMTypeRef Ty)
- rocm.bindings.llvm.c.core.LLVMGetPoison(Ty)#
Obtain a constant value referring to a poison value of a type.
C signature
LLVMValueRef LLVMGetPoison(LLVMTypeRef Ty)
- rocm.bindings.llvm.c.core.LLVMIsNull(Val)#
Determine whether a value instance is null.
- See:
llvm::Constant::isNullValue()
- Args:
- Returns:
int: (undocumented)
C signature
LLVMBool LLVMIsNull(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMConstPointerNull(Ty)#
Obtain a constant that is a constant pointer pointing to NULL for a specified type.
C signature
LLVMValueRef LLVMConstPointerNull(LLVMTypeRef Ty)
- rocm.bindings.llvm.c.core.LLVMConstInt(IntTy, N, SignExtend)#
Obtain a constant value for an integer type.
The returned value corresponds to a llvm::ConstantInt.
- See:
llvm::ConstantInt::get()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMConstInt(LLVMTypeRef IntTy, unsigned long long N, LLVMBool SignExtend)
- rocm.bindings.llvm.c.core.LLVMConstIntOfArbitraryPrecision(IntTy, NumWords, Words)#
Obtain a constant value for an integer of arbitrary precision.
- See:
llvm::ConstantInt::get()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMConstIntOfArbitraryPrecision(LLVMTypeRef IntTy, unsigned int NumWords, const uint64_t[] Words)
- rocm.bindings.llvm.c.core.LLVMConstIntOfString(IntTy, Text, Radix)#
Obtain a constant value for an integer parsed from a string.
A similar API, LLVMConstIntOfStringAndSize is also available. If the string’s length is available, it is preferred to call that function instead.
- See:
llvm::ConstantInt::get()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMConstIntOfString(LLVMTypeRef IntTy, const char * Text, uint8_t Radix)
- rocm.bindings.llvm.c.core.LLVMConstIntOfStringAndSize(IntTy, Text, SLen, Radix)#
Obtain a constant value for an integer parsed from a string with specified length.
- See:
llvm::ConstantInt::get()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMConstIntOfStringAndSize(LLVMTypeRef IntTy, const char * Text, unsigned int SLen, uint8_t Radix)
- rocm.bindings.llvm.c.core.LLVMConstByte(ByteTy, N)#
Obtain a constant value for a byte type.
The returned value corresponds to a llvm::ConstantByte.
- See:
llvm::ConstantByte::get()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMConstByte(LLVMTypeRef ByteTy, unsigned long long N)
- rocm.bindings.llvm.c.core.LLVMConstByteOfArbitraryPrecision(ByteTy, NumWords, Words)#
Obtain a constant value for a byte of arbitrary precision.
- See:
llvm::ConstantByte::get()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMConstByteOfArbitraryPrecision(LLVMTypeRef ByteTy, unsigned int NumWords, const uint64_t[] Words)
- rocm.bindings.llvm.c.core.LLVMConstByteOfStringAndSize(ByteTy, Text, SLen, Radix)#
Obtain a constant value for a byte parsed from a string with specified length.
- See:
llvm::ConstantByte::get()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMConstByteOfStringAndSize(LLVMTypeRef ByteTy, const char * Text, size_t SLen, uint8_t Radix)
- rocm.bindings.llvm.c.core.LLVMConstReal(RealTy, N)#
Obtain a constant value referring to a double floating point value.
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMConstReal(LLVMTypeRef RealTy, double N)
- rocm.bindings.llvm.c.core.LLVMConstRealOfString(RealTy, Text)#
Obtain a constant for a floating point value parsed from a string.
A similar API, LLVMConstRealOfStringAndSize is also available. It should be used if the input string’s length is known.
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMConstRealOfString(LLVMTypeRef RealTy, const char * Text)
- rocm.bindings.llvm.c.core.LLVMConstRealOfStringAndSize(RealTy, Text, SLen)#
Obtain a constant for a floating point value parsed from a string.
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMConstRealOfStringAndSize(LLVMTypeRef RealTy, const char * Text, unsigned int SLen)
- rocm.bindings.llvm.c.core.LLVMConstFPFromBits(Ty, N)#
Obtain a constant for a floating point value from array of 64 bit values.
The length of the array N must be ceildiv(bits, 64), where bits is the scalar size in bits of the floating-point type.
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMConstFPFromBits(LLVMTypeRef Ty, const uint64_t[] N)
- rocm.bindings.llvm.c.core.LLVMConstIntGetZExtValue(ConstantVal)#
Obtain the zero extended value for an integer constant value.
- See:
llvm::ConstantInt::getZExtValue()
- Args:
- Returns:
int: (undocumented)
C signature
unsigned long long LLVMConstIntGetZExtValue(LLVMValueRef ConstantVal)
- rocm.bindings.llvm.c.core.LLVMConstIntGetSExtValue(ConstantVal)#
Obtain the sign extended value for an integer constant value.
- See:
llvm::ConstantInt::getSExtValue()
- Args:
- Returns:
int: (undocumented)
C signature
long long LLVMConstIntGetSExtValue(LLVMValueRef ConstantVal)
- rocm.bindings.llvm.c.core.LLVMConstByteGetZExtValue(ConstantVal)#
Obtain the zero extended value for a byte constant value.
- See:
llvm::ConstantByte::getZExtValue()
- Args:
- Returns:
int: (undocumented)
C signature
unsigned long long LLVMConstByteGetZExtValue(LLVMValueRef ConstantVal)
- rocm.bindings.llvm.c.core.LLVMConstByteGetSExtValue(ConstantVal)#
Obtain the sign extended value for a byte constant value.
- See:
llvm::ConstantByte::getSExtValue()
- Args:
- Returns:
int: (undocumented)
C signature
long long LLVMConstByteGetSExtValue(LLVMValueRef ConstantVal)
- rocm.bindings.llvm.c.core.LLVMConstRealGetDouble(ConstantVal, losesInfo)#
Obtain the double value for an floating point constant value.
losesInfo indicates if some precision was lost in the conversion.
- See:
llvm::ConstantFP::getDoubleValue
- Args:
- ConstantVal (
Pointer/object): (undocumented)
- losesInfo (
PointerToInt/object): (undocumented)
- ConstantVal (
- Returns:
float: (undocumented)
C signature
double LLVMConstRealGetDouble(LLVMValueRef ConstantVal, LLVMBool * losesInfo)
- rocm.bindings.llvm.c.core.LLVMConstStringInContext(C, Str, Length, DontNullTerminate)#
Create a ConstantDataSequential and initialize it with a string.
- Deprecated:
LLVMConstStringInContext is deprecated in favor of the API accurate LLVMConstStringInContext2
- See:
llvm::ConstantDataArray::getString()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMConstStringInContext(LLVMContextRef C, const char * Str, unsigned int Length, LLVMBool DontNullTerminate)
- rocm.bindings.llvm.c.core.LLVMConstStringInContext2(C, Str, Length, DontNullTerminate)#
Create a ConstantDataSequential and initialize it with a string.
- See:
llvm::ConstantDataArray::getString()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMConstStringInContext2(LLVMContextRef C, const char * Str, size_t Length, LLVMBool DontNullTerminate)
- rocm.bindings.llvm.c.core.LLVMConstString(Str, Length, DontNullTerminate)#
Create a ConstantDataSequential with string content in the global context.
This is the same as LLVMConstStringInContext except it operates on the global context.
- See:
- See:
llvm::ConstantDataArray::getString()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMConstString(const char * Str, unsigned int Length, LLVMBool DontNullTerminate)
- rocm.bindings.llvm.c.core.LLVMIsConstantString(c)#
Returns true if the specified constant is an array of i8.
- See:
ConstantDataSequential::getAsString()
- Args:
- Returns:
int: (undocumented)
C signature
LLVMBool LLVMIsConstantString(LLVMValueRef c)
- rocm.bindings.llvm.c.core.LLVMGetAsString(c, Length)#
Get the given constant data sequential as a string.
- See:
ConstantDataSequential::getAsString()
- Args:
- c (
Pointer/object): (undocumented)
- Length (
PointerToUInt64/object): (undocumented)
- c (
- Returns:
bytes: (undocumented)
C signature
const char * LLVMGetAsString(LLVMValueRef c, size_t * Length)
- rocm.bindings.llvm.c.core.LLVMGetRawDataValues(c, SizeInBytes)#
Get the raw, underlying bytes of the given constant data sequential.
This is the same as LLVMGetAsString except it works for all constant data sequentials, not just i8 arrays.
- See:
ConstantDataSequential::getRawDataValues()
- Args:
- c (
Pointer/object): (undocumented)
- SizeInBytes (
PointerToUInt64/object): (undocumented)
- c (
- Returns:
bytes: (undocumented)
C signature
const char * LLVMGetRawDataValues(LLVMValueRef c, size_t * SizeInBytes)
- rocm.bindings.llvm.c.core.LLVMConstStructInContext(C, ConstantVals, Count, Packed)#
Create an anonymous ConstantStruct with the specified values.
- See:
llvm::ConstantStruct::getAnon()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMConstStructInContext(LLVMContextRef C, LLVMValueRef * ConstantVals, unsigned int Count, LLVMBool Packed)
- rocm.bindings.llvm.c.core.LLVMConstStruct(ConstantVals, Count, Packed)#
Create a ConstantStruct in the global Context.
This is the same as LLVMConstStructInContext except it operates on the global Context.
- See:
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMConstStruct(LLVMValueRef * ConstantVals, unsigned int Count, LLVMBool Packed)
- rocm.bindings.llvm.c.core.LLVMConstArray(ElementTy, ConstantVals, Length)#
Create a ConstantArray from values.
- Deprecated:
LLVMConstArray is deprecated in favor of the API accurate LLVMConstArray2
- See:
llvm::ConstantArray::get()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMConstArray(LLVMTypeRef ElementTy, LLVMValueRef * ConstantVals, unsigned int Length)
- rocm.bindings.llvm.c.core.LLVMConstArray2(ElementTy, ConstantVals, Length)#
Create a ConstantArray from values.
- See:
llvm::ConstantArray::get()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMConstArray2(LLVMTypeRef ElementTy, LLVMValueRef * ConstantVals, uint64_t Length)
- rocm.bindings.llvm.c.core.LLVMConstDataArray(ElementTy, Data, SizeInBytes)#
Create a ConstantDataArray from raw values.
ElementTy must be one of i8, i16, i32, i64, half, bfloat, float, or double. Data points to a contiguous buffer of raw values in the host endianness. The element count is inferred from the element type and the data size in bytes.
- See:
llvm::ConstantDataArray::getRaw()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMConstDataArray(LLVMTypeRef ElementTy, const char * Data, size_t SizeInBytes)
- rocm.bindings.llvm.c.core.LLVMConstNamedStruct(StructTy, ConstantVals, Count)#
Create a non-anonymous ConstantStruct from values.
- See:
llvm::ConstantStruct::get()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMConstNamedStruct(LLVMTypeRef StructTy, LLVMValueRef * ConstantVals, unsigned int Count)
- rocm.bindings.llvm.c.core.LLVMGetAggregateElement(C, Idx)#
Get element of a constant aggregate (struct, array or vector) at the specified index.
Returns null if the index is out of range, or it’s not possible to determine the element (e.g., because the constant is a constant expression.)
- See:
llvm::Constant::getAggregateElement()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMGetAggregateElement(LLVMValueRef C, unsigned int Idx)
- rocm.bindings.llvm.c.core.LLVMGetElementAsConstant(C, idx)#
Get an element at specified index as a constant.
- See:
ConstantDataSequential::getElementAsConstant()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMGetElementAsConstant(LLVMValueRef C, unsigned int idx)
- rocm.bindings.llvm.c.core.LLVMConstVector(ScalarConstantVals, Size)#
Create a ConstantVector from values.
- See:
llvm::ConstantVector::get()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMConstVector(LLVMValueRef * ScalarConstantVals, unsigned int Size)
- rocm.bindings.llvm.c.core.LLVMConstantPtrAuth(Ptr, Key, Disc, AddrDisc)#
Create a ConstantPtrAuth constant with the given values.
- See:
llvm::ConstantPtrAuth::get()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMConstantPtrAuth(LLVMValueRef Ptr, LLVMValueRef Key, LLVMValueRef Disc, LLVMValueRef AddrDisc)
- rocm.bindings.llvm.c.core.LLVMGetConstOpcode(ConstantVal)#
Functions in this group correspond to APIs on llvm::ConstantExpr.
- See:
llvm::ConstantExpr.
- Args:
- Returns:
LLVMOpcode: (undocumented)
C signature
LLVMOpcode LLVMGetConstOpcode(LLVMValueRef ConstantVal)
- rocm.bindings.llvm.c.core.LLVMAlignOf(Ty)#
Functions in this group correspond to APIs on llvm::ConstantExpr.
C signature
LLVMValueRef LLVMAlignOf(LLVMTypeRef Ty)
- rocm.bindings.llvm.c.core.LLVMSizeOf(Ty)#
Functions in this group correspond to APIs on llvm::ConstantExpr.
C signature
LLVMValueRef LLVMSizeOf(LLVMTypeRef Ty)
- rocm.bindings.llvm.c.core.LLVMConstNeg(ConstantVal)#
Functions in this group correspond to APIs on llvm::ConstantExpr.
- See:
llvm::ConstantExpr.
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMConstNeg(LLVMValueRef ConstantVal)
- rocm.bindings.llvm.c.core.LLVMConstNSWNeg(ConstantVal)#
Functions in this group correspond to APIs on llvm::ConstantExpr.
- See:
llvm::ConstantExpr.
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMConstNSWNeg(LLVMValueRef ConstantVal)
- rocm.bindings.llvm.c.core.LLVMConstNUWNeg(ConstantVal)#
(No short description, might be part of a group.)
C signature
LLVMValueRef LLVMConstNUWNeg(LLVMValueRef ConstantVal)
- rocm.bindings.llvm.c.core.LLVMConstNot(ConstantVal)#
Functions in this group correspond to APIs on llvm::ConstantExpr.
- See:
llvm::ConstantExpr.
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMConstNot(LLVMValueRef ConstantVal)
- rocm.bindings.llvm.c.core.LLVMConstAdd(LHSConstant, RHSConstant)#
Functions in this group correspond to APIs on llvm::ConstantExpr.
- See:
llvm::ConstantExpr.
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMConstAdd(LLVMValueRef LHSConstant, LLVMValueRef RHSConstant)
- rocm.bindings.llvm.c.core.LLVMConstNSWAdd(LHSConstant, RHSConstant)#
Functions in this group correspond to APIs on llvm::ConstantExpr.
- See:
llvm::ConstantExpr.
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMConstNSWAdd(LLVMValueRef LHSConstant, LLVMValueRef RHSConstant)
- rocm.bindings.llvm.c.core.LLVMConstNUWAdd(LHSConstant, RHSConstant)#
Functions in this group correspond to APIs on llvm::ConstantExpr.
- See:
llvm::ConstantExpr.
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMConstNUWAdd(LLVMValueRef LHSConstant, LLVMValueRef RHSConstant)
- rocm.bindings.llvm.c.core.LLVMConstSub(LHSConstant, RHSConstant)#
Functions in this group correspond to APIs on llvm::ConstantExpr.
- See:
llvm::ConstantExpr.
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMConstSub(LLVMValueRef LHSConstant, LLVMValueRef RHSConstant)
- rocm.bindings.llvm.c.core.LLVMConstNSWSub(LHSConstant, RHSConstant)#
Functions in this group correspond to APIs on llvm::ConstantExpr.
- See:
llvm::ConstantExpr.
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMConstNSWSub(LLVMValueRef LHSConstant, LLVMValueRef RHSConstant)
- rocm.bindings.llvm.c.core.LLVMConstNUWSub(LHSConstant, RHSConstant)#
Functions in this group correspond to APIs on llvm::ConstantExpr.
- See:
llvm::ConstantExpr.
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMConstNUWSub(LLVMValueRef LHSConstant, LLVMValueRef RHSConstant)
- rocm.bindings.llvm.c.core.LLVMConstXor(LHSConstant, RHSConstant)#
Functions in this group correspond to APIs on llvm::ConstantExpr.
- See:
llvm::ConstantExpr.
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMConstXor(LLVMValueRef LHSConstant, LLVMValueRef RHSConstant)
- rocm.bindings.llvm.c.core.LLVMConstGEP2(Ty, ConstantVal, ConstantIndices, NumIndices)#
Functions in this group correspond to APIs on llvm::ConstantExpr.
- See:
llvm::ConstantExpr.
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMConstGEP2(LLVMTypeRef Ty, LLVMValueRef ConstantVal, LLVMValueRef * ConstantIndices, unsigned int NumIndices)
- rocm.bindings.llvm.c.core.LLVMConstInBoundsGEP2(Ty, ConstantVal, ConstantIndices, NumIndices)#
Functions in this group correspond to APIs on llvm::ConstantExpr.
- See:
llvm::ConstantExpr.
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMConstInBoundsGEP2(LLVMTypeRef Ty, LLVMValueRef ConstantVal, LLVMValueRef * ConstantIndices, unsigned int NumIndices)
- rocm.bindings.llvm.c.core.LLVMConstGEPWithNoWrapFlags(Ty, ConstantVal, ConstantIndices, NumIndices, NoWrapFlags)#
Creates a constant GetElementPtr expression.
Similar to LLVMConstGEP2, but allows specifying the no-wrap flags.
- See:
llvm::ConstantExpr::getGetElementPtr()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMConstGEPWithNoWrapFlags(LLVMTypeRef Ty, LLVMValueRef ConstantVal, LLVMValueRef * ConstantIndices, unsigned int NumIndices, LLVMGEPNoWrapFlags NoWrapFlags)
- rocm.bindings.llvm.c.core.LLVMConstTrunc(ConstantVal, ToType)#
Creates a constant GetElementPtr expression.
Similar to LLVMConstGEP2, but allows specifying the no-wrap flags.
- See:
llvm::ConstantExpr::getGetElementPtr()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMConstTrunc(LLVMValueRef ConstantVal, LLVMTypeRef ToType)
- rocm.bindings.llvm.c.core.LLVMConstPtrToInt(ConstantVal, ToType)#
Creates a constant GetElementPtr expression.
Similar to LLVMConstGEP2, but allows specifying the no-wrap flags.
- See:
llvm::ConstantExpr::getGetElementPtr()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMConstPtrToInt(LLVMValueRef ConstantVal, LLVMTypeRef ToType)
- rocm.bindings.llvm.c.core.LLVMConstIntToPtr(ConstantVal, ToType)#
Creates a constant GetElementPtr expression.
Similar to LLVMConstGEP2, but allows specifying the no-wrap flags.
- See:
llvm::ConstantExpr::getGetElementPtr()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMConstIntToPtr(LLVMValueRef ConstantVal, LLVMTypeRef ToType)
- rocm.bindings.llvm.c.core.LLVMConstBitCast(ConstantVal, ToType)#
Creates a constant GetElementPtr expression.
Similar to LLVMConstGEP2, but allows specifying the no-wrap flags.
- See:
llvm::ConstantExpr::getGetElementPtr()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMConstBitCast(LLVMValueRef ConstantVal, LLVMTypeRef ToType)
- rocm.bindings.llvm.c.core.LLVMConstAddrSpaceCast(ConstantVal, ToType)#
Creates a constant GetElementPtr expression.
Similar to LLVMConstGEP2, but allows specifying the no-wrap flags.
- See:
llvm::ConstantExpr::getGetElementPtr()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMConstAddrSpaceCast(LLVMValueRef ConstantVal, LLVMTypeRef ToType)
- rocm.bindings.llvm.c.core.LLVMConstTruncOrBitCast(ConstantVal, ToType)#
Creates a constant GetElementPtr expression.
Similar to LLVMConstGEP2, but allows specifying the no-wrap flags.
- See:
llvm::ConstantExpr::getGetElementPtr()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMConstTruncOrBitCast(LLVMValueRef ConstantVal, LLVMTypeRef ToType)
- rocm.bindings.llvm.c.core.LLVMConstPointerCast(ConstantVal, ToType)#
Creates a constant GetElementPtr expression.
Similar to LLVMConstGEP2, but allows specifying the no-wrap flags.
- See:
llvm::ConstantExpr::getGetElementPtr()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMConstPointerCast(LLVMValueRef ConstantVal, LLVMTypeRef ToType)
- rocm.bindings.llvm.c.core.LLVMConstExtractElement(VectorConstant, IndexConstant)#
Creates a constant GetElementPtr expression.
Similar to LLVMConstGEP2, but allows specifying the no-wrap flags.
- See:
llvm::ConstantExpr::getGetElementPtr()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMConstExtractElement(LLVMValueRef VectorConstant, LLVMValueRef IndexConstant)
- rocm.bindings.llvm.c.core.LLVMConstInsertElement(VectorConstant, ElementValueConstant, IndexConstant)#
Creates a constant GetElementPtr expression.
Similar to LLVMConstGEP2, but allows specifying the no-wrap flags.
- See:
llvm::ConstantExpr::getGetElementPtr()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMConstInsertElement(LLVMValueRef VectorConstant, LLVMValueRef ElementValueConstant, LLVMValueRef IndexConstant)
- rocm.bindings.llvm.c.core.LLVMConstShuffleVector(VectorAConstant, VectorBConstant, MaskConstant)#
Creates a constant GetElementPtr expression.
Similar to LLVMConstGEP2, but allows specifying the no-wrap flags.
- See:
llvm::ConstantExpr::getGetElementPtr()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMConstShuffleVector(LLVMValueRef VectorAConstant, LLVMValueRef VectorBConstant, LLVMValueRef MaskConstant)
- rocm.bindings.llvm.c.core.LLVMBlockAddress(F, BB)#
Creates a constant GetElementPtr expression.
Similar to LLVMConstGEP2, but allows specifying the no-wrap flags.
- See:
llvm::ConstantExpr::getGetElementPtr()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBlockAddress(LLVMValueRef F, LLVMBasicBlockRef BB)
- rocm.bindings.llvm.c.core.LLVMGetBlockAddressFunction(BlockAddr)#
Gets the function associated with a given BlockAddress constant value.
C signature
LLVMValueRef LLVMGetBlockAddressFunction(LLVMValueRef BlockAddr)
- rocm.bindings.llvm.c.core.LLVMGetBlockAddressBasicBlock(BlockAddr)#
Gets the basic block associated with a given BlockAddress constant value.
C signature
LLVMBasicBlockRef LLVMGetBlockAddressBasicBlock(LLVMValueRef BlockAddr)
- rocm.bindings.llvm.c.core.LLVMConstInlineAsm(Ty, AsmString, Constraints, HasSideEffects, IsAlignStack)#
Deprecated: Use LLVMGetInlineAsm instead.
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMConstInlineAsm(LLVMTypeRef Ty, const char * AsmString, const char * Constraints, LLVMBool HasSideEffects, LLVMBool IsAlignStack)
- rocm.bindings.llvm.c.core.LLVMGetGlobalParent(Global)#
This group contains functions that operate on global values.
Functions in this group relate to functions in the llvm::GlobalValue class tree.
C signature
LLVMModuleRef LLVMGetGlobalParent(LLVMValueRef Global)
- rocm.bindings.llvm.c.core.LLVMIsDeclaration(Global)#
This group contains functions that operate on global values.
Functions in this group relate to functions in the llvm::GlobalValue class tree.
C signature
LLVMBool LLVMIsDeclaration(LLVMValueRef Global)
- rocm.bindings.llvm.c.core.LLVMGetLinkage(Global)#
This group contains functions that operate on global values.
Functions in this group relate to functions in the llvm::GlobalValue class tree.
- See:
llvm::GlobalValue
- Args:
- Returns:
LLVMLinkage: (undocumented)
C signature
LLVMLinkage LLVMGetLinkage(LLVMValueRef Global)
- rocm.bindings.llvm.c.core.LLVMSetLinkage(Global, Linkage)#
This group contains functions that operate on global values.
Functions in this group relate to functions in the llvm::GlobalValue class tree.
- See:
llvm::GlobalValue
- Args:
- Global (
Pointer/object): (undocumented)
- Linkage (
LLVMLinkage): (undocumented)
- Global (
C signature
void LLVMSetLinkage(LLVMValueRef Global, LLVMLinkage Linkage)
- rocm.bindings.llvm.c.core.LLVMGetSection(Global)#
This group contains functions that operate on global values.
Functions in this group relate to functions in the llvm::GlobalValue class tree.
C signature
const char * LLVMGetSection(LLVMValueRef Global)
- rocm.bindings.llvm.c.core.LLVMSetSection(Global, Section)#
This group contains functions that operate on global values.
Functions in this group relate to functions in the llvm::GlobalValue class tree.
- See:
llvm::GlobalValue
- Args:
C signature
void LLVMSetSection(LLVMValueRef Global, const char * Section)
- rocm.bindings.llvm.c.core.LLVMGetVisibility(Global)#
This group contains functions that operate on global values.
Functions in this group relate to functions in the llvm::GlobalValue class tree.
- See:
llvm::GlobalValue
- Args:
- Returns:
LLVMVisibility: (undocumented)
C signature
LLVMVisibility LLVMGetVisibility(LLVMValueRef Global)
- rocm.bindings.llvm.c.core.LLVMSetVisibility(Global, Viz)#
This group contains functions that operate on global values.
Functions in this group relate to functions in the llvm::GlobalValue class tree.
- See:
llvm::GlobalValue
- Args:
- Global (
Pointer/object): (undocumented)
- Viz (
LLVMVisibility): (undocumented)
- Global (
C signature
void LLVMSetVisibility(LLVMValueRef Global, LLVMVisibility Viz)
- rocm.bindings.llvm.c.core.LLVMGetDLLStorageClass(Global)#
This group contains functions that operate on global values.
Functions in this group relate to functions in the llvm::GlobalValue class tree.
- See:
llvm::GlobalValue
- Args:
- Returns:
LLVMDLLStorageClass: (undocumented)
C signature
LLVMDLLStorageClass LLVMGetDLLStorageClass(LLVMValueRef Global)
- rocm.bindings.llvm.c.core.LLVMSetDLLStorageClass(Global, Class)#
This group contains functions that operate on global values.
Functions in this group relate to functions in the llvm::GlobalValue class tree.
- See:
llvm::GlobalValue
- Args:
- Global (
Pointer/object): (undocumented)
- Class (
LLVMDLLStorageClass): (undocumented)
- Global (
C signature
void LLVMSetDLLStorageClass(LLVMValueRef Global, LLVMDLLStorageClass Class)
- rocm.bindings.llvm.c.core.LLVMGetUnnamedAddress(Global)#
This group contains functions that operate on global values.
Functions in this group relate to functions in the llvm::GlobalValue class tree.
- See:
llvm::GlobalValue
- Args:
- Returns:
LLVMUnnamedAddr: (undocumented)
C signature
LLVMUnnamedAddr LLVMGetUnnamedAddress(LLVMValueRef Global)
- rocm.bindings.llvm.c.core.LLVMSetUnnamedAddress(Global, UnnamedAddr)#
This group contains functions that operate on global values.
Functions in this group relate to functions in the llvm::GlobalValue class tree.
- See:
llvm::GlobalValue
- Args:
- Global (
Pointer/object): (undocumented)
- UnnamedAddr (
LLVMUnnamedAddr): (undocumented)
- Global (
C signature
void LLVMSetUnnamedAddress(LLVMValueRef Global, LLVMUnnamedAddr UnnamedAddr)
- rocm.bindings.llvm.c.core.LLVMGlobalGetValueType(Global)#
Returns the “value type” of a global value.
This differs from the formal type of a global value which is always a pointer type.
- See:
llvm::GlobalValue::getValueType()
- See:
llvm::Function::getFunctionType()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMTypeRef LLVMGlobalGetValueType(LLVMValueRef Global)
- rocm.bindings.llvm.c.core.LLVMHasUnnamedAddr(Global)#
Deprecated: Use LLVMGetUnnamedAddress instead.
C signature
LLVMBool LLVMHasUnnamedAddr(LLVMValueRef Global)
- rocm.bindings.llvm.c.core.LLVMSetUnnamedAddr(Global, HasUnnamedAddr)#
Deprecated: Use LLVMSetUnnamedAddress instead.
C signature
void LLVMSetUnnamedAddr(LLVMValueRef Global, LLVMBool HasUnnamedAddr)
- rocm.bindings.llvm.c.core.LLVMGetAlignment(V)#
Obtain the preferred alignment of the value.
- See:
llvm::AllocaInst::getAlignment()
- See:
llvm::LoadInst::getAlignment()
- See:
llvm::StoreInst::getAlignment()
- See:
llvm::AtomicRMWInst::setAlignment()
- See:
llvm::AtomicCmpXchgInst::setAlignment()
- See:
llvm::GlobalValue::getAlignment()
- Args:
- Returns:
int: (undocumented)
C signature
unsigned int LLVMGetAlignment(LLVMValueRef V)
- rocm.bindings.llvm.c.core.LLVMSetAlignment(V, Bytes)#
Set the preferred alignment of the value.
- See:
llvm::AllocaInst::setAlignment()
- See:
llvm::LoadInst::setAlignment()
- See:
llvm::StoreInst::setAlignment()
- See:
llvm::AtomicRMWInst::setAlignment()
- See:
llvm::AtomicCmpXchgInst::setAlignment()
- See:
llvm::GlobalValue::setAlignment()
- Args:
C signature
void LLVMSetAlignment(LLVMValueRef V, unsigned int Bytes)
- rocm.bindings.llvm.c.core.LLVMGlobalSetMetadata(Global, Kind, MD)#
Sets a metadata attachment, erasing the existing metadata attachment if it already exists for the given kind.
- See:
llvm::GlobalObject::setMetadata()
- Args:
C signature
void LLVMGlobalSetMetadata(LLVMValueRef Global, unsigned int Kind, LLVMMetadataRef MD)
- rocm.bindings.llvm.c.core.LLVMGlobalAddMetadata(Global, Kind, MD)#
Adds a metadata attachment.
- See:
llvm::GlobalObject::addMetadata()
- Args:
C signature
void LLVMGlobalAddMetadata(LLVMValueRef Global, unsigned int Kind, LLVMMetadataRef MD)
- rocm.bindings.llvm.c.core.LLVMGlobalEraseMetadata(Global, Kind)#
Erases a metadata attachment of the given kind if it exists.
- See:
llvm::GlobalObject::eraseMetadata()
- Args:
C signature
void LLVMGlobalEraseMetadata(LLVMValueRef Global, unsigned int Kind)
- rocm.bindings.llvm.c.core.LLVMGlobalClearMetadata(Global)#
Removes all metadata attachments from this value.
C signature
void LLVMGlobalClearMetadata(LLVMValueRef Global)
- rocm.bindings.llvm.c.core.LLVMGlobalAddDebugInfo(Global, GVE)#
Add debuginfo metadata to this global.
- See:
llvm::GlobalVariable::addDebugInfo()
- Args:
C signature
void LLVMGlobalAddDebugInfo(LLVMValueRef Global, LLVMMetadataRef GVE)
- rocm.bindings.llvm.c.core.LLVMGlobalCopyAllMetadata(Value, NumEntries)#
Retrieves an array of metadata entries representing the metadata attached to this value.
The caller is responsible for freeing this array by calling
LLVMDisposeValueMetadataEntries.- See:
llvm::GlobalObject::getAllMetadata()
- Args:
- Value (
Pointer/object): (undocumented)
- NumEntries (
PointerToUInt64/object): (undocumented)
- Value (
- Returns:
None: (undocumented)
C signature
LLVMValueMetadataEntry * LLVMGlobalCopyAllMetadata(LLVMValueRef Value, size_t * NumEntries)
- rocm.bindings.llvm.c.core.LLVMDisposeValueMetadataEntries(Entries)#
Destroys value metadata entries.
C signature
void LLVMDisposeValueMetadataEntries(LLVMValueMetadataEntry * Entries)
- rocm.bindings.llvm.c.core.LLVMValueMetadataEntriesGetKind(Entries, Index)#
Returns the kind of a value metadata entry at a specific index.
- Args:
- Returns:
int: (undocumented)
C signature
unsigned int LLVMValueMetadataEntriesGetKind(LLVMValueMetadataEntry * Entries, unsigned int Index)
- rocm.bindings.llvm.c.core.LLVMValueMetadataEntriesGetMetadata(Entries, Index)#
Returns the underlying metadata node of a value metadata entry at a specific index.
- Args:
- Returns:
None: (undocumented)
C signature
LLVMMetadataRef LLVMValueMetadataEntriesGetMetadata(LLVMValueMetadataEntry * Entries, unsigned int Index)
- rocm.bindings.llvm.c.core.LLVMAddGlobal(M, Ty, Name)#
This group contains functions that operate on global variable values.
- See:
llvm::GlobalVariable
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMAddGlobal(LLVMModuleRef M, LLVMTypeRef Ty, const char * Name)
- rocm.bindings.llvm.c.core.LLVMAddGlobalInAddressSpace(M, Ty, Name, AddressSpace)#
This group contains functions that operate on global variable values.
- See:
llvm::GlobalVariable
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMAddGlobalInAddressSpace(LLVMModuleRef M, LLVMTypeRef Ty, const char * Name, unsigned int AddressSpace)
- rocm.bindings.llvm.c.core.LLVMGetNamedGlobal(M, Name)#
This group contains functions that operate on global variable values.
- See:
llvm::GlobalVariable
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMGetNamedGlobal(LLVMModuleRef M, const char * Name)
- rocm.bindings.llvm.c.core.LLVMGetNamedGlobalWithLength(M, Name, Length)#
This group contains functions that operate on global variable values.
- See:
llvm::GlobalVariable
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMGetNamedGlobalWithLength(LLVMModuleRef M, const char * Name, size_t Length)
- rocm.bindings.llvm.c.core.LLVMGetFirstGlobal(M)#
This group contains functions that operate on global variable values.
C signature
LLVMValueRef LLVMGetFirstGlobal(LLVMModuleRef M)
- rocm.bindings.llvm.c.core.LLVMGetLastGlobal(M)#
This group contains functions that operate on global variable values.
C signature
LLVMValueRef LLVMGetLastGlobal(LLVMModuleRef M)
- rocm.bindings.llvm.c.core.LLVMGetNextGlobal(GlobalVar)#
This group contains functions that operate on global variable values.
- See:
llvm::GlobalVariable
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMGetNextGlobal(LLVMValueRef GlobalVar)
- rocm.bindings.llvm.c.core.LLVMGetPreviousGlobal(GlobalVar)#
This group contains functions that operate on global variable values.
- See:
llvm::GlobalVariable
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMGetPreviousGlobal(LLVMValueRef GlobalVar)
- rocm.bindings.llvm.c.core.LLVMDeleteGlobal(GlobalVar)#
This group contains functions that operate on global variable values.
C signature
void LLVMDeleteGlobal(LLVMValueRef GlobalVar)
- rocm.bindings.llvm.c.core.LLVMGetInitializer(GlobalVar)#
This group contains functions that operate on global variable values.
- See:
llvm::GlobalVariable
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMGetInitializer(LLVMValueRef GlobalVar)
- rocm.bindings.llvm.c.core.LLVMSetInitializer(GlobalVar, ConstantVal)#
This group contains functions that operate on global variable values.
- See:
llvm::GlobalVariable
- Args:
C signature
void LLVMSetInitializer(LLVMValueRef GlobalVar, LLVMValueRef ConstantVal)
- rocm.bindings.llvm.c.core.LLVMIsThreadLocal(GlobalVar)#
This group contains functions that operate on global variable values.
- See:
llvm::GlobalVariable
- Args:
- Returns:
int: (undocumented)
C signature
LLVMBool LLVMIsThreadLocal(LLVMValueRef GlobalVar)
- rocm.bindings.llvm.c.core.LLVMSetThreadLocal(GlobalVar, IsThreadLocal)#
This group contains functions that operate on global variable values.
- See:
llvm::GlobalVariable
- Args:
C signature
void LLVMSetThreadLocal(LLVMValueRef GlobalVar, LLVMBool IsThreadLocal)
- rocm.bindings.llvm.c.core.LLVMIsGlobalConstant(GlobalVar)#
This group contains functions that operate on global variable values.
- See:
llvm::GlobalVariable
- Args:
- Returns:
int: (undocumented)
C signature
LLVMBool LLVMIsGlobalConstant(LLVMValueRef GlobalVar)
- rocm.bindings.llvm.c.core.LLVMSetGlobalConstant(GlobalVar, IsConstant)#
This group contains functions that operate on global variable values.
- See:
llvm::GlobalVariable
- Args:
C signature
void LLVMSetGlobalConstant(LLVMValueRef GlobalVar, LLVMBool IsConstant)
- rocm.bindings.llvm.c.core.LLVMGetThreadLocalMode(GlobalVar)#
This group contains functions that operate on global variable values.
- See:
llvm::GlobalVariable
- Args:
- Returns:
LLVMThreadLocalMode: (undocumented)
C signature
LLVMThreadLocalMode LLVMGetThreadLocalMode(LLVMValueRef GlobalVar)
- rocm.bindings.llvm.c.core.LLVMSetThreadLocalMode(GlobalVar, Mode)#
This group contains functions that operate on global variable values.
- See:
llvm::GlobalVariable
- Args:
- GlobalVar (
Pointer/object): (undocumented)
- Mode (
LLVMThreadLocalMode): (undocumented)
- GlobalVar (
C signature
void LLVMSetThreadLocalMode(LLVMValueRef GlobalVar, LLVMThreadLocalMode Mode)
- rocm.bindings.llvm.c.core.LLVMIsExternallyInitialized(GlobalVar)#
This group contains functions that operate on global variable values.
- See:
llvm::GlobalVariable
- Args:
- Returns:
int: (undocumented)
C signature
LLVMBool LLVMIsExternallyInitialized(LLVMValueRef GlobalVar)
- rocm.bindings.llvm.c.core.LLVMSetExternallyInitialized(GlobalVar, IsExtInit)#
This group contains functions that operate on global variable values.
- See:
llvm::GlobalVariable
- Args:
C signature
void LLVMSetExternallyInitialized(LLVMValueRef GlobalVar, LLVMBool IsExtInit)
- rocm.bindings.llvm.c.core.LLVMAddAlias2(M, ValueTy, AddrSpace, Aliasee, Name)#
Add a GlobalAlias with the given value type, address space and aliasee.
- See:
llvm::GlobalAlias::create()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMAddAlias2(LLVMModuleRef M, LLVMTypeRef ValueTy, unsigned int AddrSpace, LLVMValueRef Aliasee, const char * Name)
- rocm.bindings.llvm.c.core.LLVMGetNamedGlobalAlias(M, Name, NameLen)#
Obtain a GlobalAlias value from a Module by its name.
The returned value corresponds to a llvm::GlobalAlias value.
- See:
llvm::Module::getNamedAlias()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMGetNamedGlobalAlias(LLVMModuleRef M, const char * Name, size_t NameLen)
- rocm.bindings.llvm.c.core.LLVMGetFirstGlobalAlias(M)#
Obtain an iterator to the first GlobalAlias in a Module.
- See:
llvm::Module::alias_begin()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMGetFirstGlobalAlias(LLVMModuleRef M)
- rocm.bindings.llvm.c.core.LLVMGetLastGlobalAlias(M)#
Obtain an iterator to the last GlobalAlias in a Module.
C signature
LLVMValueRef LLVMGetLastGlobalAlias(LLVMModuleRef M)
- rocm.bindings.llvm.c.core.LLVMGetNextGlobalAlias(GA)#
Advance a GlobalAlias iterator to the next GlobalAlias.
Returns NULL if the iterator was already at the end and there are no more global aliases.
C signature
LLVMValueRef LLVMGetNextGlobalAlias(LLVMValueRef GA)
- rocm.bindings.llvm.c.core.LLVMGetPreviousGlobalAlias(GA)#
Decrement a GlobalAlias iterator to the previous GlobalAlias.
Returns NULL if the iterator was already at the beginning and there are no previous global aliases.
C signature
LLVMValueRef LLVMGetPreviousGlobalAlias(LLVMValueRef GA)
- rocm.bindings.llvm.c.core.LLVMAliasGetAliasee(Alias)#
Retrieve the target value of an alias.
C signature
LLVMValueRef LLVMAliasGetAliasee(LLVMValueRef Alias)
- rocm.bindings.llvm.c.core.LLVMAliasSetAliasee(Alias, Aliasee)#
Set the target value of an alias.
C signature
void LLVMAliasSetAliasee(LLVMValueRef Alias, LLVMValueRef Aliasee)
- rocm.bindings.llvm.c.core.LLVMDeleteFunction(Fn)#
Remove a function from its containing module and deletes it.
C signature
void LLVMDeleteFunction(LLVMValueRef Fn)
- rocm.bindings.llvm.c.core.LLVMHasPersonalityFn(Fn)#
Check whether the given function has a personality function.
- See:
llvm::Function::hasPersonalityFn()
- Args:
- Returns:
int: (undocumented)
C signature
LLVMBool LLVMHasPersonalityFn(LLVMValueRef Fn)
- rocm.bindings.llvm.c.core.LLVMGetPersonalityFn(Fn)#
Obtain the personality function attached to the function.
- See:
llvm::Function::getPersonalityFn()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMGetPersonalityFn(LLVMValueRef Fn)
- rocm.bindings.llvm.c.core.LLVMSetPersonalityFn(Fn, PersonalityFn)#
Set the personality function attached to the function.
- See:
llvm::Function::setPersonalityFn()
- Args:
C signature
void LLVMSetPersonalityFn(LLVMValueRef Fn, LLVMValueRef PersonalityFn)
- rocm.bindings.llvm.c.core.LLVMLookupIntrinsicID(Name, NameLen)#
Obtain the intrinsic ID number which matches the given function name.
- See:
llvm::Intrinsic::lookupIntrinsicID()
- Args:
- Returns:
int: (undocumented)
C signature
unsigned int LLVMLookupIntrinsicID(const char * Name, size_t NameLen)
- rocm.bindings.llvm.c.core.LLVMGetIntrinsicID(Fn)#
Obtain the ID number from a function instance.
- See:
llvm::Function::getIntrinsicID()
- Args:
- Returns:
int: (undocumented)
C signature
unsigned int LLVMGetIntrinsicID(LLVMValueRef Fn)
- rocm.bindings.llvm.c.core.LLVMGetIntrinsicDeclaration(Mod, ID, OverloadTypes, OverloadCount)#
Get or insert the declaration of an intrinsic.
For overloaded intrinsics, overload types must be provided to uniquely identify an overload.
- See:
llvm::Intrinsic::getOrInsertDeclaration()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMGetIntrinsicDeclaration(LLVMModuleRef Mod, unsigned int ID, LLVMTypeRef * OverloadTypes, size_t OverloadCount)
- rocm.bindings.llvm.c.core.LLVMIntrinsicGetType(Ctx, ID, OverloadTypes, OverloadCount)#
Retrieves the type of an intrinsic.
For overloaded intrinsics, overload types must be provided to uniquely identify an overload.
- See:
llvm::Intrinsic::getType()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMTypeRef LLVMIntrinsicGetType(LLVMContextRef Ctx, unsigned int ID, LLVMTypeRef * OverloadTypes, size_t OverloadCount)
- rocm.bindings.llvm.c.core.LLVMIntrinsicGetName(ID, NameLength)#
Retrieves the name of an intrinsic.
- See:
llvm::Intrinsic::getName()
- Args:
- ID (
int): (undocumented)
- NameLength (
PointerToUInt64/object): (undocumented)
- ID (
- Returns:
bytes: (undocumented)
C signature
const char * LLVMIntrinsicGetName(unsigned int ID, size_t * NameLength)
- rocm.bindings.llvm.c.core.LLVMIntrinsicCopyOverloadedName(ID, OverloadTypes, OverloadCount, NameLength)#
Deprecated: Use LLVMIntrinsicCopyOverloadedName2 instead.
- Args:
- Returns:
bytes: (undocumented)
C signature
char * LLVMIntrinsicCopyOverloadedName(unsigned int ID, LLVMTypeRef * OverloadTypes, size_t OverloadCount, size_t * NameLength)
- rocm.bindings.llvm.c.core.LLVMIntrinsicCopyOverloadedName2(Mod, ID, OverloadTypes, OverloadCount, NameLength)#
Copies the name of an overloaded intrinsic identified by a given list of overload types.
Unlike LLVMIntrinsicGetName, the caller is responsible for freeing the returned string.
This version also supports unnamed types.
- See:
llvm::Intrinsic::getName()
- Args:
- Returns:
bytes: (undocumented)
C signature
char * LLVMIntrinsicCopyOverloadedName2(LLVMModuleRef Mod, unsigned int ID, LLVMTypeRef * OverloadTypes, size_t OverloadCount, size_t * NameLength)
- rocm.bindings.llvm.c.core.LLVMIntrinsicIsOverloaded(ID)#
Obtain if the intrinsic identified by the given ID is overloaded.
C signature
LLVMBool LLVMIntrinsicIsOverloaded(unsigned int ID)
- rocm.bindings.llvm.c.core.LLVMGetFunctionCallConv(Fn)#
Obtain the calling function of a function.
The returned value corresponds to the LLVMCallConv enumeration.
- See:
llvm::Function::getCallingConv()
- Args:
- Returns:
int: (undocumented)
C signature
unsigned int LLVMGetFunctionCallConv(LLVMValueRef Fn)
- rocm.bindings.llvm.c.core.LLVMSetFunctionCallConv(Fn, CC)#
Set the calling convention of a function.
- See:
llvm::Function::setCallingConv()
- Args:
C signature
void LLVMSetFunctionCallConv(LLVMValueRef Fn, unsigned int CC)
- rocm.bindings.llvm.c.core.LLVMGetGC(Fn)#
Obtain the name of the garbage collector to use during code generation.
C signature
const char * LLVMGetGC(LLVMValueRef Fn)
- rocm.bindings.llvm.c.core.LLVMSetGC(Fn, Name)#
Define the garbage collector to use during code generation.
- See:
llvm::Function::setGC()
- Args:
C signature
void LLVMSetGC(LLVMValueRef Fn, const char * Name)
- rocm.bindings.llvm.c.core.LLVMGetPrefixData(Fn)#
Gets the prefix data associated with a function.
Only valid on functions, and only if LLVMHasPrefixData returns true. See https://llvm.org/docs/LangRef.html:py:obj:
prefix-dataC signature
LLVMValueRef LLVMGetPrefixData(LLVMValueRef Fn)
- rocm.bindings.llvm.c.core.LLVMHasPrefixData(Fn)#
Check if a given function has prefix data.
Only valid on functions. See https://llvm.org/docs/LangRef.html:py:obj:
prefix-dataC signature
LLVMBool LLVMHasPrefixData(LLVMValueRef Fn)
- rocm.bindings.llvm.c.core.LLVMSetPrefixData(Fn, prefixData)#
Sets the prefix data for the function.
Only valid on functions. See https://llvm.org/docs/LangRef.html:py:obj:
prefix-dataC signature
void LLVMSetPrefixData(LLVMValueRef Fn, LLVMValueRef prefixData)
- rocm.bindings.llvm.c.core.LLVMGetPrologueData(Fn)#
Gets the prologue data associated with a function.
Only valid on functions, and only if LLVMHasPrologueData returns true. See https://llvm.org/docs/LangRef.html:py:obj:
prologue-dataC signature
LLVMValueRef LLVMGetPrologueData(LLVMValueRef Fn)
- rocm.bindings.llvm.c.core.LLVMHasPrologueData(Fn)#
Check if a given function has prologue data.
Only valid on functions. See https://llvm.org/docs/LangRef.html:py:obj:
prologue-dataC signature
LLVMBool LLVMHasPrologueData(LLVMValueRef Fn)
- rocm.bindings.llvm.c.core.LLVMSetPrologueData(Fn, prologueData)#
Sets the prologue data for the function.
Only valid on functions. See https://llvm.org/docs/LangRef.html:py:obj:
prologue-dataC signature
void LLVMSetPrologueData(LLVMValueRef Fn, LLVMValueRef prologueData)
- rocm.bindings.llvm.c.core.LLVMAddAttributeAtIndex(F, Idx, A)#
Add an attribute to a function.
- See:
llvm::Function::addAttribute()
- Args:
C signature
void LLVMAddAttributeAtIndex(LLVMValueRef F, LLVMAttributeIndex Idx, LLVMAttributeRef A)
- rocm.bindings.llvm.c.core.LLVMGetAttributeCountAtIndex(F, Idx)#
Add an attribute to a function.
- See:
llvm::Function::addAttribute()
- Args:
- Returns:
int: (undocumented)
C signature
unsigned int LLVMGetAttributeCountAtIndex(LLVMValueRef F, LLVMAttributeIndex Idx)
- rocm.bindings.llvm.c.core.LLVMGetAttributesAtIndex(F, Idx, Attrs)#
Add an attribute to a function.
- See:
llvm::Function::addAttribute()
- Args:
C signature
void LLVMGetAttributesAtIndex(LLVMValueRef F, LLVMAttributeIndex Idx, LLVMAttributeRef * Attrs)
- rocm.bindings.llvm.c.core.LLVMGetEnumAttributeAtIndex(F, Idx, KindID)#
Add an attribute to a function.
- See:
llvm::Function::addAttribute()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMAttributeRef LLVMGetEnumAttributeAtIndex(LLVMValueRef F, LLVMAttributeIndex Idx, unsigned int KindID)
- rocm.bindings.llvm.c.core.LLVMGetStringAttributeAtIndex(F, Idx, K, KLen)#
Add an attribute to a function.
- See:
llvm::Function::addAttribute()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMAttributeRef LLVMGetStringAttributeAtIndex(LLVMValueRef F, LLVMAttributeIndex Idx, const char * K, unsigned int KLen)
- rocm.bindings.llvm.c.core.LLVMRemoveEnumAttributeAtIndex(F, Idx, KindID)#
Add an attribute to a function.
- See:
llvm::Function::addAttribute()
- Args:
C signature
void LLVMRemoveEnumAttributeAtIndex(LLVMValueRef F, LLVMAttributeIndex Idx, unsigned int KindID)
- rocm.bindings.llvm.c.core.LLVMRemoveStringAttributeAtIndex(F, Idx, K, KLen)#
Add an attribute to a function.
- See:
llvm::Function::addAttribute()
- Args:
C signature
void LLVMRemoveStringAttributeAtIndex(LLVMValueRef F, LLVMAttributeIndex Idx, const char * K, unsigned int KLen)
- rocm.bindings.llvm.c.core.LLVMAddTargetDependentFunctionAttr(Fn, A, V)#
Add a target-dependent attribute to a function
- See:
llvm::AttrBuilder::addAttribute()
- Args:
C signature
void LLVMAddTargetDependentFunctionAttr(LLVMValueRef Fn, const char * A, const char * V)
- rocm.bindings.llvm.c.core.LLVMCountParams(Fn)#
Obtain the number of parameters in a function.
C signature
unsigned int LLVMCountParams(LLVMValueRef Fn)
- rocm.bindings.llvm.c.core.LLVMGetParams(Fn, Params)#
Obtain the parameters in a function.
The takes a pointer to a pre-allocated array of LLVMValueRef that is at least LLVMCountParams() long. This array will be filled with LLVMValueRef instances which correspond to the parameters the function receives. Each LLVMValueRef corresponds to a llvm::Argument instance.
- See:
llvm::Function::arg_begin()
- Args:
- Fn (
Pointer/object): (undocumented)
- Params (
ListOfPointer/object): (undocumented)
- Fn (
C signature
void LLVMGetParams(LLVMValueRef Fn, LLVMValueRef * Params)
- rocm.bindings.llvm.c.core.LLVMGetParam(Fn, Index)#
Obtain the parameter at the specified index.
Parameters are indexed from 0.
- See:
llvm::Function::arg_begin()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMGetParam(LLVMValueRef Fn, unsigned int Index)
- rocm.bindings.llvm.c.core.LLVMGetParamParent(Inst)#
Obtain the function to which this argument belongs.
Unlike other functions in this group, this one takes an LLVMValueRef that corresponds to a llvm::Attribute.
The returned LLVMValueRef is the llvm::Function to which this argument belongs.
C signature
LLVMValueRef LLVMGetParamParent(LLVMValueRef Inst)
- rocm.bindings.llvm.c.core.LLVMGetFirstParam(Fn)#
Obtain the first parameter to a function.
- See:
llvm::Function::arg_begin()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMGetFirstParam(LLVMValueRef Fn)
- rocm.bindings.llvm.c.core.LLVMGetLastParam(Fn)#
Obtain the last parameter to a function.
C signature
LLVMValueRef LLVMGetLastParam(LLVMValueRef Fn)
- rocm.bindings.llvm.c.core.LLVMGetNextParam(Arg)#
Obtain the next parameter to a function.
This takes an LLVMValueRef obtained from LLVMGetFirstParam() (which is actually a wrapped iterator) and obtains the next parameter from the underlying iterator.
C signature
LLVMValueRef LLVMGetNextParam(LLVMValueRef Arg)
- rocm.bindings.llvm.c.core.LLVMGetPreviousParam(Arg)#
Obtain the previous parameter to a function.
This is the opposite of LLVMGetNextParam().
C signature
LLVMValueRef LLVMGetPreviousParam(LLVMValueRef Arg)
- rocm.bindings.llvm.c.core.LLVMSetParamAlignment(Arg, Align)#
Set the alignment for a function parameter.
- See:
llvm::Argument::addAttr()
- See:
llvm::AttrBuilder::addAlignmentAttr()
- Args:
C signature
void LLVMSetParamAlignment(LLVMValueRef Arg, unsigned int Align)
- rocm.bindings.llvm.c.core.LLVMAddGlobalIFunc(M, Name, NameLen, Ty, AddrSpace, Resolver)#
Add a global indirect function to a module under a specified name.
- See:
llvm::GlobalIFunc::create()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMAddGlobalIFunc(LLVMModuleRef M, const char * Name, size_t NameLen, LLVMTypeRef Ty, unsigned int AddrSpace, LLVMValueRef Resolver)
- rocm.bindings.llvm.c.core.LLVMGetNamedGlobalIFunc(M, Name, NameLen)#
Obtain a GlobalIFunc value from a Module by its name.
The returned value corresponds to a llvm::GlobalIFunc value.
- See:
llvm::Module::getNamedIFunc()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMGetNamedGlobalIFunc(LLVMModuleRef M, const char * Name, size_t NameLen)
- rocm.bindings.llvm.c.core.LLVMGetFirstGlobalIFunc(M)#
Obtain an iterator to the first GlobalIFunc in a Module.
- See:
llvm::Module::ifunc_begin()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMGetFirstGlobalIFunc(LLVMModuleRef M)
- rocm.bindings.llvm.c.core.LLVMGetLastGlobalIFunc(M)#
Obtain an iterator to the last GlobalIFunc in a Module.
C signature
LLVMValueRef LLVMGetLastGlobalIFunc(LLVMModuleRef M)
- rocm.bindings.llvm.c.core.LLVMGetNextGlobalIFunc(IFunc)#
Advance a GlobalIFunc iterator to the next GlobalIFunc.
Returns NULL if the iterator was already at the end and there are no more global aliases.
C signature
LLVMValueRef LLVMGetNextGlobalIFunc(LLVMValueRef IFunc)
- rocm.bindings.llvm.c.core.LLVMGetPreviousGlobalIFunc(IFunc)#
Decrement a GlobalIFunc iterator to the previous GlobalIFunc.
Returns NULL if the iterator was already at the beginning and there are no previous global aliases.
C signature
LLVMValueRef LLVMGetPreviousGlobalIFunc(LLVMValueRef IFunc)
- rocm.bindings.llvm.c.core.LLVMGetGlobalIFuncResolver(IFunc)#
Retrieves the resolver function associated with this indirect function, or NULL if it doesn’t not exist.
- See:
llvm::GlobalIFunc::getResolver()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMGetGlobalIFuncResolver(LLVMValueRef IFunc)
- rocm.bindings.llvm.c.core.LLVMSetGlobalIFuncResolver(IFunc, Resolver)#
Sets the resolver function associated with this indirect function.
- See:
llvm::GlobalIFunc::setResolver()
- Args:
C signature
void LLVMSetGlobalIFuncResolver(LLVMValueRef IFunc, LLVMValueRef Resolver)
- rocm.bindings.llvm.c.core.LLVMEraseGlobalIFunc(IFunc)#
Remove a global indirect function from its parent module and delete it.
C signature
void LLVMEraseGlobalIFunc(LLVMValueRef IFunc)
- rocm.bindings.llvm.c.core.LLVMRemoveGlobalIFunc(IFunc)#
Remove a global indirect function from its parent module.
This unlinks the global indirect function from its containing module but keeps it alive.
C signature
void LLVMRemoveGlobalIFunc(LLVMValueRef IFunc)
- rocm.bindings.llvm.c.core.LLVMMDStringInContext2(C, Str, SLen)#
Create an MDString value from a given string value.
The MDString value does not take ownership of the given string, it remains the responsibility of the caller to free it.
- See:
llvm::MDString::get()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMMetadataRef LLVMMDStringInContext2(LLVMContextRef C, const char * Str, size_t SLen)
- rocm.bindings.llvm.c.core.LLVMMDNodeInContext2(C, MDs, Count)#
Create an MDNode value with the given array of operands.
- See:
llvm::MDNode::get()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMMetadataRef LLVMMDNodeInContext2(LLVMContextRef C, LLVMMetadataRef * MDs, size_t Count)
- rocm.bindings.llvm.c.core.LLVMMetadataAsValue(C, MD)#
Obtain a Metadata as a Value.
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMMetadataAsValue(LLVMContextRef C, LLVMMetadataRef MD)
- rocm.bindings.llvm.c.core.LLVMValueAsMetadata(Val)#
Obtain a Value as a Metadata.
C signature
LLVMMetadataRef LLVMValueAsMetadata(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMGetMDString(V, Length)#
Obtain the underlying string from a MDString value.
- Args:
- V (
Pointer/object): Instance to obtain string from.
- Length (
PointerToUnsigned/object): Memory address which will hold length of returned string.
- V (
- Returns:
bytes: String data in MDString.
C signature
const char * LLVMGetMDString(LLVMValueRef V, unsigned int * Length)
- rocm.bindings.llvm.c.core.LLVMGetMDNodeNumOperands(V)#
Obtain the number of operands from an MDNode value.
- Args:
- Returns:
int: Number of operands of the MDNode.
C signature
unsigned int LLVMGetMDNodeNumOperands(LLVMValueRef V)
- rocm.bindings.llvm.c.core.LLVMGetMDNodeOperands(V, Dest)#
Obtain the given MDNode’s operands.
The passed LLVMValueRef pointer should point to enough memory to hold all of the operands of the given MDNode (see LLVMGetMDNodeNumOperands) as LLVMValueRefs. This memory will be populated with the LLVMValueRefs of the MDNode’s operands.
- Args:
C signature
void LLVMGetMDNodeOperands(LLVMValueRef V, LLVMValueRef * Dest)
- rocm.bindings.llvm.c.core.LLVMReplaceMDNodeOperandWith(V, Index, Replacement)#
Replace an operand at a specific index in a llvm::MDNode value.
- See:
llvm::MDNode::replaceOperandWith()
- Args:
C signature
void LLVMReplaceMDNodeOperandWith(LLVMValueRef V, unsigned int Index, LLVMMetadataRef Replacement)
- rocm.bindings.llvm.c.core.LLVMMDStringInContext(C, Str, SLen)#
Deprecated: Use LLVMMDStringInContext2 instead.
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMMDStringInContext(LLVMContextRef C, const char * Str, unsigned int SLen)
- rocm.bindings.llvm.c.core.LLVMMDString(Str, SLen)#
Deprecated: Use LLVMMDStringInContext2 instead.
C signature
LLVMValueRef LLVMMDString(const char * Str, unsigned int SLen)
- rocm.bindings.llvm.c.core.LLVMMDNodeInContext(C, Vals, Count)#
Deprecated: Use LLVMMDNodeInContext2 instead.
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMMDNodeInContext(LLVMContextRef C, LLVMValueRef * Vals, unsigned int Count)
- rocm.bindings.llvm.c.core.LLVMMDNode(Vals, Count)#
Deprecated: Use LLVMMDNodeInContext2 instead.
C signature
LLVMValueRef LLVMMDNode(LLVMValueRef * Vals, unsigned int Count)
- rocm.bindings.llvm.c.core.LLVMCreateOperandBundle(Tag, TagLen, Args, NumArgs)#
Create a new operand bundle.
Every invocation should be paired with LLVMDisposeOperandBundle() or memory will be leaked.
- Args:
- Returns:
None: (undocumented)
C signature
LLVMOperandBundleRef LLVMCreateOperandBundle(const char * Tag, size_t TagLen, LLVMValueRef * Args, unsigned int NumArgs)
- rocm.bindings.llvm.c.core.LLVMDisposeOperandBundle(Bundle)#
Destroy an operand bundle.
This must be called for every created operand bundle or memory will be leaked.
C signature
void LLVMDisposeOperandBundle(LLVMOperandBundleRef Bundle)
- rocm.bindings.llvm.c.core.LLVMGetOperandBundleTag(Bundle, Len)#
Obtain the tag of an operand bundle as a string.
- See:
OperandBundleDef::getTag()
- Args:
- Bundle (
Pointer/object): Operand bundle to obtain tag of.
- Len (
PointerToUInt64/object): Out parameter which holds the length of the returned string.
- Bundle (
- Returns:
bytes: The tag name of Bundle.
C signature
const char * LLVMGetOperandBundleTag(LLVMOperandBundleRef Bundle, size_t * Len)
- rocm.bindings.llvm.c.core.LLVMGetNumOperandBundleArgs(Bundle)#
Obtain the number of operands for an operand bundle.
- See:
OperandBundleDef::input_size()
- Args:
- Returns:
int: The number of operands.
C signature
unsigned int LLVMGetNumOperandBundleArgs(LLVMOperandBundleRef Bundle)
- rocm.bindings.llvm.c.core.LLVMGetOperandBundleArgAtIndex(Bundle, Index)#
Obtain the operand for an operand bundle at the given index.
- Args:
- Returns:
None: The operand.
C signature
LLVMValueRef LLVMGetOperandBundleArgAtIndex(LLVMOperandBundleRef Bundle, unsigned int Index)
- rocm.bindings.llvm.c.core.LLVMBasicBlockAsValue(BB)#
Convert a basic block instance to a value type.
C signature
LLVMValueRef LLVMBasicBlockAsValue(LLVMBasicBlockRef BB)
- rocm.bindings.llvm.c.core.LLVMValueIsBasicBlock(Val)#
Determine whether an LLVMValueRef is itself a basic block.
C signature
LLVMBool LLVMValueIsBasicBlock(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMValueAsBasicBlock(Val)#
Convert an LLVMValueRef to an LLVMBasicBlockRef instance.
C signature
LLVMBasicBlockRef LLVMValueAsBasicBlock(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMGetBasicBlockName(BB)#
Obtain the string name of a basic block.
C signature
const char * LLVMGetBasicBlockName(LLVMBasicBlockRef BB)
- rocm.bindings.llvm.c.core.LLVMGetBasicBlockParent(BB)#
Obtain the function to which a basic block belongs.
- See:
llvm::BasicBlock::getParent()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMGetBasicBlockParent(LLVMBasicBlockRef BB)
- rocm.bindings.llvm.c.core.LLVMGetBasicBlockTerminator(BB)#
Obtain the terminator instruction for a basic block.
If the basic block does not have a terminator (it is not well-formed if it doesn’t), then NULL is returned.
The returned LLVMValueRef corresponds to an llvm::Instruction.
- See:
llvm::BasicBlock::getTerminator()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMGetBasicBlockTerminator(LLVMBasicBlockRef BB)
- rocm.bindings.llvm.c.core.LLVMCountBasicBlocks(Fn)#
Obtain the number of basic blocks in a function.
C signature
unsigned int LLVMCountBasicBlocks(LLVMValueRef Fn)
- rocm.bindings.llvm.c.core.LLVMGetBasicBlocks(Fn, BasicBlocks)#
Obtain all of the basic blocks in a function.
This operates on a function value. The BasicBlocks parameter is a pointer to a pre-allocated array of LLVMBasicBlockRef of at least LLVMCountBasicBlocks() in length. This array is populated with LLVMBasicBlockRef instances.
C signature
void LLVMGetBasicBlocks(LLVMValueRef Fn, LLVMBasicBlockRef * BasicBlocks)
- rocm.bindings.llvm.c.core.LLVMGetFirstBasicBlock(Fn)#
Obtain the first basic block in a function.
The returned basic block can be used as an iterator. You will likely eventually call into LLVMGetNextBasicBlock() with it.
C signature
LLVMBasicBlockRef LLVMGetFirstBasicBlock(LLVMValueRef Fn)
- rocm.bindings.llvm.c.core.LLVMGetLastBasicBlock(Fn)#
Obtain the last basic block in a function.
C signature
LLVMBasicBlockRef LLVMGetLastBasicBlock(LLVMValueRef Fn)
- rocm.bindings.llvm.c.core.LLVMGetNextBasicBlock(BB)#
Advance a basic block iterator.
C signature
LLVMBasicBlockRef LLVMGetNextBasicBlock(LLVMBasicBlockRef BB)
- rocm.bindings.llvm.c.core.LLVMGetPreviousBasicBlock(BB)#
Go backwards in a basic block iterator.
C signature
LLVMBasicBlockRef LLVMGetPreviousBasicBlock(LLVMBasicBlockRef BB)
- rocm.bindings.llvm.c.core.LLVMGetEntryBasicBlock(Fn)#
Obtain the basic block that corresponds to the entry point of a function.
- See:
llvm::Function::getEntryBlock()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMBasicBlockRef LLVMGetEntryBasicBlock(LLVMValueRef Fn)
- rocm.bindings.llvm.c.core.LLVMInsertExistingBasicBlockAfterInsertBlock(Builder, BB)#
Insert the given basic block after the insertion point of the given builder.
The insertion point must be valid.
- See:
llvm::Function::BasicBlockListType::insertAfter()
- Args:
C signature
void LLVMInsertExistingBasicBlockAfterInsertBlock(LLVMBuilderRef Builder, LLVMBasicBlockRef BB)
- rocm.bindings.llvm.c.core.LLVMAppendExistingBasicBlock(Fn, BB)#
Append the given basic block to the basic block list of the given function.
- See:
llvm::Function::BasicBlockListType::push_back()
- Args:
C signature
void LLVMAppendExistingBasicBlock(LLVMValueRef Fn, LLVMBasicBlockRef BB)
- rocm.bindings.llvm.c.core.LLVMCreateBasicBlockInContext(C, Name)#
Create a new basic block without inserting it into a function.
- See:
llvm::BasicBlock::Create()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMBasicBlockRef LLVMCreateBasicBlockInContext(LLVMContextRef C, const char * Name)
- rocm.bindings.llvm.c.core.LLVMAppendBasicBlockInContext(C, Fn, Name)#
Append a basic block to the end of a function.
- See:
llvm::BasicBlock::Create()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMBasicBlockRef LLVMAppendBasicBlockInContext(LLVMContextRef C, LLVMValueRef Fn, const char * Name)
- rocm.bindings.llvm.c.core.LLVMAppendBasicBlock(Fn, Name)#
Append a basic block to the end of a function using the global context.
- See:
llvm::BasicBlock::Create()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMBasicBlockRef LLVMAppendBasicBlock(LLVMValueRef Fn, const char * Name)
- rocm.bindings.llvm.c.core.LLVMInsertBasicBlockInContext(C, BB, Name)#
Insert a basic block in a function before another basic block.
The function to add to is determined by the function of the passed basic block.
- See:
llvm::BasicBlock::Create()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMBasicBlockRef LLVMInsertBasicBlockInContext(LLVMContextRef C, LLVMBasicBlockRef BB, const char * Name)
- rocm.bindings.llvm.c.core.LLVMInsertBasicBlock(InsertBeforeBB, Name)#
Insert a basic block in a function using the global context.
- See:
llvm::BasicBlock::Create()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMBasicBlockRef LLVMInsertBasicBlock(LLVMBasicBlockRef InsertBeforeBB, const char * Name)
- rocm.bindings.llvm.c.core.LLVMDeleteBasicBlock(BB)#
Remove a basic block from a function and delete it.
This deletes the basic block from its containing function and deletes the basic block itself.
C signature
void LLVMDeleteBasicBlock(LLVMBasicBlockRef BB)
- rocm.bindings.llvm.c.core.LLVMRemoveBasicBlockFromParent(BB)#
Remove a basic block from a function.
This deletes the basic block from its containing function but keep the basic block alive.
C signature
void LLVMRemoveBasicBlockFromParent(LLVMBasicBlockRef BB)
- rocm.bindings.llvm.c.core.LLVMMoveBasicBlockBefore(BB, MovePos)#
Move a basic block to before another one.
- See:
llvm::BasicBlock::moveBefore()
- Args:
C signature
void LLVMMoveBasicBlockBefore(LLVMBasicBlockRef BB, LLVMBasicBlockRef MovePos)
- rocm.bindings.llvm.c.core.LLVMMoveBasicBlockAfter(BB, MovePos)#
Move a basic block to after another one.
- See:
llvm::BasicBlock::moveAfter()
- Args:
C signature
void LLVMMoveBasicBlockAfter(LLVMBasicBlockRef BB, LLVMBasicBlockRef MovePos)
- rocm.bindings.llvm.c.core.LLVMGetFirstInstruction(BB)#
Obtain the first instruction in a basic block.
The returned LLVMValueRef corresponds to a llvm::Instruction instance.
C signature
LLVMValueRef LLVMGetFirstInstruction(LLVMBasicBlockRef BB)
- rocm.bindings.llvm.c.core.LLVMGetLastInstruction(BB)#
Obtain the last instruction in a basic block.
The returned LLVMValueRef corresponds to an LLVM:Instruction.
C signature
LLVMValueRef LLVMGetLastInstruction(LLVMBasicBlockRef BB)
- rocm.bindings.llvm.c.core.LLVMHasMetadata(Val)#
Determine whether an instruction has any metadata attached.
C signature
int LLVMHasMetadata(LLVMValueRef Val)
- rocm.bindings.llvm.c.core.LLVMGetMetadata(Val, KindID)#
Return metadata associated with an instruction value.
C signature
LLVMValueRef LLVMGetMetadata(LLVMValueRef Val, unsigned int KindID)
- rocm.bindings.llvm.c.core.LLVMSetMetadata(Val, KindID, Node)#
Set metadata associated with an instruction value.
- Args:
C signature
void LLVMSetMetadata(LLVMValueRef Val, unsigned int KindID, LLVMValueRef Node)
- rocm.bindings.llvm.c.core.LLVMInstructionGetAllMetadataOtherThanDebugLoc(Instr, NumEntries)#
Returns the metadata associated with an instruction value, but filters out all the debug locations.
- See:
llvm::Instruction::getAllMetadataOtherThanDebugLoc()
- Args:
- Instr (
Pointer/object): (undocumented)
- NumEntries (
PointerToUInt64/object): (undocumented)
- Instr (
- Returns:
None: (undocumented)
C signature
LLVMValueMetadataEntry * LLVMInstructionGetAllMetadataOtherThanDebugLoc(LLVMValueRef Instr, size_t * NumEntries)
- rocm.bindings.llvm.c.core.LLVMGetInstructionParent(Inst)#
Obtain the basic block to which an instruction belongs.
- See:
llvm::Instruction::getParent()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMBasicBlockRef LLVMGetInstructionParent(LLVMValueRef Inst)
- rocm.bindings.llvm.c.core.LLVMGetNextInstruction(Inst)#
Obtain the instruction that occurs after the one specified.
The next instruction will be from the same basic block.
If this is the last instruction in a basic block, NULL will be returned.
C signature
LLVMValueRef LLVMGetNextInstruction(LLVMValueRef Inst)
- rocm.bindings.llvm.c.core.LLVMGetPreviousInstruction(Inst)#
Obtain the instruction that occurred before this one.
If the instruction is the first instruction in a basic block, NULL will be returned.
C signature
LLVMValueRef LLVMGetPreviousInstruction(LLVMValueRef Inst)
- rocm.bindings.llvm.c.core.LLVMInstructionRemoveFromParent(Inst)#
Remove an instruction.
The instruction specified is removed from its containing building block but is kept alive.
C signature
void LLVMInstructionRemoveFromParent(LLVMValueRef Inst)
- rocm.bindings.llvm.c.core.LLVMInstructionEraseFromParent(Inst)#
Remove and delete an instruction.
The instruction specified is removed from its containing building block and then deleted.
C signature
void LLVMInstructionEraseFromParent(LLVMValueRef Inst)
- rocm.bindings.llvm.c.core.LLVMDeleteInstruction(Inst)#
Delete an instruction.
The instruction specified is deleted. It must have previously been removed from its containing building block.
C signature
void LLVMDeleteInstruction(LLVMValueRef Inst)
- rocm.bindings.llvm.c.core.LLVMGetInstructionOpcode(Inst)#
Obtain the code opcode for an individual instruction.
- See:
llvm::Instruction::getOpCode()
- Args:
- Returns:
LLVMOpcode: (undocumented)
C signature
LLVMOpcode LLVMGetInstructionOpcode(LLVMValueRef Inst)
- rocm.bindings.llvm.c.core.LLVMGetICmpPredicate(Inst)#
Obtain the predicate of an instruction.
This is only valid for instructions that correspond to llvm::ICmpInst.
- See:
llvm::ICmpInst::getPredicate()
- Args:
- Returns:
LLVMIntPredicate: (undocumented)
C signature
LLVMIntPredicate LLVMGetICmpPredicate(LLVMValueRef Inst)
- rocm.bindings.llvm.c.core.LLVMGetICmpSameSign(Inst)#
Get whether or not an icmp instruction has the samesign flag.
This is only valid for instructions that correspond to llvm::ICmpInst.
- See:
llvm::ICmpInst::hasSameSign()
- Args:
- Returns:
int: (undocumented)
C signature
LLVMBool LLVMGetICmpSameSign(LLVMValueRef Inst)
- rocm.bindings.llvm.c.core.LLVMSetICmpSameSign(Inst, SameSign)#
Set the samesign flag on an icmp instruction.
This is only valid for instructions that correspond to llvm::ICmpInst.
- See:
llvm::ICmpInst::setSameSign()
- Args:
C signature
void LLVMSetICmpSameSign(LLVMValueRef Inst, LLVMBool SameSign)
- rocm.bindings.llvm.c.core.LLVMGetFCmpPredicate(Inst)#
Obtain the float predicate of an instruction.
This is only valid for instructions that correspond to llvm::FCmpInst.
- See:
llvm::FCmpInst::getPredicate()
- Args:
- Returns:
LLVMRealPredicate: (undocumented)
C signature
LLVMRealPredicate LLVMGetFCmpPredicate(LLVMValueRef Inst)
- rocm.bindings.llvm.c.core.LLVMInstructionClone(Inst)#
Create a copy of ‘this’ instruction that is identical in all ways except the following: * The instruction has no parent * The instruction has no name
Create a copy of ‘this’ instruction that is identical in all ways except the following:
The instruction has no parent
The instruction has no name
- See:
llvm::Instruction::clone()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMInstructionClone(LLVMValueRef Inst)
- rocm.bindings.llvm.c.core.LLVMIsATerminatorInst(Inst)#
Determine whether an instruction is a terminator.
This routine is named to be compatible with historical functions that did this by querying the underlying C++ type.
- See:
llvm::Instruction::isTerminator()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMIsATerminatorInst(LLVMValueRef Inst)
- rocm.bindings.llvm.c.core.LLVMGetFirstDbgRecord(Inst)#
Obtain the first debug record attached to an instruction.
Use LLVMGetNextDbgRecord() and LLVMGetPreviousDbgRecord() to traverse the sequence of DbgRecords.
Return the first DbgRecord attached to Inst or NULL if there are none.
- See:
llvm::Instruction::getDbgRecordRange()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMDbgRecordRef LLVMGetFirstDbgRecord(LLVMValueRef Inst)
- rocm.bindings.llvm.c.core.LLVMGetLastDbgRecord(Inst)#
Obtain the last debug record attached to an instruction.
Return the last DbgRecord attached to Inst or NULL if there are none.
- See:
llvm::Instruction::getDbgRecordRange()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMDbgRecordRef LLVMGetLastDbgRecord(LLVMValueRef Inst)
- rocm.bindings.llvm.c.core.LLVMGetNextDbgRecord(DbgRecord)#
Obtain the next DbgRecord in the sequence or NULL if there are no more.
- See:
llvm::Instruction::getDbgRecordRange()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMDbgRecordRef LLVMGetNextDbgRecord(LLVMDbgRecordRef DbgRecord)
- rocm.bindings.llvm.c.core.LLVMGetPreviousDbgRecord(DbgRecord)#
Obtain the previous DbgRecord in the sequence or NULL if there are no more.
- See:
llvm::Instruction::getDbgRecordRange()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMDbgRecordRef LLVMGetPreviousDbgRecord(LLVMDbgRecordRef DbgRecord)
- rocm.bindings.llvm.c.core.LLVMDbgRecordGetDebugLoc(Rec)#
Get the debug location attached to the debug record.
- See:
llvm::DbgRecord::getDebugLoc()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMMetadataRef LLVMDbgRecordGetDebugLoc(LLVMDbgRecordRef Rec)
- rocm.bindings.llvm.c.core.LLVMDbgRecordGetKind(Rec)#
Get the debug location attached to the debug record.
- See:
llvm::DbgRecord::getDebugLoc()
- Args:
- Returns:
LLVMDbgRecordKind: (undocumented)
C signature
LLVMDbgRecordKind LLVMDbgRecordGetKind(LLVMDbgRecordRef Rec)
- rocm.bindings.llvm.c.core.LLVMDbgVariableRecordGetValue(Rec, OpIdx)#
Get the value of the DbgVariableRecord.
- See:
llvm::DbgVariableRecord::getValue()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMDbgVariableRecordGetValue(LLVMDbgRecordRef Rec, unsigned int OpIdx)
- rocm.bindings.llvm.c.core.LLVMDbgVariableRecordGetVariable(Rec)#
Get the debug info variable of the DbgVariableRecord.
- See:
llvm::DbgVariableRecord::getVariable()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMMetadataRef LLVMDbgVariableRecordGetVariable(LLVMDbgRecordRef Rec)
- rocm.bindings.llvm.c.core.LLVMDbgVariableRecordGetExpression(Rec)#
Get the debug info expression of the DbgVariableRecord.
- See:
llvm::DbgVariableRecord::getExpression()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMMetadataRef LLVMDbgVariableRecordGetExpression(LLVMDbgRecordRef Rec)
- rocm.bindings.llvm.c.core.LLVMGetNumArgOperands(Instr)#
Obtain the argument count for a call instruction.
This expects an LLVMValueRef that corresponds to a llvm::CallInst, llvm::InvokeInst, or llvm:FuncletPadInst.
- See:
llvm::CallInst::getNumArgOperands()
- See:
llvm::InvokeInst::getNumArgOperands()
- See:
llvm::FuncletPadInst::getNumArgOperands()
- Args:
- Returns:
int: (undocumented)
C signature
unsigned int LLVMGetNumArgOperands(LLVMValueRef Instr)
- rocm.bindings.llvm.c.core.LLVMSetInstructionCallConv(Instr, CC)#
Set the calling convention for a call instruction.
This expects an LLVMValueRef that corresponds to a llvm::CallInst or llvm::InvokeInst.
- See:
llvm::CallInst::setCallingConv()
- See:
llvm::InvokeInst::setCallingConv()
- Args:
C signature
void LLVMSetInstructionCallConv(LLVMValueRef Instr, unsigned int CC)
- rocm.bindings.llvm.c.core.LLVMGetInstructionCallConv(Instr)#
Obtain the calling convention for a call instruction.
This is the opposite of LLVMSetInstructionCallConv(). Reads its usage.
- See:
- Args:
- Returns:
int: (undocumented)
C signature
unsigned int LLVMGetInstructionCallConv(LLVMValueRef Instr)
- rocm.bindings.llvm.c.core.LLVMSetInstrParamAlignment(Instr, Idx, Align)#
Obtain the calling convention for a call instruction.
This is the opposite of LLVMSetInstructionCallConv(). Reads its usage.
- See:
- Args:
C signature
void LLVMSetInstrParamAlignment(LLVMValueRef Instr, LLVMAttributeIndex Idx, unsigned int Align)
- rocm.bindings.llvm.c.core.LLVMAddCallSiteAttribute(C, Idx, A)#
Obtain the calling convention for a call instruction.
This is the opposite of LLVMSetInstructionCallConv(). Reads its usage.
- See:
- Args:
C signature
void LLVMAddCallSiteAttribute(LLVMValueRef C, LLVMAttributeIndex Idx, LLVMAttributeRef A)
- rocm.bindings.llvm.c.core.LLVMGetCallSiteAttributeCount(C, Idx)#
Obtain the calling convention for a call instruction.
This is the opposite of LLVMSetInstructionCallConv(). Reads its usage.
- See:
- Args:
- Returns:
int: (undocumented)
C signature
unsigned int LLVMGetCallSiteAttributeCount(LLVMValueRef C, LLVMAttributeIndex Idx)
- rocm.bindings.llvm.c.core.LLVMGetCallSiteAttributes(C, Idx, Attrs)#
Obtain the calling convention for a call instruction.
This is the opposite of LLVMSetInstructionCallConv(). Reads its usage.
- See:
- Args:
C signature
void LLVMGetCallSiteAttributes(LLVMValueRef C, LLVMAttributeIndex Idx, LLVMAttributeRef * Attrs)
- rocm.bindings.llvm.c.core.LLVMGetCallSiteEnumAttribute(C, Idx, KindID)#
Obtain the calling convention for a call instruction.
This is the opposite of LLVMSetInstructionCallConv(). Reads its usage.
- See:
- Args:
- Returns:
None: (undocumented)
C signature
LLVMAttributeRef LLVMGetCallSiteEnumAttribute(LLVMValueRef C, LLVMAttributeIndex Idx, unsigned int KindID)
- rocm.bindings.llvm.c.core.LLVMGetCallSiteStringAttribute(C, Idx, K, KLen)#
Obtain the calling convention for a call instruction.
This is the opposite of LLVMSetInstructionCallConv(). Reads its usage.
- See:
- Args:
- Returns:
None: (undocumented)
C signature
LLVMAttributeRef LLVMGetCallSiteStringAttribute(LLVMValueRef C, LLVMAttributeIndex Idx, const char * K, unsigned int KLen)
- rocm.bindings.llvm.c.core.LLVMRemoveCallSiteEnumAttribute(C, Idx, KindID)#
Obtain the calling convention for a call instruction.
This is the opposite of LLVMSetInstructionCallConv(). Reads its usage.
- See:
- Args:
C signature
void LLVMRemoveCallSiteEnumAttribute(LLVMValueRef C, LLVMAttributeIndex Idx, unsigned int KindID)
- rocm.bindings.llvm.c.core.LLVMRemoveCallSiteStringAttribute(C, Idx, K, KLen)#
Obtain the calling convention for a call instruction.
This is the opposite of LLVMSetInstructionCallConv(). Reads its usage.
- See:
- Args:
C signature
void LLVMRemoveCallSiteStringAttribute(LLVMValueRef C, LLVMAttributeIndex Idx, const char * K, unsigned int KLen)
- rocm.bindings.llvm.c.core.LLVMGetCalledFunctionType(C)#
Obtain the function type called by this instruction.
- See:
llvm::CallBase::getFunctionType()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMTypeRef LLVMGetCalledFunctionType(LLVMValueRef C)
- rocm.bindings.llvm.c.core.LLVMGetCalledValue(Instr)#
Obtain the pointer to the function invoked by this instruction.
This expects an LLVMValueRef that corresponds to a llvm::CallInst or llvm::InvokeInst.
- See:
llvm::CallInst::getCalledOperand()
- See:
llvm::InvokeInst::getCalledOperand()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMGetCalledValue(LLVMValueRef Instr)
- rocm.bindings.llvm.c.core.LLVMGetNumOperandBundles(C)#
Obtain the number of operand bundles attached to this instruction.
This only works on llvm::CallInst and llvm::InvokeInst instructions.
- See:
llvm::CallBase::getNumOperandBundles()
- Args:
- Returns:
int: (undocumented)
C signature
unsigned int LLVMGetNumOperandBundles(LLVMValueRef C)
- rocm.bindings.llvm.c.core.LLVMGetOperandBundleAtIndex(C, Index)#
Obtain the operand bundle attached to this instruction at the given index.
Use LLVMDisposeOperandBundle to free the operand bundle.
This only works on llvm::CallInst and llvm::InvokeInst instructions.
C signature
LLVMOperandBundleRef LLVMGetOperandBundleAtIndex(LLVMValueRef C, unsigned int Index)
- rocm.bindings.llvm.c.core.LLVMIsTailCall(CallInst)#
Obtain whether a call instruction is a tail call.
This only works on llvm::CallInst instructions.
- See:
llvm::CallInst::isTailCall()
- Args:
- Returns:
int: (undocumented)
C signature
LLVMBool LLVMIsTailCall(LLVMValueRef CallInst)
- rocm.bindings.llvm.c.core.LLVMSetTailCall(CallInst, IsTailCall)#
Set whether a call instruction is a tail call.
This only works on llvm::CallInst instructions.
- See:
llvm::CallInst::setTailCall()
- Args:
C signature
void LLVMSetTailCall(LLVMValueRef CallInst, LLVMBool IsTailCall)
- rocm.bindings.llvm.c.core.LLVMGetTailCallKind(CallInst)#
Obtain a tail call kind of the call instruction.
- See:
llvm::CallInst::setTailCallKind()
- Args:
- Returns:
LLVMTailCallKind: (undocumented)
C signature
LLVMTailCallKind LLVMGetTailCallKind(LLVMValueRef CallInst)
- rocm.bindings.llvm.c.core.LLVMSetTailCallKind(CallInst, kind)#
Set the call kind of the call instruction.
- See:
llvm::CallInst::getTailCallKind()
- Args:
- CallInst (
Pointer/object): (undocumented)
- kind (
LLVMTailCallKind): (undocumented)
- CallInst (
C signature
void LLVMSetTailCallKind(LLVMValueRef CallInst, LLVMTailCallKind kind)
- rocm.bindings.llvm.c.core.LLVMGetNormalDest(InvokeInst)#
Return the normal destination basic block.
This only works on llvm::InvokeInst instructions.
- See:
llvm::InvokeInst::getNormalDest()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMBasicBlockRef LLVMGetNormalDest(LLVMValueRef InvokeInst)
- rocm.bindings.llvm.c.core.LLVMGetUnwindDest(InvokeInst)#
Return the unwind destination basic block.
Works on llvm::InvokeInst, llvm::CleanupReturnInst, and llvm::CatchSwitchInst instructions.
- See:
llvm::InvokeInst::getUnwindDest()
- See:
llvm::CleanupReturnInst::getUnwindDest()
- See:
llvm::CatchSwitchInst::getUnwindDest()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMBasicBlockRef LLVMGetUnwindDest(LLVMValueRef InvokeInst)
- rocm.bindings.llvm.c.core.LLVMSetNormalDest(InvokeInst, B)#
Set the normal destination basic block.
This only works on llvm::InvokeInst instructions.
- See:
llvm::InvokeInst::setNormalDest()
- Args:
C signature
void LLVMSetNormalDest(LLVMValueRef InvokeInst, LLVMBasicBlockRef B)
- rocm.bindings.llvm.c.core.LLVMSetUnwindDest(InvokeInst, B)#
Set the unwind destination basic block.
Works on llvm::InvokeInst, llvm::CleanupReturnInst, and llvm::CatchSwitchInst instructions.
- See:
llvm::InvokeInst::setUnwindDest()
- See:
llvm::CleanupReturnInst::setUnwindDest()
- See:
llvm::CatchSwitchInst::setUnwindDest()
- Args:
C signature
void LLVMSetUnwindDest(LLVMValueRef InvokeInst, LLVMBasicBlockRef B)
- rocm.bindings.llvm.c.core.LLVMGetCallBrDefaultDest(CallBr)#
Get the default destination of a CallBr instruction.
- See:
llvm::CallBrInst::getDefaultDest()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMBasicBlockRef LLVMGetCallBrDefaultDest(LLVMValueRef CallBr)
- rocm.bindings.llvm.c.core.LLVMGetCallBrNumIndirectDests(CallBr)#
Get the number of indirect destinations of a CallBr instruction.
- See:
llvm::CallBrInst::getNumIndirectDests()
- Args:
- Returns:
int: (undocumented)
C signature
unsigned int LLVMGetCallBrNumIndirectDests(LLVMValueRef CallBr)
- rocm.bindings.llvm.c.core.LLVMGetCallBrIndirectDest(CallBr, Idx)#
Get the indirect destination of a CallBr instruction at the given index.
- See:
llvm::CallBrInst::getIndirectDest()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMBasicBlockRef LLVMGetCallBrIndirectDest(LLVMValueRef CallBr, unsigned int Idx)
- rocm.bindings.llvm.c.core.LLVMGetNumSuccessors(Term)#
Return the number of successors that this terminator has.
- See:
llvm::Instruction::getNumSuccessors
- Args:
- Returns:
int: (undocumented)
C signature
unsigned int LLVMGetNumSuccessors(LLVMValueRef Term)
- rocm.bindings.llvm.c.core.LLVMGetSuccessor(Term, i)#
Return the specified successor.
- See:
llvm::Instruction::getSuccessor
- Args:
- Returns:
None: (undocumented)
C signature
LLVMBasicBlockRef LLVMGetSuccessor(LLVMValueRef Term, unsigned int i)
- rocm.bindings.llvm.c.core.LLVMSetSuccessor(Term, i, block)#
Update the specified successor to point at the provided block.
- See:
llvm::Instruction::setSuccessor
- Args:
C signature
void LLVMSetSuccessor(LLVMValueRef Term, unsigned int i, LLVMBasicBlockRef block)
- rocm.bindings.llvm.c.core.LLVMIsConditional(Branch)#
Return if an instruction is a conditional branch.
Deprecated: Use LLVMIsACondBrInst instead.
C signature
LLVMBool LLVMIsConditional(LLVMValueRef Branch)
- rocm.bindings.llvm.c.core.LLVMGetCondition(Branch)#
Return the condition of a branch instruction.
This only works on llvm::CondBrInst instructions.
- See:
llvm::CondBrInst::getCondition
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMGetCondition(LLVMValueRef Branch)
- rocm.bindings.llvm.c.core.LLVMSetCondition(Branch, Cond)#
Set the condition of a branch instruction.
This only works on llvm::CondBrInst instructions.
- See:
llvm::CondBrInst::setCondition
- Args:
C signature
void LLVMSetCondition(LLVMValueRef Branch, LLVMValueRef Cond)
- rocm.bindings.llvm.c.core.LLVMGetSwitchDefaultDest(SwitchInstr)#
Obtain the default destination basic block of a switch instruction.
This only works on llvm::SwitchInst instructions.
- See:
llvm::SwitchInst::getDefaultDest()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMBasicBlockRef LLVMGetSwitchDefaultDest(LLVMValueRef SwitchInstr)
- rocm.bindings.llvm.c.core.LLVMGetSwitchCaseValue(SwitchInstr, i)#
Obtain the case value for a successor of a switch instruction.
i corresponds to the successor index. The first successor is the default destination, so i must be greater than zero.
This only works on llvm::SwitchInst instructions.
- See:
llvm::SwitchInst::CaseHandle::getCaseValue()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMGetSwitchCaseValue(LLVMValueRef SwitchInstr, unsigned int i)
- rocm.bindings.llvm.c.core.LLVMSetSwitchCaseValue(SwitchInstr, i, CaseValue)#
Set the case value for a successor of a switch instruction.
i corresponds to the successor index. The first successor is the default destination, so i must be greater than zero.
This only works on llvm::SwitchInst instructions.
- See:
llvm::SwitchInst::CaseHandle::setValue()
- Args:
C signature
void LLVMSetSwitchCaseValue(LLVMValueRef SwitchInstr, unsigned int i, LLVMValueRef CaseValue)
- rocm.bindings.llvm.c.core.LLVMGetAllocatedType(Alloca)#
Obtain the type that is being allocated by the alloca instruction.
C signature
LLVMTypeRef LLVMGetAllocatedType(LLVMValueRef Alloca)
- rocm.bindings.llvm.c.core.LLVMIsInBounds(GEP)#
Check whether the given GEP operator is inbounds.
C signature
LLVMBool LLVMIsInBounds(LLVMValueRef GEP)
- rocm.bindings.llvm.c.core.LLVMSetIsInBounds(GEP, InBounds)#
Set the given GEP instruction to be inbounds or not.
C signature
void LLVMSetIsInBounds(LLVMValueRef GEP, LLVMBool InBounds)
- rocm.bindings.llvm.c.core.LLVMGetGEPSourceElementType(GEP)#
Get the source element type of the given GEP operator.
C signature
LLVMTypeRef LLVMGetGEPSourceElementType(LLVMValueRef GEP)
- rocm.bindings.llvm.c.core.LLVMGEPGetNoWrapFlags(GEP)#
Get the no-wrap related flags for the given GEP instruction.
- See:
llvm::GetElementPtrInst::getNoWrapFlags
- Args:
- Returns:
int: (undocumented)
C signature
LLVMGEPNoWrapFlags LLVMGEPGetNoWrapFlags(LLVMValueRef GEP)
- rocm.bindings.llvm.c.core.LLVMGEPSetNoWrapFlags(GEP, NoWrapFlags)#
Set the no-wrap related flags for the given GEP instruction.
- See:
llvm::GetElementPtrInst::setNoWrapFlags
- Args:
C signature
void LLVMGEPSetNoWrapFlags(LLVMValueRef GEP, LLVMGEPNoWrapFlags NoWrapFlags)
- rocm.bindings.llvm.c.core.LLVMAddIncoming(PhiNode, IncomingValues, IncomingBlocks, Count)#
Add an incoming value to the end of a PHI list.
- Args:
C signature
void LLVMAddIncoming(LLVMValueRef PhiNode, LLVMValueRef * IncomingValues, LLVMBasicBlockRef * IncomingBlocks, unsigned int Count)
- rocm.bindings.llvm.c.core.LLVMCountIncoming(PhiNode)#
Obtain the number of incoming basic blocks to a PHI node.
C signature
unsigned int LLVMCountIncoming(LLVMValueRef PhiNode)
- rocm.bindings.llvm.c.core.LLVMGetIncomingValue(PhiNode, Index)#
Obtain an incoming value to a PHI node as an LLVMValueRef.
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMGetIncomingValue(LLVMValueRef PhiNode, unsigned int Index)
- rocm.bindings.llvm.c.core.LLVMGetIncomingBlock(PhiNode, Index)#
Obtain an incoming value to a PHI node as an LLVMBasicBlockRef.
- Args:
- Returns:
None: (undocumented)
C signature
LLVMBasicBlockRef LLVMGetIncomingBlock(LLVMValueRef PhiNode, unsigned int Index)
- rocm.bindings.llvm.c.core.LLVMGetNumIndices(Inst)#
Obtain the number of indices.
NB: This also works on GEP operators.
C signature
unsigned int LLVMGetNumIndices(LLVMValueRef Inst)
- rocm.bindings.llvm.c.core.LLVMGetIndices(Inst)#
Obtain the indices as an array.
C signature
const unsigned int * LLVMGetIndices(LLVMValueRef Inst)
- rocm.bindings.llvm.c.core.LLVMCreateBuilderInContext(C)#
An instruction builder represents a point within a basic block and is the exclusive means of building instructions using the C interface.
C signature
LLVMBuilderRef LLVMCreateBuilderInContext(LLVMContextRef C)
- rocm.bindings.llvm.c.core.LLVMCreateBuilder()#
(No short description, might be part of a group.)
- Returns:
None: (undocumented)
C signature
LLVMBuilderRef LLVMCreateBuilder()
- rocm.bindings.llvm.c.core.LLVMPositionBuilder(Builder, Block, Instr)#
Set the builder position before Instr but after any attached debug records, or if Instr is null set the position to the end of Block.
- Args:
C signature
void LLVMPositionBuilder(LLVMBuilderRef Builder, LLVMBasicBlockRef Block, LLVMValueRef Instr)
- rocm.bindings.llvm.c.core.LLVMPositionBuilderBeforeDbgRecords(Builder, Block, Inst)#
Set the builder position before Instr and any attached debug records, or if Instr is null set the position to the end of Block.
- Args:
C signature
void LLVMPositionBuilderBeforeDbgRecords(LLVMBuilderRef Builder, LLVMBasicBlockRef Block, LLVMValueRef Inst)
- rocm.bindings.llvm.c.core.LLVMPositionBuilderBefore(Builder, Instr)#
Set the builder position before Instr but after any attached debug records.
C signature
void LLVMPositionBuilderBefore(LLVMBuilderRef Builder, LLVMValueRef Instr)
- rocm.bindings.llvm.c.core.LLVMPositionBuilderBeforeInstrAndDbgRecords(Builder, Instr)#
Set the builder position before Instr and any attached debug records.
C signature
void LLVMPositionBuilderBeforeInstrAndDbgRecords(LLVMBuilderRef Builder, LLVMValueRef Instr)
- rocm.bindings.llvm.c.core.LLVMPositionBuilderAtEnd(Builder, Block)#
Set the builder position before Instr and any attached debug records.
C signature
void LLVMPositionBuilderAtEnd(LLVMBuilderRef Builder, LLVMBasicBlockRef Block)
- rocm.bindings.llvm.c.core.LLVMGetInsertBlock(Builder)#
Set the builder position before Instr and any attached debug records.
C signature
LLVMBasicBlockRef LLVMGetInsertBlock(LLVMBuilderRef Builder)
- rocm.bindings.llvm.c.core.LLVMClearInsertionPosition(Builder)#
Set the builder position before Instr and any attached debug records.
C signature
void LLVMClearInsertionPosition(LLVMBuilderRef Builder)
- rocm.bindings.llvm.c.core.LLVMInsertIntoBuilder(Builder, Instr)#
Set the builder position before Instr and any attached debug records.
C signature
void LLVMInsertIntoBuilder(LLVMBuilderRef Builder, LLVMValueRef Instr)
- rocm.bindings.llvm.c.core.LLVMInsertIntoBuilderWithName(Builder, Instr, Name)#
Set the builder position before Instr and any attached debug records.
- Args:
C signature
void LLVMInsertIntoBuilderWithName(LLVMBuilderRef Builder, LLVMValueRef Instr, const char * Name)
- rocm.bindings.llvm.c.core.LLVMDisposeBuilder(Builder)#
Set the builder position before Instr and any attached debug records.
C signature
void LLVMDisposeBuilder(LLVMBuilderRef Builder)
- rocm.bindings.llvm.c.core.LLVMGetCurrentDebugLocation2(Builder)#
Get location information used by debugging information.
- See:
llvm::IRBuilder::getCurrentDebugLocation()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMMetadataRef LLVMGetCurrentDebugLocation2(LLVMBuilderRef Builder)
- rocm.bindings.llvm.c.core.LLVMSetCurrentDebugLocation2(Builder, Loc)#
Set location information used by debugging information.
To clear the location metadata of the given instruction, pass NULL to
Loc.- See:
llvm::IRBuilder::SetCurrentDebugLocation()
- Args:
C signature
void LLVMSetCurrentDebugLocation2(LLVMBuilderRef Builder, LLVMMetadataRef Loc)
- rocm.bindings.llvm.c.core.LLVMSetInstDebugLocation(Builder, Inst)#
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.
- Deprecated:
LLVMSetInstDebugLocation is deprecated in favor of the more general LLVMAddMetadataToInst.
- See:
llvm::IRBuilder::SetInstDebugLocation()
- Args:
C signature
void LLVMSetInstDebugLocation(LLVMBuilderRef Builder, LLVMValueRef Inst)
- rocm.bindings.llvm.c.core.LLVMAddMetadataToInst(Builder, Inst)#
Adds the metadata registered with the given builder to the given instruction.
- See:
llvm::IRBuilder::AddMetadataToInst()
- Args:
C signature
void LLVMAddMetadataToInst(LLVMBuilderRef Builder, LLVMValueRef Inst)
- rocm.bindings.llvm.c.core.LLVMBuilderGetDefaultFPMathTag(Builder)#
Get the dafult floating-point math metadata for a given builder.
- See:
llvm::IRBuilder::getDefaultFPMathTag()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMMetadataRef LLVMBuilderGetDefaultFPMathTag(LLVMBuilderRef Builder)
- rocm.bindings.llvm.c.core.LLVMBuilderSetDefaultFPMathTag(Builder, FPMathTag)#
Set the default floating-point math metadata for the given builder.
To clear the metadata, pass NULL to
FPMathTag.- See:
llvm::IRBuilder::setDefaultFPMathTag()
- Args:
C signature
void LLVMBuilderSetDefaultFPMathTag(LLVMBuilderRef Builder, LLVMMetadataRef FPMathTag)
- rocm.bindings.llvm.c.core.LLVMGetBuilderContext(Builder)#
Obtain the context to which this builder is associated.
- See:
llvm::IRBuilder::getContext()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMContextRef LLVMGetBuilderContext(LLVMBuilderRef Builder)
- rocm.bindings.llvm.c.core.LLVMSetCurrentDebugLocation(Builder, L)#
Deprecated: Passing the NULL location will crash.
Use LLVMGetCurrentDebugLocation2 instead.
C signature
void LLVMSetCurrentDebugLocation(LLVMBuilderRef Builder, LLVMValueRef L)
- rocm.bindings.llvm.c.core.LLVMGetCurrentDebugLocation(Builder)#
Deprecated: Returning the NULL location will crash.
Use LLVMGetCurrentDebugLocation2 instead.
C signature
LLVMValueRef LLVMGetCurrentDebugLocation(LLVMBuilderRef Builder)
- rocm.bindings.llvm.c.core.LLVMBuildRetVoid(arg0)#
Terminators
C signature
LLVMValueRef LLVMBuildRetVoid(LLVMBuilderRef)
- rocm.bindings.llvm.c.core.LLVMBuildRet(arg0, V)#
Terminators
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildRet(LLVMBuilderRef, LLVMValueRef V)
- rocm.bindings.llvm.c.core.LLVMBuildAggregateRet(arg0, RetVals, N)#
Terminators
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildAggregateRet(LLVMBuilderRef, LLVMValueRef * RetVals, unsigned int N)
- rocm.bindings.llvm.c.core.LLVMBuildBr(arg0, Dest)#
Terminators
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildBr(LLVMBuilderRef, LLVMBasicBlockRef Dest)
- rocm.bindings.llvm.c.core.LLVMBuildCondBr(arg0, If, Then, Else)#
Terminators
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildCondBr(LLVMBuilderRef, LLVMValueRef If, LLVMBasicBlockRef Then, LLVMBasicBlockRef Else)
- rocm.bindings.llvm.c.core.LLVMBuildSwitch(arg0, V, Else, NumCases)#
Terminators
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildSwitch(LLVMBuilderRef, LLVMValueRef V, LLVMBasicBlockRef Else, unsigned int NumCases)
- rocm.bindings.llvm.c.core.LLVMBuildIndirectBr(B, Addr, NumDests)#
Terminators
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildIndirectBr(LLVMBuilderRef B, LLVMValueRef Addr, unsigned int NumDests)
- rocm.bindings.llvm.c.core.LLVMBuildCallBr(B, Ty, Fn, DefaultDest, IndirectDests, NumIndirectDests, Args, NumArgs, Bundles, NumBundles, Name)#
Terminators
- Args:
- B (
Pointer/object): (undocumented)
- Ty (
Pointer/object): (undocumented)
- Fn (
Pointer/object): (undocumented)
- DefaultDest (
Pointer/object): (undocumented)
- IndirectDests (
Pointer/object): (undocumented)
- NumIndirectDests (
int): (undocumented)
- Args (
Pointer/object): (undocumented)
- NumArgs (
int): (undocumented)
- Bundles (
Pointer/object): (undocumented)
- NumBundles (
int): (undocumented)
- Name (
CStr/object): (undocumented)
- B (
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildCallBr(LLVMBuilderRef B, LLVMTypeRef Ty, LLVMValueRef Fn, LLVMBasicBlockRef DefaultDest, LLVMBasicBlockRef * IndirectDests, unsigned int NumIndirectDests, LLVMValueRef * Args, unsigned int NumArgs, LLVMOperandBundleRef * Bundles, unsigned int NumBundles, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildInvoke2(arg0, Ty, Fn, Args, NumArgs, Then, Catch, Name)#
Terminators
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildInvoke2(LLVMBuilderRef, LLVMTypeRef Ty, LLVMValueRef Fn, LLVMValueRef * Args, unsigned int NumArgs, LLVMBasicBlockRef Then, LLVMBasicBlockRef Catch, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildInvokeWithOperandBundles(arg0, Ty, Fn, Args, NumArgs, Then, Catch, Bundles, NumBundles, Name)#
Terminators
- Args:
- arg0 (
Pointer/object): (undocumented)
- Ty (
Pointer/object): (undocumented)
- Fn (
Pointer/object): (undocumented)
- Args (
Pointer/object): (undocumented)
- NumArgs (
int): (undocumented)
- Then (
Pointer/object): (undocumented)
- Catch (
Pointer/object): (undocumented)
- Bundles (
Pointer/object): (undocumented)
- NumBundles (
int): (undocumented)
- Name (
CStr/object): (undocumented)
- arg0 (
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildInvokeWithOperandBundles(LLVMBuilderRef, LLVMTypeRef Ty, LLVMValueRef Fn, LLVMValueRef * Args, unsigned int NumArgs, LLVMBasicBlockRef Then, LLVMBasicBlockRef Catch, LLVMOperandBundleRef * Bundles, unsigned int NumBundles, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildUnreachable(arg0)#
Terminators
C signature
LLVMValueRef LLVMBuildUnreachable(LLVMBuilderRef)
- rocm.bindings.llvm.c.core.LLVMBuildResume(B, Exn)#
Exception Handling
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildResume(LLVMBuilderRef B, LLVMValueRef Exn)
- rocm.bindings.llvm.c.core.LLVMBuildLandingPad(B, Ty, PersFn, NumClauses, Name)#
Exception Handling
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildLandingPad(LLVMBuilderRef B, LLVMTypeRef Ty, LLVMValueRef PersFn, unsigned int NumClauses, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildCleanupRet(B, CatchPad, BB)#
Exception Handling
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildCleanupRet(LLVMBuilderRef B, LLVMValueRef CatchPad, LLVMBasicBlockRef BB)
- rocm.bindings.llvm.c.core.LLVMBuildCatchRet(B, CatchPad, BB)#
Exception Handling
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildCatchRet(LLVMBuilderRef B, LLVMValueRef CatchPad, LLVMBasicBlockRef BB)
- rocm.bindings.llvm.c.core.LLVMBuildCatchPad(B, ParentPad, Args, NumArgs, Name)#
Exception Handling
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildCatchPad(LLVMBuilderRef B, LLVMValueRef ParentPad, LLVMValueRef * Args, unsigned int NumArgs, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildCleanupPad(B, ParentPad, Args, NumArgs, Name)#
Exception Handling
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildCleanupPad(LLVMBuilderRef B, LLVMValueRef ParentPad, LLVMValueRef * Args, unsigned int NumArgs, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildCatchSwitch(B, ParentPad, UnwindBB, NumHandlers, Name)#
Exception Handling
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildCatchSwitch(LLVMBuilderRef B, LLVMValueRef ParentPad, LLVMBasicBlockRef UnwindBB, unsigned int NumHandlers, const char * Name)
- rocm.bindings.llvm.c.core.LLVMAddCase(Switch, OnVal, Dest)#
Add a case to the switch instruction
- Args:
C signature
void LLVMAddCase(LLVMValueRef Switch, LLVMValueRef OnVal, LLVMBasicBlockRef Dest)
- rocm.bindings.llvm.c.core.LLVMAddDestination(IndirectBr, Dest)#
Add a destination to the indirectbr instruction
C signature
void LLVMAddDestination(LLVMValueRef IndirectBr, LLVMBasicBlockRef Dest)
- rocm.bindings.llvm.c.core.LLVMGetNumClauses(LandingPad)#
Get the number of clauses on the landingpad instruction
C signature
unsigned int LLVMGetNumClauses(LLVMValueRef LandingPad)
- rocm.bindings.llvm.c.core.LLVMGetClause(LandingPad, Idx)#
Get the value of the clause at index Idx on the landingpad instruction
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMGetClause(LLVMValueRef LandingPad, unsigned int Idx)
- rocm.bindings.llvm.c.core.LLVMAddClause(LandingPad, ClauseVal)#
Add a catch or filter clause to the landingpad instruction
C signature
void LLVMAddClause(LLVMValueRef LandingPad, LLVMValueRef ClauseVal)
- rocm.bindings.llvm.c.core.LLVMIsCleanup(LandingPad)#
Get the ‘cleanup’ flag in the landingpad instruction
C signature
LLVMBool LLVMIsCleanup(LLVMValueRef LandingPad)
- rocm.bindings.llvm.c.core.LLVMSetCleanup(LandingPad, Val)#
Set the ‘cleanup’ flag in the landingpad instruction
C signature
void LLVMSetCleanup(LLVMValueRef LandingPad, LLVMBool Val)
- rocm.bindings.llvm.c.core.LLVMAddHandler(CatchSwitch, Dest)#
Add a destination to the catchswitch instruction
C signature
void LLVMAddHandler(LLVMValueRef CatchSwitch, LLVMBasicBlockRef Dest)
- rocm.bindings.llvm.c.core.LLVMGetNumHandlers(CatchSwitch)#
Get the number of handlers on the catchswitch instruction
C signature
unsigned int LLVMGetNumHandlers(LLVMValueRef CatchSwitch)
- rocm.bindings.llvm.c.core.LLVMGetHandlers(CatchSwitch, Handlers)#
Obtain the basic blocks acting as handlers for a catchswitch instruction.
The Handlers parameter should point to a pre-allocated array of LLVMBasicBlockRefs at least LLVMGetNumHandlers() large. On return, the first LLVMGetNumHandlers() entries in the array will be populated with LLVMBasicBlockRef instances.
- Args:
C signature
void LLVMGetHandlers(LLVMValueRef CatchSwitch, LLVMBasicBlockRef * Handlers)
- rocm.bindings.llvm.c.core.LLVMGetArgOperand(Funclet, i)#
Get the number of funcletpad arguments.
C signature
LLVMValueRef LLVMGetArgOperand(LLVMValueRef Funclet, unsigned int i)
- rocm.bindings.llvm.c.core.LLVMSetArgOperand(Funclet, i, value)#
Set a funcletpad argument at the given index.
- Args:
C signature
void LLVMSetArgOperand(LLVMValueRef Funclet, unsigned int i, LLVMValueRef value)
- rocm.bindings.llvm.c.core.LLVMGetParentCatchSwitch(CatchPad)#
Get the parent catchswitch instruction of a catchpad instruction.
This only works on llvm::CatchPadInst instructions.
- See:
llvm::CatchPadInst::getCatchSwitch()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMGetParentCatchSwitch(LLVMValueRef CatchPad)
- rocm.bindings.llvm.c.core.LLVMSetParentCatchSwitch(CatchPad, CatchSwitch)#
Set the parent catchswitch instruction of a catchpad instruction.
This only works on llvm::CatchPadInst instructions.
- See:
llvm::CatchPadInst::setCatchSwitch()
- Args:
C signature
void LLVMSetParentCatchSwitch(LLVMValueRef CatchPad, LLVMValueRef CatchSwitch)
- rocm.bindings.llvm.c.core.LLVMBuildAdd(arg0, LHS, RHS, Name)#
Arithmetic
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildAdd(LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildNSWAdd(arg0, LHS, RHS, Name)#
Arithmetic
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildNSWAdd(LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildNUWAdd(arg0, LHS, RHS, Name)#
Arithmetic
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildNUWAdd(LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildFAdd(arg0, LHS, RHS, Name)#
Arithmetic
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildFAdd(LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildSub(arg0, LHS, RHS, Name)#
Arithmetic
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildSub(LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildNSWSub(arg0, LHS, RHS, Name)#
Arithmetic
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildNSWSub(LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildNUWSub(arg0, LHS, RHS, Name)#
Arithmetic
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildNUWSub(LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildFSub(arg0, LHS, RHS, Name)#
Arithmetic
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildFSub(LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildMul(arg0, LHS, RHS, Name)#
Arithmetic
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildMul(LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildNSWMul(arg0, LHS, RHS, Name)#
Arithmetic
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildNSWMul(LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildNUWMul(arg0, LHS, RHS, Name)#
Arithmetic
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildNUWMul(LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildFMul(arg0, LHS, RHS, Name)#
Arithmetic
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildFMul(LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildUDiv(arg0, LHS, RHS, Name)#
Arithmetic
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildUDiv(LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildExactUDiv(arg0, LHS, RHS, Name)#
Arithmetic
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildExactUDiv(LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildSDiv(arg0, LHS, RHS, Name)#
Arithmetic
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildSDiv(LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildExactSDiv(arg0, LHS, RHS, Name)#
Arithmetic
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildExactSDiv(LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildFDiv(arg0, LHS, RHS, Name)#
Arithmetic
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildFDiv(LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildURem(arg0, LHS, RHS, Name)#
Arithmetic
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildURem(LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildSRem(arg0, LHS, RHS, Name)#
Arithmetic
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildSRem(LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildFRem(arg0, LHS, RHS, Name)#
Arithmetic
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildFRem(LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildShl(arg0, LHS, RHS, Name)#
Arithmetic
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildShl(LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildLShr(arg0, LHS, RHS, Name)#
Arithmetic
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildLShr(LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildAShr(arg0, LHS, RHS, Name)#
Arithmetic
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildAShr(LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildAnd(arg0, LHS, RHS, Name)#
Arithmetic
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildAnd(LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildOr(arg0, LHS, RHS, Name)#
Arithmetic
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildOr(LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildXor(arg0, LHS, RHS, Name)#
Arithmetic
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildXor(LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildBinOp(B, Op, LHS, RHS, Name)#
Arithmetic
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildBinOp(LLVMBuilderRef B, LLVMOpcode Op, LLVMValueRef LHS, LLVMValueRef RHS, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildNeg(arg0, V, Name)#
Arithmetic
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildNeg(LLVMBuilderRef, LLVMValueRef V, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildNSWNeg(B, V, Name)#
Arithmetic
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildNSWNeg(LLVMBuilderRef B, LLVMValueRef V, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildNUWNeg(B, V, Name)#
(No short description, might be part of a group.)
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildNUWNeg(LLVMBuilderRef B, LLVMValueRef V, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildFNeg(arg0, V, Name)#
Arithmetic
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildFNeg(LLVMBuilderRef, LLVMValueRef V, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildNot(arg0, V, Name)#
Arithmetic
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildNot(LLVMBuilderRef, LLVMValueRef V, const char * Name)
- rocm.bindings.llvm.c.core.LLVMGetNUW(ArithInst)#
Arithmetic
C signature
LLVMBool LLVMGetNUW(LLVMValueRef ArithInst)
- rocm.bindings.llvm.c.core.LLVMSetNUW(ArithInst, HasNUW)#
Arithmetic
C signature
void LLVMSetNUW(LLVMValueRef ArithInst, LLVMBool HasNUW)
- rocm.bindings.llvm.c.core.LLVMGetNSW(ArithInst)#
Arithmetic
C signature
LLVMBool LLVMGetNSW(LLVMValueRef ArithInst)
- rocm.bindings.llvm.c.core.LLVMSetNSW(ArithInst, HasNSW)#
Arithmetic
C signature
void LLVMSetNSW(LLVMValueRef ArithInst, LLVMBool HasNSW)
- rocm.bindings.llvm.c.core.LLVMGetExact(DivOrShrInst)#
Arithmetic
C signature
LLVMBool LLVMGetExact(LLVMValueRef DivOrShrInst)
- rocm.bindings.llvm.c.core.LLVMSetExact(DivOrShrInst, IsExact)#
Arithmetic
C signature
void LLVMSetExact(LLVMValueRef DivOrShrInst, LLVMBool IsExact)
- rocm.bindings.llvm.c.core.LLVMGetNNeg(NonNegInst)#
Gets if the instruction has the non-negative flag set.
Only valid for zext instructions.
C signature
LLVMBool LLVMGetNNeg(LLVMValueRef NonNegInst)
- rocm.bindings.llvm.c.core.LLVMSetNNeg(NonNegInst, IsNonNeg)#
Sets the non-negative flag for the instruction.
Only valid for zext instructions.
C signature
void LLVMSetNNeg(LLVMValueRef NonNegInst, LLVMBool IsNonNeg)
- rocm.bindings.llvm.c.core.LLVMGetFastMathFlags(FPMathInst)#
Get the flags for which fast-math-style optimizations are allowed for this value.
Only valid on floating point instructions.
- See:
- Args:
- Returns:
int: (undocumented)
C signature
LLVMFastMathFlags LLVMGetFastMathFlags(LLVMValueRef FPMathInst)
- rocm.bindings.llvm.c.core.LLVMSetFastMathFlags(FPMathInst, FMF)#
Sets the flags for which fast-math-style optimizations are allowed for this value.
Only valid on floating point instructions.
- See:
- Args:
C signature
void LLVMSetFastMathFlags(LLVMValueRef FPMathInst, LLVMFastMathFlags FMF)
- rocm.bindings.llvm.c.core.LLVMCanValueUseFastMathFlags(Inst)#
Check if a given value can potentially have fast math flags.
Will return true for floating point arithmetic instructions, and for select, phi, and call instructions whose type is a floating point type, or a vector or array thereof. See https://llvm.org/docs/LangRef.html:py:obj:
fast-math-flagsC signature
LLVMBool LLVMCanValueUseFastMathFlags(LLVMValueRef Inst)
- rocm.bindings.llvm.c.core.LLVMGetIsDisjoint(Inst)#
Gets whether the instruction has the disjoint flag set.
Only valid for or instructions.
C signature
LLVMBool LLVMGetIsDisjoint(LLVMValueRef Inst)
- rocm.bindings.llvm.c.core.LLVMSetIsDisjoint(Inst, IsDisjoint)#
Sets the disjoint flag for the instruction.
Only valid for or instructions.
C signature
void LLVMSetIsDisjoint(LLVMValueRef Inst, LLVMBool IsDisjoint)
- rocm.bindings.llvm.c.core.LLVMBuildMalloc(arg0, Ty, Name)#
Memory
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildMalloc(LLVMBuilderRef, LLVMTypeRef Ty, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildArrayMalloc(arg0, Ty, Val, Name)#
Memory
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildArrayMalloc(LLVMBuilderRef, LLVMTypeRef Ty, LLVMValueRef Val, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildMemSet(B, Ptr, Val, Len, Align)#
Creates and inserts a memset to the specified pointer and the specified value.
- See:
llvm::IRRBuilder::CreateMemSet()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildMemSet(LLVMBuilderRef B, LLVMValueRef Ptr, LLVMValueRef Val, LLVMValueRef Len, unsigned int Align)
- rocm.bindings.llvm.c.core.LLVMBuildMemCpy(B, Dst, DstAlign, Src, SrcAlign, Size)#
Creates and inserts a memcpy between the specified pointers.
- See:
llvm::IRRBuilder::CreateMemCpy()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildMemCpy(LLVMBuilderRef B, LLVMValueRef Dst, unsigned int DstAlign, LLVMValueRef Src, unsigned int SrcAlign, LLVMValueRef Size)
- rocm.bindings.llvm.c.core.LLVMBuildMemMove(B, Dst, DstAlign, Src, SrcAlign, Size)#
Creates and inserts a memmove between the specified pointers.
- See:
llvm::IRRBuilder::CreateMemMove()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildMemMove(LLVMBuilderRef B, LLVMValueRef Dst, unsigned int DstAlign, LLVMValueRef Src, unsigned int SrcAlign, LLVMValueRef Size)
- rocm.bindings.llvm.c.core.LLVMBuildAlloca(arg0, Ty, Name)#
Creates and inserts a memmove between the specified pointers.
- See:
llvm::IRRBuilder::CreateMemMove()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildAlloca(LLVMBuilderRef, LLVMTypeRef Ty, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildArrayAlloca(arg0, Ty, Val, Name)#
Creates and inserts a memmove between the specified pointers.
- See:
llvm::IRRBuilder::CreateMemMove()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildArrayAlloca(LLVMBuilderRef, LLVMTypeRef Ty, LLVMValueRef Val, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildFree(arg0, PointerVal)#
Creates and inserts a memmove between the specified pointers.
- See:
llvm::IRRBuilder::CreateMemMove()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildFree(LLVMBuilderRef, LLVMValueRef PointerVal)
- rocm.bindings.llvm.c.core.LLVMBuildLoad2(arg0, Ty, PointerVal, Name)#
Creates and inserts a memmove between the specified pointers.
- See:
llvm::IRRBuilder::CreateMemMove()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildLoad2(LLVMBuilderRef, LLVMTypeRef Ty, LLVMValueRef PointerVal, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildStore(arg0, Val, Ptr)#
Creates and inserts a memmove between the specified pointers.
- See:
llvm::IRRBuilder::CreateMemMove()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildStore(LLVMBuilderRef, LLVMValueRef Val, LLVMValueRef Ptr)
- rocm.bindings.llvm.c.core.LLVMBuildGEP2(B, Ty, Pointer, Indices, NumIndices, Name)#
Creates and inserts a memmove between the specified pointers.
- See:
llvm::IRRBuilder::CreateMemMove()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildGEP2(LLVMBuilderRef B, LLVMTypeRef Ty, LLVMValueRef Pointer, LLVMValueRef * Indices, unsigned int NumIndices, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildInBoundsGEP2(B, Ty, Pointer, Indices, NumIndices, Name)#
Creates and inserts a memmove between the specified pointers.
- See:
llvm::IRRBuilder::CreateMemMove()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildInBoundsGEP2(LLVMBuilderRef B, LLVMTypeRef Ty, LLVMValueRef Pointer, LLVMValueRef * Indices, unsigned int NumIndices, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildGEPWithNoWrapFlags(B, Ty, Pointer, Indices, NumIndices, Name, NoWrapFlags)#
Creates a GetElementPtr instruction.
Similar to LLVMBuildGEP2, but allows specifying the no-wrap flags.
- See:
llvm::IRBuilder::CreateGEP()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildGEPWithNoWrapFlags(LLVMBuilderRef B, LLVMTypeRef Ty, LLVMValueRef Pointer, LLVMValueRef * Indices, unsigned int NumIndices, const char * Name, LLVMGEPNoWrapFlags NoWrapFlags)
- rocm.bindings.llvm.c.core.LLVMBuildStructGEP2(B, Ty, Pointer, Idx, Name)#
Creates a GetElementPtr instruction.
Similar to LLVMBuildGEP2, but allows specifying the no-wrap flags.
- See:
llvm::IRBuilder::CreateGEP()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildStructGEP2(LLVMBuilderRef B, LLVMTypeRef Ty, LLVMValueRef Pointer, unsigned int Idx, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildGlobalString(B, Str, Name)#
Creates a GetElementPtr instruction.
Similar to LLVMBuildGEP2, but allows specifying the no-wrap flags.
- See:
llvm::IRBuilder::CreateGEP()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildGlobalString(LLVMBuilderRef B, const char * Str, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildGlobalStringPtr(B, Str, Name)#
Deprecated: Use LLVMBuildGlobalString instead, which has identical behavior.
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildGlobalStringPtr(LLVMBuilderRef B, const char * Str, const char * Name)
- rocm.bindings.llvm.c.core.LLVMGetVolatile(Inst)#
Deprecated: Use LLVMBuildGlobalString instead, which has identical behavior.
C signature
LLVMBool LLVMGetVolatile(LLVMValueRef Inst)
- rocm.bindings.llvm.c.core.LLVMSetVolatile(MemoryAccessInst, IsVolatile)#
Deprecated: Use LLVMBuildGlobalString instead, which has identical behavior.
C signature
void LLVMSetVolatile(LLVMValueRef MemoryAccessInst, LLVMBool IsVolatile)
- rocm.bindings.llvm.c.core.LLVMGetWeak(CmpXchgInst)#
Deprecated: Use LLVMBuildGlobalString instead, which has identical behavior.
C signature
LLVMBool LLVMGetWeak(LLVMValueRef CmpXchgInst)
- rocm.bindings.llvm.c.core.LLVMSetWeak(CmpXchgInst, IsWeak)#
Deprecated: Use LLVMBuildGlobalString instead, which has identical behavior.
C signature
void LLVMSetWeak(LLVMValueRef CmpXchgInst, LLVMBool IsWeak)
- rocm.bindings.llvm.c.core.LLVMGetOrdering(MemoryAccessInst)#
Deprecated: Use LLVMBuildGlobalString instead, which has identical behavior.
- Args:
- Returns:
LLVMAtomicOrdering: (undocumented)
C signature
LLVMAtomicOrdering LLVMGetOrdering(LLVMValueRef MemoryAccessInst)
- rocm.bindings.llvm.c.core.LLVMSetOrdering(MemoryAccessInst, Ordering)#
Deprecated: Use LLVMBuildGlobalString instead, which has identical behavior.
- Args:
- MemoryAccessInst (
Pointer/object): (undocumented)
- Ordering (
LLVMAtomicOrdering): (undocumented)
- MemoryAccessInst (
C signature
void LLVMSetOrdering(LLVMValueRef MemoryAccessInst, LLVMAtomicOrdering Ordering)
- rocm.bindings.llvm.c.core.LLVMGetAtomicRMWBinOp(AtomicRMWInst)#
Deprecated: Use LLVMBuildGlobalString instead, which has identical behavior.
- Args:
- Returns:
LLVMAtomicRMWBinOp: (undocumented)
C signature
LLVMAtomicRMWBinOp LLVMGetAtomicRMWBinOp(LLVMValueRef AtomicRMWInst)
- rocm.bindings.llvm.c.core.LLVMSetAtomicRMWBinOp(AtomicRMWInst, BinOp)#
Deprecated: Use LLVMBuildGlobalString instead, which has identical behavior.
- Args:
- AtomicRMWInst (
Pointer/object): (undocumented)
- BinOp (
LLVMAtomicRMWBinOp): (undocumented)
- AtomicRMWInst (
C signature
void LLVMSetAtomicRMWBinOp(LLVMValueRef AtomicRMWInst, LLVMAtomicRMWBinOp BinOp)
- rocm.bindings.llvm.c.core.LLVMBuildTrunc(arg0, Val, DestTy, Name)#
Casts
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildTrunc(LLVMBuilderRef, LLVMValueRef Val, LLVMTypeRef DestTy, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildZExt(arg0, Val, DestTy, Name)#
Casts
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildZExt(LLVMBuilderRef, LLVMValueRef Val, LLVMTypeRef DestTy, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildSExt(arg0, Val, DestTy, Name)#
Casts
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildSExt(LLVMBuilderRef, LLVMValueRef Val, LLVMTypeRef DestTy, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildFPToUI(arg0, Val, DestTy, Name)#
Casts
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildFPToUI(LLVMBuilderRef, LLVMValueRef Val, LLVMTypeRef DestTy, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildFPToSI(arg0, Val, DestTy, Name)#
Casts
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildFPToSI(LLVMBuilderRef, LLVMValueRef Val, LLVMTypeRef DestTy, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildUIToFP(arg0, Val, DestTy, Name)#
Casts
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildUIToFP(LLVMBuilderRef, LLVMValueRef Val, LLVMTypeRef DestTy, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildSIToFP(arg0, Val, DestTy, Name)#
Casts
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildSIToFP(LLVMBuilderRef, LLVMValueRef Val, LLVMTypeRef DestTy, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildFPTrunc(arg0, Val, DestTy, Name)#
Casts
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildFPTrunc(LLVMBuilderRef, LLVMValueRef Val, LLVMTypeRef DestTy, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildFPExt(arg0, Val, DestTy, Name)#
Casts
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildFPExt(LLVMBuilderRef, LLVMValueRef Val, LLVMTypeRef DestTy, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildPtrToInt(arg0, Val, DestTy, Name)#
Casts
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildPtrToInt(LLVMBuilderRef, LLVMValueRef Val, LLVMTypeRef DestTy, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildIntToPtr(arg0, Val, DestTy, Name)#
Casts
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildIntToPtr(LLVMBuilderRef, LLVMValueRef Val, LLVMTypeRef DestTy, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildBitCast(arg0, Val, DestTy, Name)#
Casts
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildBitCast(LLVMBuilderRef, LLVMValueRef Val, LLVMTypeRef DestTy, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildAddrSpaceCast(arg0, Val, DestTy, Name)#
Casts
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildAddrSpaceCast(LLVMBuilderRef, LLVMValueRef Val, LLVMTypeRef DestTy, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildZExtOrBitCast(arg0, Val, DestTy, Name)#
Casts
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildZExtOrBitCast(LLVMBuilderRef, LLVMValueRef Val, LLVMTypeRef DestTy, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildSExtOrBitCast(arg0, Val, DestTy, Name)#
Casts
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildSExtOrBitCast(LLVMBuilderRef, LLVMValueRef Val, LLVMTypeRef DestTy, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildTruncOrBitCast(arg0, Val, DestTy, Name)#
Casts
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildTruncOrBitCast(LLVMBuilderRef, LLVMValueRef Val, LLVMTypeRef DestTy, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildCast(B, Op, Val, DestTy, Name)#
Casts
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildCast(LLVMBuilderRef B, LLVMOpcode Op, LLVMValueRef Val, LLVMTypeRef DestTy, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildPointerCast(arg0, Val, DestTy, Name)#
Casts
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildPointerCast(LLVMBuilderRef, LLVMValueRef Val, LLVMTypeRef DestTy, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildIntCast2(arg0, Val, DestTy, IsSigned, Name)#
Casts
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildIntCast2(LLVMBuilderRef, LLVMValueRef Val, LLVMTypeRef DestTy, LLVMBool IsSigned, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildFPCast(arg0, Val, DestTy, Name)#
Casts
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildFPCast(LLVMBuilderRef, LLVMValueRef Val, LLVMTypeRef DestTy, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildIntCast(arg0, Val, DestTy, Name)#
Deprecated: This cast is always signed. Use LLVMBuildIntCast2 instead.
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildIntCast(LLVMBuilderRef, LLVMValueRef Val, LLVMTypeRef DestTy, const char * Name)
- rocm.bindings.llvm.c.core.LLVMGetCastOpcode(Src, SrcIsSigned, DestTy, DestIsSigned)#
Signed cast!
- Args:
- Returns:
LLVMOpcode: (undocumented)
C signature
LLVMOpcode LLVMGetCastOpcode(LLVMValueRef Src, LLVMBool SrcIsSigned, LLVMTypeRef DestTy, LLVMBool DestIsSigned)
- rocm.bindings.llvm.c.core.LLVMBuildICmp(arg0, Op, LHS, RHS, Name)#
Comparisons
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildICmp(LLVMBuilderRef, LLVMIntPredicate Op, LLVMValueRef LHS, LLVMValueRef RHS, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildFCmp(arg0, Op, LHS, RHS, Name)#
Comparisons
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildFCmp(LLVMBuilderRef, LLVMRealPredicate Op, LLVMValueRef LHS, LLVMValueRef RHS, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildPhi(arg0, Ty, Name)#
Miscellaneous instructions
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildPhi(LLVMBuilderRef, LLVMTypeRef Ty, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildCall2(arg0, arg1, Fn, Args, NumArgs, Name)#
Miscellaneous instructions
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildCall2(LLVMBuilderRef, LLVMTypeRef, LLVMValueRef Fn, LLVMValueRef * Args, unsigned int NumArgs, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildCallWithOperandBundles(arg0, arg1, Fn, Args, NumArgs, Bundles, NumBundles, Name)#
Miscellaneous instructions
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildCallWithOperandBundles(LLVMBuilderRef, LLVMTypeRef, LLVMValueRef Fn, LLVMValueRef * Args, unsigned int NumArgs, LLVMOperandBundleRef * Bundles, unsigned int NumBundles, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildSelect(arg0, If, Then, Else, Name)#
Miscellaneous instructions
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildSelect(LLVMBuilderRef, LLVMValueRef If, LLVMValueRef Then, LLVMValueRef Else, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildVAArg(arg0, List, Ty, Name)#
Miscellaneous instructions
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildVAArg(LLVMBuilderRef, LLVMValueRef List, LLVMTypeRef Ty, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildExtractElement(arg0, VecVal, Index, Name)#
Miscellaneous instructions
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildExtractElement(LLVMBuilderRef, LLVMValueRef VecVal, LLVMValueRef Index, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildInsertElement(arg0, VecVal, EltVal, Index, Name)#
Miscellaneous instructions
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildInsertElement(LLVMBuilderRef, LLVMValueRef VecVal, LLVMValueRef EltVal, LLVMValueRef Index, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildShuffleVector(arg0, V1, V2, Mask, Name)#
Miscellaneous instructions
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildShuffleVector(LLVMBuilderRef, LLVMValueRef V1, LLVMValueRef V2, LLVMValueRef Mask, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildExtractValue(arg0, AggVal, Index, Name)#
Miscellaneous instructions
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildExtractValue(LLVMBuilderRef, LLVMValueRef AggVal, unsigned int Index, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildInsertValue(arg0, AggVal, EltVal, Index, Name)#
Miscellaneous instructions
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildInsertValue(LLVMBuilderRef, LLVMValueRef AggVal, LLVMValueRef EltVal, unsigned int Index, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildFreeze(arg0, Val, Name)#
Miscellaneous instructions
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildFreeze(LLVMBuilderRef, LLVMValueRef Val, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildIsNull(arg0, Val, Name)#
Miscellaneous instructions
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildIsNull(LLVMBuilderRef, LLVMValueRef Val, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildIsNotNull(arg0, Val, Name)#
Miscellaneous instructions
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildIsNotNull(LLVMBuilderRef, LLVMValueRef Val, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildPtrDiff2(arg0, ElemTy, LHS, RHS, Name)#
Miscellaneous instructions
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildPtrDiff2(LLVMBuilderRef, LLVMTypeRef ElemTy, LLVMValueRef LHS, LLVMValueRef RHS, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildFence(B, ordering, singleThread, Name)#
Miscellaneous instructions
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildFence(LLVMBuilderRef B, LLVMAtomicOrdering ordering, LLVMBool singleThread, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildFenceSyncScope(B, ordering, SSID, Name)#
Miscellaneous instructions
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildFenceSyncScope(LLVMBuilderRef B, LLVMAtomicOrdering ordering, unsigned int SSID, const char * Name)
- rocm.bindings.llvm.c.core.LLVMBuildAtomicRMW(B, op, PTR, Val, ordering, singleThread)#
Miscellaneous instructions
- Args:
- B (
Pointer/object): (undocumented)
- op (
LLVMAtomicRMWBinOp): (undocumented)
- PTR (
Pointer/object): (undocumented)
- Val (
Pointer/object): (undocumented)
- ordering (
LLVMAtomicOrdering): (undocumented)
- singleThread (
int): (undocumented)
- B (
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildAtomicRMW(LLVMBuilderRef B, LLVMAtomicRMWBinOp op, LLVMValueRef PTR, LLVMValueRef Val, LLVMAtomicOrdering ordering, LLVMBool singleThread)
- rocm.bindings.llvm.c.core.LLVMBuildAtomicRMWSyncScope(B, op, PTR, Val, ordering, SSID)#
Miscellaneous instructions
- Args:
- B (
Pointer/object): (undocumented)
- op (
LLVMAtomicRMWBinOp): (undocumented)
- PTR (
Pointer/object): (undocumented)
- Val (
Pointer/object): (undocumented)
- ordering (
LLVMAtomicOrdering): (undocumented)
- SSID (
int): (undocumented)
- B (
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildAtomicRMWSyncScope(LLVMBuilderRef B, LLVMAtomicRMWBinOp op, LLVMValueRef PTR, LLVMValueRef Val, LLVMAtomicOrdering ordering, unsigned int SSID)
- rocm.bindings.llvm.c.core.LLVMBuildAtomicCmpXchg(B, Ptr, Cmp, New, SuccessOrdering, FailureOrdering, SingleThread)#
Miscellaneous instructions
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildAtomicCmpXchg(LLVMBuilderRef B, LLVMValueRef Ptr, LLVMValueRef Cmp, LLVMValueRef New, LLVMAtomicOrdering SuccessOrdering, LLVMAtomicOrdering FailureOrdering, LLVMBool SingleThread)
- rocm.bindings.llvm.c.core.LLVMBuildAtomicCmpXchgSyncScope(B, Ptr, Cmp, New, SuccessOrdering, FailureOrdering, SSID)#
Miscellaneous instructions
- Args:
- Returns:
None: (undocumented)
C signature
LLVMValueRef LLVMBuildAtomicCmpXchgSyncScope(LLVMBuilderRef B, LLVMValueRef Ptr, LLVMValueRef Cmp, LLVMValueRef New, LLVMAtomicOrdering SuccessOrdering, LLVMAtomicOrdering FailureOrdering, unsigned int SSID)
- rocm.bindings.llvm.c.core.LLVMGetNumMaskElements(ShuffleVectorInst)#
Get the number of elements in the mask of a ShuffleVector instruction.
C signature
unsigned int LLVMGetNumMaskElements(LLVMValueRef ShuffleVectorInst)
- rocm.bindings.llvm.c.core.LLVMGetUndefMaskElem()#
a constant that specifies that the result of a
ShuffleVectorInstis undefined.- Returns:
int:
C signature
int LLVMGetUndefMaskElem()
- rocm.bindings.llvm.c.core.LLVMGetMaskValue(ShuffleVectorInst, Elt)#
Get the mask value at position Elt in the mask of a ShuffleVector instruction.
Returns the result of
LLVMGetUndefMaskElem()if the mask value is poison at that position.- Args:
- Returns:
int: (undocumented)
C signature
int LLVMGetMaskValue(LLVMValueRef ShuffleVectorInst, unsigned int Elt)
- rocm.bindings.llvm.c.core.LLVMIsAtomicSingleThread(AtomicInst)#
Get the mask value at position Elt in the mask of a ShuffleVector instruction.
Returns the result of
LLVMGetUndefMaskElem()if the mask value is poison at that position.C signature
LLVMBool LLVMIsAtomicSingleThread(LLVMValueRef AtomicInst)
- rocm.bindings.llvm.c.core.LLVMSetAtomicSingleThread(AtomicInst, SingleThread)#
Get the mask value at position Elt in the mask of a ShuffleVector instruction.
Returns the result of
LLVMGetUndefMaskElem()if the mask value is poison at that position.C signature
void LLVMSetAtomicSingleThread(LLVMValueRef AtomicInst, LLVMBool SingleThread)
- rocm.bindings.llvm.c.core.LLVMIsAtomic(Inst)#
Returns whether an instruction is an atomic instruction, e.g., atomicrmw, cmpxchg, fence, or loads and stores with atomic ordering.
C signature
LLVMBool LLVMIsAtomic(LLVMValueRef Inst)
- rocm.bindings.llvm.c.core.LLVMGetAtomicSyncScopeID(AtomicInst)#
Returns the synchronization scope ID of an atomic instruction.
C signature
unsigned int LLVMGetAtomicSyncScopeID(LLVMValueRef AtomicInst)
- rocm.bindings.llvm.c.core.LLVMSetAtomicSyncScopeID(AtomicInst, SSID)#
Sets the synchronization scope ID of an atomic instruction.
C signature
void LLVMSetAtomicSyncScopeID(LLVMValueRef AtomicInst, unsigned int SSID)
- rocm.bindings.llvm.c.core.LLVMGetCmpXchgSuccessOrdering(CmpXchgInst)#
Sets the synchronization scope ID of an atomic instruction.
- Args:
- Returns:
LLVMAtomicOrdering: (undocumented)
C signature
LLVMAtomicOrdering LLVMGetCmpXchgSuccessOrdering(LLVMValueRef CmpXchgInst)
- rocm.bindings.llvm.c.core.LLVMSetCmpXchgSuccessOrdering(CmpXchgInst, Ordering)#
Sets the synchronization scope ID of an atomic instruction.
- Args:
- CmpXchgInst (
Pointer/object): (undocumented)
- Ordering (
LLVMAtomicOrdering): (undocumented)
- CmpXchgInst (
C signature
void LLVMSetCmpXchgSuccessOrdering(LLVMValueRef CmpXchgInst, LLVMAtomicOrdering Ordering)
- rocm.bindings.llvm.c.core.LLVMGetCmpXchgFailureOrdering(CmpXchgInst)#
Sets the synchronization scope ID of an atomic instruction.
- Args:
- Returns:
LLVMAtomicOrdering: (undocumented)
C signature
LLVMAtomicOrdering LLVMGetCmpXchgFailureOrdering(LLVMValueRef CmpXchgInst)
- rocm.bindings.llvm.c.core.LLVMSetCmpXchgFailureOrdering(CmpXchgInst, Ordering)#
Sets the synchronization scope ID of an atomic instruction.
- Args:
- CmpXchgInst (
Pointer/object): (undocumented)
- Ordering (
LLVMAtomicOrdering): (undocumented)
- CmpXchgInst (
C signature
void LLVMSetCmpXchgFailureOrdering(LLVMValueRef CmpXchgInst, LLVMAtomicOrdering Ordering)
- rocm.bindings.llvm.c.core.LLVMCreateModuleProviderForExistingModule(M)#
Changes the type of M so it can be passed to FunctionPassManagers and the JIT.
They take ModuleProviders for historical reasons.
C signature
LLVMModuleProviderRef LLVMCreateModuleProviderForExistingModule(LLVMModuleRef M)
- rocm.bindings.llvm.c.core.LLVMDisposeModuleProvider(M)#
Destroys the module M.
C signature
void LLVMDisposeModuleProvider(LLVMModuleProviderRef M)
- rocm.bindings.llvm.c.core.LLVMCreateMemoryBufferWithContentsOfFile(Path)#
(No short description, might be part of a group.)
- Args:
- Returns:
A
tupleof size 3 that contains (in that order):int: (undocumented)- OutMemBuf (
LLVMOpaqueMemoryBuffer): (undocumented)
- OutMemBuf (
C signature
LLVMBool LLVMCreateMemoryBufferWithContentsOfFile(const char * Path, LLVMMemoryBufferRef * OutMemBuf, char ** OutMessage)
- rocm.bindings.llvm.c.core.LLVMCreateMemoryBufferWithSTDIN()#
(No short description, might be part of a group.)
- Returns:
A
tupleof size 3 that contains (in that order):int: (undocumented)- OutMemBuf (
LLVMOpaqueMemoryBuffer): (undocumented)
- OutMemBuf (
C signature
LLVMBool LLVMCreateMemoryBufferWithSTDIN(LLVMMemoryBufferRef * OutMemBuf, char ** OutMessage)
- rocm.bindings.llvm.c.core.LLVMCreateMemoryBufferWithMemoryRange(InputData, InputDataLength, BufferName, RequiresNullTerminator)#
(No short description, might be part of a group.)
- Args:
- Returns:
None: (undocumented)
C signature
LLVMMemoryBufferRef LLVMCreateMemoryBufferWithMemoryRange(const char * InputData, size_t InputDataLength, const char * BufferName, LLVMBool RequiresNullTerminator)
- rocm.bindings.llvm.c.core.LLVMCreateMemoryBufferWithMemoryRangeCopy(InputData, InputDataLength, BufferName)#
(No short description, might be part of a group.)
- Args:
- Returns:
None: (undocumented)
C signature
LLVMMemoryBufferRef LLVMCreateMemoryBufferWithMemoryRangeCopy(const char * InputData, size_t InputDataLength, const char * BufferName)
- rocm.bindings.llvm.c.core.LLVMGetBufferStart(MemBuf)#
(No short description, might be part of a group.)
C signature
const char * LLVMGetBufferStart(LLVMMemoryBufferRef MemBuf)
- rocm.bindings.llvm.c.core.LLVMGetBufferSize(MemBuf)#
(No short description, might be part of a group.)
C signature
size_t LLVMGetBufferSize(LLVMMemoryBufferRef MemBuf)
- rocm.bindings.llvm.c.core.LLVMDisposeMemoryBuffer(MemBuf)#
(No short description, might be part of a group.)
C signature
void LLVMDisposeMemoryBuffer(LLVMMemoryBufferRef MemBuf)
- rocm.bindings.llvm.c.core.LLVMCreatePassManager()#
Constructs a new whole-module pass pipeline.
This type of pipeline is suitable for link-time optimization and whole-module transformations.
- See:
llvm::PassManager::PassManager
- Returns:
None: (undocumented)
C signature
LLVMPassManagerRef LLVMCreatePassManager()
- rocm.bindings.llvm.c.core.LLVMCreateFunctionPassManagerForModule(M)#
Constructs a new function-by-function pass pipeline over the module provider.
It does not take ownership of the module provider. This type of pipeline is suitable for code generation and JIT compilation tasks.
- See:
llvm::FunctionPassManager::FunctionPassManager
- Args:
- Returns:
None: (undocumented)
C signature
LLVMPassManagerRef LLVMCreateFunctionPassManagerForModule(LLVMModuleRef M)
- rocm.bindings.llvm.c.core.LLVMCreateFunctionPassManager(MP)#
Deprecated: Use LLVMCreateFunctionPassManagerForModule instead.
C signature
LLVMPassManagerRef LLVMCreateFunctionPassManager(LLVMModuleProviderRef MP)
- rocm.bindings.llvm.c.core.LLVMRunPassManager(PM, M)#
Initializes, executes on the provided module, and finalizes all of the passes scheduled in the pass manager.
Returns 1 if any of the passes modified the module, 0 otherwise.
C signature
LLVMBool LLVMRunPassManager(LLVMPassManagerRef PM, LLVMModuleRef M)
- rocm.bindings.llvm.c.core.LLVMInitializeFunctionPassManager(FPM)#
Initializes all of the function passes scheduled in the function pass manager.
Returns 1 if any of the passes modified the module, 0 otherwise.
- See:
llvm::FunctionPassManager::doInitialization
- Args:
- Returns:
int: (undocumented)
C signature
LLVMBool LLVMInitializeFunctionPassManager(LLVMPassManagerRef FPM)
- rocm.bindings.llvm.c.core.LLVMRunFunctionPassManager(FPM, F)#
Executes all of the function passes scheduled in the function pass manager on the provided function.
Returns 1 if any of the passes modified the function, false otherwise.
C signature
LLVMBool LLVMRunFunctionPassManager(LLVMPassManagerRef FPM, LLVMValueRef F)
- rocm.bindings.llvm.c.core.LLVMFinalizeFunctionPassManager(FPM)#
Finalizes all of the function passes scheduled in the function pass manager.
Returns 1 if any of the passes modified the module, 0 otherwise.
- See:
llvm::FunctionPassManager::doFinalization
- Args:
- Returns:
int: (undocumented)
C signature
LLVMBool LLVMFinalizeFunctionPassManager(LLVMPassManagerRef FPM)
- rocm.bindings.llvm.c.core.LLVMDisposePassManager(PM)#
Frees the memory of a pass pipeline.
For function pipelines, does not free the module provider.
C signature
void LLVMDisposePassManager(LLVMPassManagerRef PM)
- rocm.bindings.llvm.c.core.LLVMStartMultithreaded()#
Deprecated: Multi-threading can only be enabled/disabled with the compile time define LLVM_ENABLE_THREADS.
This function always returns LLVMIsMultithreaded().
- Returns:
int: (undocumented)
C signature
LLVMBool LLVMStartMultithreaded()
- rocm.bindings.llvm.c.core.LLVMStopMultithreaded()#
Deprecated: Multi-threading can only be enabled/disabled with the compile time define LLVM_ENABLE_THREADS.
C signature
void LLVMStopMultithreaded()