rocm.bindings.llvm.c.core

Contents

rocm.bindings.llvm.c.core#

2026-09-24

226 min read time

Applies to Linux and Windows

Advanced Micro Devices, Inc.

Attributes#

Classes#

LLVMOpcode

External users depend on the following values being stable.

LLVMTypeKind

(No short description)

LLVMLinkage

(No short description)

LLVMVisibility

(No short description)

LLVMUnnamedAddr

(No short description)

LLVMDLLStorageClass

(No short description)

LLVMCallConv

(No short description)

LLVMValueKind

(No short description)

LLVMIntPredicate

(No short description)

LLVMRealPredicate

(No short description)

LLVMThreadLocalMode

(No short description)

LLVMAtomicOrdering

(No short description)

LLVMAtomicRMWBinOp

(No short description)

LLVMDiagnosticSeverity

(No short description)

LLVMInlineAsmDialect

(No short description)

LLVMModuleFlagBehavior

(No short description)

LLVMTailCallKind

Tail call kind for LLVMSetTailCallKind and LLVMGetTailCallKind.

LLVMDbgRecordKind

(No short description)

LLVMDiagnosticHandler

Contexts are execution states for the core LLVM IR system.

LLVMYieldCallback

(No short description)

LLVMDenormalModeKind

Represent different denormal handling kinds for use with

Functions#

has_symbol(→ bool)

LLVMShutdown()

Deallocate and destroy all ManagedStatic variables.

LLVMGetVersion()

Return the major, minor, and patch version of LLVM

LLVMCreateMessage(Message)

===-- Error handling ----------------------------------------------------===

LLVMDisposeMessage(Message)

===-- Error handling ----------------------------------------------------===

LLVMContextCreate()

Create a new context.

LLVMGetGlobalContext()

Obtain the global context instance.

LLVMContextSetDiagnosticHandler(C, Handler, ...)

Set the diagnostic handler for this context.

LLVMContextGetDiagnosticHandler(C)

Get the diagnostic handler of this context.

LLVMContextGetDiagnosticContext(C)

Get the diagnostic context of this context.

LLVMContextSetYieldCallback(C, Callback, OpaqueHandle)

Set the yield callback function for this context.

LLVMContextShouldDiscardValueNames(C)

Retrieve whether the given context is set to discard all value names.

LLVMContextSetDiscardValueNames(C, Discard)

Set whether the given context discards all value names.

LLVMContextDispose(C)

Destroy a context instance.

LLVMGetDiagInfoDescription(DI)

Return a string representation of the DiagnosticInfo.

LLVMGetDiagInfoSeverity(DI)

Return an enum LLVMDiagnosticSeverity.

LLVMGetMDKindIDInContext(C, Name, SLen)

Return an enum LLVMDiagnosticSeverity.

LLVMGetMDKindID(Name, SLen)

(No short description, might be part of a group.)

LLVMGetSyncScopeID(C, Name, SLen)

Maps a synchronization scope name to a ID unique within this context.

LLVMGetEnumAttributeKindForName(Name, SLen)

Return an unique id given the name of a enum attribute,

LLVMGetLastEnumAttributeKind()

Return an unique id given the name of a enum attribute,

LLVMCreateEnumAttribute(C, KindID, Val)

Create an enum attribute.

LLVMGetEnumAttributeKind(A)

Get the unique id corresponding to the enum attribute

LLVMGetEnumAttributeValue(A)

Get the enum attribute's value. 0 is returned if none exists.

LLVMCreateTypeAttribute(C, KindID, type_ref)

Create a type attribute

LLVMGetTypeAttributeValue(A)

Get the type attribute's value.

LLVMCreateConstantRangeAttribute(C, KindID, NumBits, ...)

Create a ConstantRange attribute.

LLVMCreateDenormalFPEnvAttribute(C, DefaultModeOutput, ...)

Create a DenormalFPEnv attribute.

LLVMCreateStringAttribute(C, K, KLength, V, VLength)

Create a string attribute.

LLVMGetStringAttributeKind(A, Length)

Get the string attribute's kind.

LLVMGetStringAttributeValue(A, Length)

Get the string attribute's value.

LLVMIsEnumAttribute(A)

Check for the different types of attributes.

LLVMIsStringAttribute(A)

Check for the different types of attributes.

LLVMIsTypeAttribute(A)

Check for the different types of attributes.

LLVMGetTypeByName2(C, Name)

Obtain a Type from a context by its registered name.

LLVMModuleCreateWithName(ModuleID)

Create a new, empty module in the global context.

LLVMModuleCreateWithNameInContext(ModuleID, C)

Create a new, empty module in a specific context.

LLVMCloneModule(M)

Return an exact copy of the specified module.

LLVMDisposeModule(M)

Destroy a module instance.

LLVMIsNewDbgInfoFormat(M)

Soon to be deprecated.

LLVMSetIsNewDbgInfoFormat(M, UseNewFormat)

Soon to be deprecated.

LLVMGetModuleIdentifier(M, Len)

Obtain the identifier of a module.

LLVMSetModuleIdentifier(M, Ident, Len)

Set the identifier of a module to a string Ident with length Len.

LLVMGetSourceFileName(M, Len)

Obtain the module's original source file name.

LLVMSetSourceFileName(M, Name, Len)

Set the original source file name of a module to a string Name with length

LLVMGetDataLayoutStr(M)

Obtain the data layout for a module.

LLVMGetDataLayout(M)

Obtain the data layout for a module.

LLVMSetDataLayout(M, DataLayoutStr)

Set the data layout for a module.

LLVMGetTarget(M)

Obtain the target triple for a module.

LLVMSetTarget(M, Triple)

Set the target triple for a module.

LLVMCopyModuleFlagsMetadata(M, Len)

Returns the module flags as an array of flag-key-value triples.

LLVMDisposeModuleFlagsMetadata(Entries)

Destroys module flags metadata entries.

LLVMModuleFlagEntriesGetFlagBehavior(Entries, Index)

Returns the flag behavior for a module flag entry at a specific index.

LLVMModuleFlagEntriesGetKey(Entries, Index, Len)

Returns the key for a module flag entry at a specific index.

LLVMModuleFlagEntriesGetMetadata(Entries, Index)

Returns the metadata for a module flag entry at a specific index.

LLVMGetModuleFlag(M, Key, KeyLen)

Add a module-level flag to the module-level flags metadata if it doesn't

LLVMAddModuleFlag(M, Behavior, Key, KeyLen, Val)

Add a module-level flag to the module-level flags metadata if it doesn't

LLVMDumpModule(M)

Dump a representation of a module to stderr.

LLVMPrintModuleToFile(M, Filename, ErrorMessage)

Print a representation of a module to a file.

LLVMPrintModuleToString(M)

Return a string representation of the module.

LLVMGetModuleInlineAsm(M, Len)

Get inline assembly for a module.

LLVMSetModuleInlineAsm2(M, Asm, Len)

Set inline assembly for a module.

LLVMAppendModuleInlineAsm(M, Asm, Len)

Append inline assembly to a module.

LLVMGetInlineAsm(Ty, AsmString, AsmStringSize, ...)

Create the specified uniqued inline asm string.

LLVMGetInlineAsmAsmString(InlineAsmVal, Len)

Get the template string used for an inline assembly snippet

LLVMGetInlineAsmConstraintString(InlineAsmVal, Len)

Get the raw constraint string for an inline assembly snippet

LLVMGetInlineAsmDialect(InlineAsmVal)

Get the dialect used by the inline asm snippet

LLVMGetInlineAsmFunctionType(InlineAsmVal)

Get the function type of the inline assembly snippet.

LLVMGetInlineAsmHasSideEffects(InlineAsmVal)

Get if the inline asm snippet has side effects

LLVMGetInlineAsmNeedsAlignedStack(InlineAsmVal)

Get if the inline asm snippet needs an aligned stack

LLVMGetInlineAsmCanUnwind(InlineAsmVal)

Get if the inline asm snippet may unwind the stack

LLVMGetModuleContext(M)

Obtain the context to which this module is associated.

LLVMGetTypeByName(M, Name)

Deprecated: Use LLVMGetTypeByName2 instead.

LLVMGetFirstNamedMetadata(M)

Obtain an iterator to the first NamedMDNode in a Module.

LLVMGetLastNamedMetadata(M)

Obtain an iterator to the last NamedMDNode in a Module.

LLVMGetNextNamedMetadata(NamedMDNode)

Advance a NamedMDNode iterator to the next NamedMDNode.

LLVMGetPreviousNamedMetadata(NamedMDNode)

Decrement a NamedMDNode iterator to the previous NamedMDNode.

LLVMGetNamedMetadata(M, Name, NameLen)

Retrieve a NamedMDNode with the given name, returning NULL if no such

LLVMGetOrInsertNamedMetadata(M, Name, NameLen)

Retrieve a NamedMDNode with the given name, creating a new node if no such

LLVMGetNamedMetadataName(NamedMD, NameLen)

Retrieve the name of a NamedMDNode.

LLVMGetNamedMetadataNumOperands(M, Name)

Obtain the number of operands for named metadata in a module.

LLVMGetNamedMetadataOperands(M, Name, Dest)

Obtain the named metadata operands for a module.

LLVMAddNamedMetadataOperand(M, Name, Val)

Add an operand to named metadata.

LLVMGetDebugLocDirectory(Val, Length)

Return the directory of the debug location for this value, which must be

LLVMGetDebugLocFilename(Val, Length)

Return the filename of the debug location for this value, which must be

LLVMGetDebugLocLine(Val)

Return the line number of the debug location for this value, which must be

LLVMGetDebugLocColumn(Val)

Return the column number of the debug location for this value, which must be

LLVMAddFunction(M, Name, FunctionTy)

Add a function to a module under a specified name.

LLVMGetOrInsertFunction(M, Name, NameLen, FunctionTy)

Obtain or insert a function into a module.

LLVMGetNamedFunction(M, Name)

Obtain a Function value from a Module by its name.

LLVMGetNamedFunctionWithLength(M, Name, Length)

Obtain a Function value from a Module by its name.

LLVMGetFirstFunction(M)

Obtain an iterator to the first Function in a Module.

LLVMGetLastFunction(M)

Obtain an iterator to the last Function in a Module.

LLVMGetNextFunction(Fn)

Advance a Function iterator to the next Function.

LLVMGetPreviousFunction(Fn)

Decrement a Function iterator to the previous Function.

LLVMSetModuleInlineAsm(M, Asm)

Deprecated: Use LLVMSetModuleInlineAsm2 instead.

LLVMGetTypeKind(Ty)

Obtain the enumerated type of a Type instance.

LLVMTypeIsSized(Ty)

Whether the type has a known size.

LLVMGetTypeContext(Ty)

Obtain the context to which this type instance is associated.

LLVMDumpType(Val)

Dump a representation of a type to stderr.

LLVMPrintTypeToString(Val)

Return a string representation of the type.

LLVMByteTypeInContext(C, NumBits)

Obtain a byte type from a context with specified bit width.

LLVMGetByteTypeWidth(ByteTy)

Obtain a byte type from a context with specified bit width.

LLVMInt1TypeInContext(C)

Obtain an integer type from a context with specified bit width.

LLVMInt8TypeInContext(C)

Obtain an integer type from a context with specified bit width.

LLVMInt16TypeInContext(C)

Obtain an integer type from a context with specified bit width.

LLVMInt32TypeInContext(C)

Obtain an integer type from a context with specified bit width.

LLVMInt64TypeInContext(C)

Obtain an integer type from a context with specified bit width.

LLVMInt128TypeInContext(C)

Obtain an integer type from a context with specified bit width.

LLVMIntTypeInContext(C, NumBits)

Obtain an integer type from a context with specified bit width.

LLVMInt1Type()

Obtain an integer type from the global context with a specified bit

LLVMInt8Type()

(No short description, might be part of a group.)

LLVMInt16Type()

(No short description, might be part of a group.)

LLVMInt32Type()

(No short description, might be part of a group.)

LLVMInt64Type()

(No short description, might be part of a group.)

LLVMInt128Type()

(No short description, might be part of a group.)

LLVMIntType(NumBits)

(No short description, might be part of a group.)

LLVMGetIntTypeWidth(IntegerTy)

Obtain an integer type from the global context with a specified bit

LLVMHalfTypeInContext(C)

Obtain a 16-bit floating point type from a context.

LLVMBFloatTypeInContext(C)

Obtain a 16-bit brain floating point type from a context.

LLVMFloatTypeInContext(C)

Obtain a 32-bit floating point type from a context.

LLVMDoubleTypeInContext(C)

Obtain a 64-bit floating point type from a context.

LLVMX86FP80TypeInContext(C)

Obtain a 80-bit floating point type (X87) from a context.

LLVMFP128TypeInContext(C)

Obtain a 128-bit floating point type (112-bit mantissa) from a

LLVMPPCFP128TypeInContext(C)

Obtain a 128-bit floating point type (two 64-bits) from a context.

LLVMHalfType()

Obtain a floating point type from the global context.

LLVMBFloatType()

(No short description, might be part of a group.)

LLVMFloatType()

(No short description, might be part of a group.)

LLVMDoubleType()

(No short description, might be part of a group.)

LLVMX86FP80Type()

(No short description, might be part of a group.)

LLVMFP128Type()

(No short description, might be part of a group.)

LLVMPPCFP128Type()

(No short description, might be part of a group.)

LLVMFunctionType(ReturnType, ParamTypes, ParamCount, ...)

Obtain a function type consisting of a specified signature.

LLVMIsFunctionVarArg(FunctionTy)

Returns whether a function type is variadic.

LLVMGetReturnType(FunctionTy)

Obtain the Type this function Type returns.

LLVMCountParamTypes(FunctionTy)

Obtain the number of parameters this function accepts.

LLVMGetParamTypes(FunctionTy, Dest)

Obtain the types of a function's parameters.

LLVMStructTypeInContext(C, ElementTypes, ElementCount, ...)

Create a new structure type in a context.

LLVMStructType(ElementTypes, ElementCount, Packed)

Create a new structure type in the global context.

LLVMStructCreateNamed(C, Name)

Create an empty structure in a context having a specified name.

LLVMGetStructName(Ty)

Obtain the name of a structure.

LLVMStructSetBody(StructTy, ElementTypes, ...)

Set the contents of a structure type.

LLVMCountStructElementTypes(StructTy)

Get the number of elements defined inside the structure.

LLVMGetStructElementTypes(StructTy, Dest)

Get the elements within a structure.

LLVMStructGetTypeAtIndex(StructTy, i)

Get the type of the element at a given index in the structure.

LLVMIsPackedStruct(StructTy)

Determine whether a structure is packed.

LLVMIsOpaqueStruct(StructTy)

Determine whether a structure is opaque.

LLVMIsLiteralStruct(StructTy)

Determine whether a structure is literal.

LLVMGetElementType(Ty)

Obtain the element type of an array or vector type.

LLVMGetSubtypes(Tp, Arr)

Returns type's subtypes

LLVMGetNumContainedTypes(Tp)

Return the number of types in the derived type.

LLVMArrayType(ElementType, ElementCount)

Create a fixed size array type that refers to a specific type.

LLVMArrayType2(ElementType, ElementCount)

Create a fixed size array type that refers to a specific type.

LLVMGetArrayLength(ArrayTy)

Obtain the length of an array type.

LLVMGetArrayLength2(ArrayTy)

Obtain the length of an array type.

LLVMPointerType(ElementType, AddressSpace)

Create a pointer type that points to a defined type.

LLVMPointerTypeIsOpaque(Ty)

Determine whether a pointer is opaque.

LLVMPointerTypeInContext(C, AddressSpace)

Create an opaque pointer type in a context.

LLVMGetPointerAddressSpace(PointerTy)

Obtain the address space of a pointer type.

LLVMVectorType(ElementType, ElementCount)

Create a vector type that contains a defined type and has a specific

LLVMScalableVectorType(ElementType, ElementCount)

Create a vector type that contains a defined type and has a scalable

LLVMGetVectorSize(VectorTy)

Obtain the (possibly scalable) number of elements in a vector type.

LLVMGetConstantPtrAuthPointer(PtrAuth)

Get the pointer value for the associated ConstantPtrAuth constant.

LLVMGetConstantPtrAuthKey(PtrAuth)

Get the key value for the associated ConstantPtrAuth constant.

LLVMGetConstantPtrAuthDiscriminator(PtrAuth)

Get the discriminator value for the associated ConstantPtrAuth constant.

LLVMGetConstantPtrAuthAddrDiscriminator(PtrAuth)

Get the address discriminator value for the associated ConstantPtrAuth

LLVMVoidTypeInContext(C)

Create a void type in a context.

LLVMLabelTypeInContext(C)

Create a label type in a context.

LLVMX86AMXTypeInContext(C)

Create a X86 AMX type in a context.

LLVMTokenTypeInContext(C)

Create a token type in a context.

LLVMMetadataTypeInContext(C)

Create a metadata type in a context.

LLVMVoidType()

These are similar to the above functions except they operate on the

LLVMLabelType()

(No short description, might be part of a group.)

LLVMX86AMXType()

(No short description, might be part of a group.)

LLVMTargetExtTypeInContext(C, Name, TypeParams, ...)

Create a target extension type in LLVM context.

LLVMGetTargetExtTypeName(TargetExtTy)

Obtain the name for this target extension type.

LLVMGetTargetExtTypeNumTypeParams(TargetExtTy)

Obtain the number of type parameters for this target extension type.

LLVMGetTargetExtTypeTypeParam(TargetExtTy, Idx)

Get the type parameter at the given index for the target extension type.

LLVMGetTargetExtTypeNumIntParams(TargetExtTy)

Obtain the number of int parameters for this target extension type.

LLVMGetTargetExtTypeIntParam(TargetExtTy, Idx)

Get the int parameter at the given index for the target extension type.

LLVMTypeOf(Val)

Obtain the type of a value.

LLVMGetValueKind(Val)

Obtain the enumerated type of a Value instance.

LLVMGetValueName2(Val)

Obtain the string name of a value.

LLVMSetValueName2(Val, Name, NameLen)

Set the string name of a value.

LLVMDumpValue(Val)

Dump a representation of a value to stderr.

LLVMPrintValueToString(Val)

Return a string representation of the value.

LLVMGetValueContext(Val)

Obtain the context to which this value is associated.

LLVMPrintDbgRecordToString(Record)

Return a string representation of the DbgRecord.

LLVMReplaceAllUsesWith(OldVal, NewVal)

Replace all uses of a value with another one.

LLVMIsConstant(Val)

Determine whether the specified value instance is constant.

LLVMIsUndef(Val)

Determine whether a value instance is undefined.

LLVMIsPoison(Val)

Determine whether a value instance is poisonous.

LLVMIsAArgument(Val)

(No short description, might be part of a group.)

LLVMIsABasicBlock(Val)

(No short description, might be part of a group.)

LLVMIsAInlineAsm(Val)

(No short description, might be part of a group.)

LLVMIsAUser(Val)

(No short description, might be part of a group.)

LLVMIsAConstant(Val)

(No short description, might be part of a group.)

LLVMIsABlockAddress(Val)

(No short description, might be part of a group.)

LLVMIsAConstantAggregateZero(Val)

(No short description, might be part of a group.)

LLVMIsAConstantArray(Val)

(No short description, might be part of a group.)

LLVMIsAConstantDataSequential(Val)

(No short description, might be part of a group.)

LLVMIsAConstantDataArray(Val)

(No short description, might be part of a group.)

LLVMIsAConstantDataVector(Val)

(No short description, might be part of a group.)

LLVMIsAConstantExpr(Val)

(No short description, might be part of a group.)

LLVMIsAConstantFP(Val)

(No short description, might be part of a group.)

LLVMIsAConstantInt(Val)

(No short description, might be part of a group.)

LLVMIsAConstantByte(Val)

(No short description, might be part of a group.)

LLVMIsAConstantPointerNull(Val)

(No short description, might be part of a group.)

LLVMIsAConstantStruct(Val)

(No short description, might be part of a group.)

LLVMIsAConstantTokenNone(Val)

(No short description, might be part of a group.)

LLVMIsAConstantVector(Val)

(No short description, might be part of a group.)

LLVMIsAConstantPtrAuth(Val)

(No short description, might be part of a group.)

LLVMIsAGlobalValue(Val)

(No short description, might be part of a group.)

LLVMIsAGlobalAlias(Val)

(No short description, might be part of a group.)

LLVMIsAGlobalObject(Val)

(No short description, might be part of a group.)

LLVMIsAFunction(Val)

(No short description, might be part of a group.)

LLVMIsAGlobalVariable(Val)

(No short description, might be part of a group.)

LLVMIsAGlobalIFunc(Val)

(No short description, might be part of a group.)

LLVMIsAUndefValue(Val)

(No short description, might be part of a group.)

LLVMIsAPoisonValue(Val)

(No short description, might be part of a group.)

LLVMIsAInstruction(Val)

(No short description, might be part of a group.)

LLVMIsAUnaryOperator(Val)

(No short description, might be part of a group.)

LLVMIsABinaryOperator(Val)

(No short description, might be part of a group.)

LLVMIsACallInst(Val)

(No short description, might be part of a group.)

LLVMIsAIntrinsicInst(Val)

(No short description, might be part of a group.)

LLVMIsADbgInfoIntrinsic(Val)

(No short description, might be part of a group.)

LLVMIsADbgVariableIntrinsic(Val)

(No short description, might be part of a group.)

LLVMIsADbgDeclareInst(Val)

(No short description, might be part of a group.)

LLVMIsADbgLabelInst(Val)

(No short description, might be part of a group.)

LLVMIsAMemIntrinsic(Val)

(No short description, might be part of a group.)

LLVMIsAMemCpyInst(Val)

(No short description, might be part of a group.)

LLVMIsAMemMoveInst(Val)

(No short description, might be part of a group.)

LLVMIsAMemSetInst(Val)

(No short description, might be part of a group.)

LLVMIsACmpInst(Val)

(No short description, might be part of a group.)

LLVMIsAFCmpInst(Val)

(No short description, might be part of a group.)

LLVMIsAICmpInst(Val)

(No short description, might be part of a group.)

LLVMIsAExtractElementInst(Val)

(No short description, might be part of a group.)

LLVMIsAGetElementPtrInst(Val)

(No short description, might be part of a group.)

LLVMIsAInsertElementInst(Val)

(No short description, might be part of a group.)

LLVMIsAInsertValueInst(Val)

(No short description, might be part of a group.)

LLVMIsALandingPadInst(Val)

(No short description, might be part of a group.)

LLVMIsAPHINode(Val)

(No short description, might be part of a group.)

LLVMIsASelectInst(Val)

(No short description, might be part of a group.)

LLVMIsAShuffleVectorInst(Val)

(No short description, might be part of a group.)

LLVMIsAStoreInst(Val)

(No short description, might be part of a group.)

LLVMIsAUncondBrInst(Val)

(No short description, might be part of a group.)

LLVMIsACondBrInst(Val)

(No short description, might be part of a group.)

LLVMIsAIndirectBrInst(Val)

(No short description, might be part of a group.)

LLVMIsAInvokeInst(Val)

(No short description, might be part of a group.)

LLVMIsAReturnInst(Val)

(No short description, might be part of a group.)

LLVMIsASwitchInst(Val)

(No short description, might be part of a group.)

LLVMIsAUnreachableInst(Val)

(No short description, might be part of a group.)

LLVMIsAResumeInst(Val)

(No short description, might be part of a group.)

LLVMIsACleanupReturnInst(Val)

(No short description, might be part of a group.)

LLVMIsACatchReturnInst(Val)

(No short description, might be part of a group.)

LLVMIsACatchSwitchInst(Val)

(No short description, might be part of a group.)

LLVMIsACallBrInst(Val)

(No short description, might be part of a group.)

LLVMIsAFuncletPadInst(Val)

(No short description, might be part of a group.)

LLVMIsACatchPadInst(Val)

(No short description, might be part of a group.)

LLVMIsACleanupPadInst(Val)

(No short description, might be part of a group.)

LLVMIsAUnaryInstruction(Val)

(No short description, might be part of a group.)

LLVMIsAAllocaInst(Val)

(No short description, might be part of a group.)

LLVMIsACastInst(Val)

(No short description, might be part of a group.)

LLVMIsAAddrSpaceCastInst(Val)

(No short description, might be part of a group.)

LLVMIsABitCastInst(Val)

(No short description, might be part of a group.)

LLVMIsAFPExtInst(Val)

(No short description, might be part of a group.)

LLVMIsAFPToSIInst(Val)

(No short description, might be part of a group.)

LLVMIsAFPToUIInst(Val)

(No short description, might be part of a group.)

LLVMIsAFPTruncInst(Val)

(No short description, might be part of a group.)

LLVMIsAIntToPtrInst(Val)

(No short description, might be part of a group.)

LLVMIsAPtrToIntInst(Val)

(No short description, might be part of a group.)

LLVMIsASExtInst(Val)

(No short description, might be part of a group.)

LLVMIsASIToFPInst(Val)

(No short description, might be part of a group.)

LLVMIsATruncInst(Val)

(No short description, might be part of a group.)

LLVMIsAUIToFPInst(Val)

(No short description, might be part of a group.)

LLVMIsAZExtInst(Val)

(No short description, might be part of a group.)

LLVMIsAExtractValueInst(Val)

(No short description, might be part of a group.)

LLVMIsALoadInst(Val)

(No short description, might be part of a group.)

LLVMIsAVAArgInst(Val)

(No short description, might be part of a group.)

LLVMIsAFreezeInst(Val)

(No short description, might be part of a group.)

LLVMIsAAtomicCmpXchgInst(Val)

(No short description, might be part of a group.)

LLVMIsAAtomicRMWInst(Val)

(No short description, might be part of a group.)

LLVMIsAFenceInst(Val)

(No short description, might be part of a group.)

LLVMIsABranchInst(Val)

(No short description, might be part of a group.)

LLVMIsAMDNode(Val)

Convert value instances between types.

LLVMIsAValueAsMetadata(Val)

Convert value instances between types.

LLVMIsAMDString(Val)

Convert value instances between types.

LLVMGetValueName(Val)

Deprecated: Use LLVMGetValueName2 instead.

LLVMSetValueName(Val, Name)

Deprecated: Use LLVMSetValueName2 instead.

LLVMGetFirstUse(Val)

Obtain the first use of a value.

LLVMGetNextUse(U)

Obtain the next use of a value.

LLVMGetUser(U)

Obtain the user value for a user.

LLVMGetUsedValue(U)

Obtain the value this use corresponds to.

LLVMGetOperand(Val, Index)

Obtain an operand at a specific index in a llvm::User value.

LLVMGetOperandUse(Val, Index)

Obtain the use of an operand at a specific index in a llvm::User value.

LLVMSetOperand(User, Index, Val)

Set an operand at a specific index in a llvm::User value.

LLVMGetNumOperands(Val)

Obtain the number of operands in a llvm::User value.

LLVMConstNull(Ty)

Obtain a constant value referring to the null instance of a type.

LLVMConstAllOnes(Ty)

Obtain a constant value referring to the instance of a type

LLVMGetUndef(Ty)

Obtain a constant value referring to an undefined value of a type.

LLVMGetPoison(Ty)

Obtain a constant value referring to a poison value of a type.

LLVMIsNull(Val)

Determine whether a value instance is null.

LLVMConstPointerNull(Ty)

Obtain a constant that is a constant pointer pointing to NULL for a

LLVMConstInt(IntTy, N, SignExtend)

Obtain a constant value for an integer type.

LLVMConstIntOfArbitraryPrecision(IntTy, NumWords, Words)

Obtain a constant value for an integer of arbitrary precision.

LLVMConstIntOfString(IntTy, Text, Radix)

Obtain a constant value for an integer parsed from a string.

LLVMConstIntOfStringAndSize(IntTy, Text, SLen, Radix)

Obtain a constant value for an integer parsed from a string with

LLVMConstByte(ByteTy, N)

Obtain a constant value for a byte type.

LLVMConstByteOfArbitraryPrecision(ByteTy, NumWords, Words)

Obtain a constant value for a byte of arbitrary precision.

LLVMConstByteOfStringAndSize(ByteTy, Text, SLen, Radix)

Obtain a constant value for a byte parsed from a string with specified

LLVMConstReal(RealTy, N)

Obtain a constant value referring to a double floating point value.

LLVMConstRealOfString(RealTy, Text)

Obtain a constant for a floating point value parsed from a string.

LLVMConstRealOfStringAndSize(RealTy, Text, SLen)

Obtain a constant for a floating point value parsed from a string.

LLVMConstFPFromBits(Ty, N)

Obtain a constant for a floating point value from array of 64 bit values.

LLVMConstIntGetZExtValue(ConstantVal)

Obtain the zero extended value for an integer constant value.

LLVMConstIntGetSExtValue(ConstantVal)

Obtain the sign extended value for an integer constant value.

LLVMConstByteGetZExtValue(ConstantVal)

Obtain the zero extended value for a byte constant value.

LLVMConstByteGetSExtValue(ConstantVal)

Obtain the sign extended value for a byte constant value.

LLVMConstRealGetDouble(ConstantVal, losesInfo)

Obtain the double value for an floating point constant value.

LLVMConstStringInContext(C, Str, Length, DontNullTerminate)

Create a ConstantDataSequential and initialize it with a string.

LLVMConstStringInContext2(C, Str, Length, ...)

Create a ConstantDataSequential and initialize it with a string.

LLVMConstString(Str, Length, DontNullTerminate)

Create a ConstantDataSequential with string content in the global context.

LLVMIsConstantString(c)

Returns true if the specified constant is an array of i8.

LLVMGetAsString(c, Length)

Get the given constant data sequential as a string.

LLVMGetRawDataValues(c, SizeInBytes)

Get the raw, underlying bytes of the given constant data sequential.

LLVMConstStructInContext(C, ConstantVals, Count, Packed)

Create an anonymous ConstantStruct with the specified values.

LLVMConstStruct(ConstantVals, Count, Packed)

Create a ConstantStruct in the global Context.

LLVMConstArray(ElementTy, ConstantVals, Length)

Create a ConstantArray from values.

LLVMConstArray2(ElementTy, ConstantVals, Length)

Create a ConstantArray from values.

LLVMConstDataArray(ElementTy, Data, SizeInBytes)

Create a ConstantDataArray from raw values.

LLVMConstNamedStruct(StructTy, ConstantVals, Count)

Create a non-anonymous ConstantStruct from values.

LLVMGetAggregateElement(C, Idx)

Get element of a constant aggregate (struct, array or vector) at the

LLVMGetElementAsConstant(C, idx)

Get an element at specified index as a constant.

LLVMConstVector(ScalarConstantVals, Size)

Create a ConstantVector from values.

LLVMConstantPtrAuth(Ptr, Key, Disc, AddrDisc)

Create a ConstantPtrAuth constant with the given values.

LLVMGetConstOpcode(ConstantVal)

Functions in this group correspond to APIs on llvm::ConstantExpr.

LLVMAlignOf(Ty)

Functions in this group correspond to APIs on llvm::ConstantExpr.

LLVMSizeOf(Ty)

Functions in this group correspond to APIs on llvm::ConstantExpr.

LLVMConstNeg(ConstantVal)

Functions in this group correspond to APIs on llvm::ConstantExpr.

LLVMConstNSWNeg(ConstantVal)

Functions in this group correspond to APIs on llvm::ConstantExpr.

LLVMConstNUWNeg(ConstantVal)

(No short description, might be part of a group.)

LLVMConstNot(ConstantVal)

Functions in this group correspond to APIs on llvm::ConstantExpr.

LLVMConstAdd(LHSConstant, RHSConstant)

Functions in this group correspond to APIs on llvm::ConstantExpr.

LLVMConstNSWAdd(LHSConstant, RHSConstant)

Functions in this group correspond to APIs on llvm::ConstantExpr.

LLVMConstNUWAdd(LHSConstant, RHSConstant)

Functions in this group correspond to APIs on llvm::ConstantExpr.

LLVMConstSub(LHSConstant, RHSConstant)

Functions in this group correspond to APIs on llvm::ConstantExpr.

LLVMConstNSWSub(LHSConstant, RHSConstant)

Functions in this group correspond to APIs on llvm::ConstantExpr.

LLVMConstNUWSub(LHSConstant, RHSConstant)

Functions in this group correspond to APIs on llvm::ConstantExpr.

LLVMConstXor(LHSConstant, RHSConstant)

Functions in this group correspond to APIs on llvm::ConstantExpr.

LLVMConstGEP2(Ty, ConstantVal, ConstantIndices, NumIndices)

Functions in this group correspond to APIs on llvm::ConstantExpr.

LLVMConstInBoundsGEP2(Ty, ConstantVal, ...)

Functions in this group correspond to APIs on llvm::ConstantExpr.

LLVMConstGEPWithNoWrapFlags(Ty, ConstantVal, ...)

Creates a constant GetElementPtr expression.

LLVMConstTrunc(ConstantVal, ToType)

Creates a constant GetElementPtr expression.

LLVMConstPtrToInt(ConstantVal, ToType)

Creates a constant GetElementPtr expression.

LLVMConstIntToPtr(ConstantVal, ToType)

Creates a constant GetElementPtr expression.

LLVMConstBitCast(ConstantVal, ToType)

Creates a constant GetElementPtr expression.

LLVMConstAddrSpaceCast(ConstantVal, ToType)

Creates a constant GetElementPtr expression.

LLVMConstTruncOrBitCast(ConstantVal, ToType)

Creates a constant GetElementPtr expression.

LLVMConstPointerCast(ConstantVal, ToType)

Creates a constant GetElementPtr expression.

LLVMConstExtractElement(VectorConstant, IndexConstant)

Creates a constant GetElementPtr expression.

LLVMConstInsertElement(VectorConstant, ...)

Creates a constant GetElementPtr expression.

LLVMConstShuffleVector(VectorAConstant, ...)

Creates a constant GetElementPtr expression.

LLVMBlockAddress(F, BB)

Creates a constant GetElementPtr expression.

LLVMGetBlockAddressFunction(BlockAddr)

Gets the function associated with a given BlockAddress constant value.

LLVMGetBlockAddressBasicBlock(BlockAddr)

Gets the basic block associated with a given BlockAddress constant value.

LLVMConstInlineAsm(Ty, AsmString, Constraints, ...)

Deprecated: Use LLVMGetInlineAsm instead.

LLVMGetGlobalParent(Global)

This group contains functions that operate on global values.

LLVMIsDeclaration(Global)

This group contains functions that operate on global values.

LLVMGetLinkage(Global)

This group contains functions that operate on global values.

LLVMSetLinkage(Global, Linkage)

This group contains functions that operate on global values.

LLVMGetSection(Global)

This group contains functions that operate on global values.

LLVMSetSection(Global, Section)

This group contains functions that operate on global values.

LLVMGetVisibility(Global)

This group contains functions that operate on global values.

LLVMSetVisibility(Global, Viz)

This group contains functions that operate on global values.

LLVMGetDLLStorageClass(Global)

This group contains functions that operate on global values.

LLVMSetDLLStorageClass(Global, Class)

This group contains functions that operate on global values.

LLVMGetUnnamedAddress(Global)

This group contains functions that operate on global values.

LLVMSetUnnamedAddress(Global, UnnamedAddr)

This group contains functions that operate on global values.

LLVMGlobalGetValueType(Global)

Returns the "value type" of a global value.

LLVMHasUnnamedAddr(Global)

Deprecated: Use LLVMGetUnnamedAddress instead.

LLVMSetUnnamedAddr(Global, HasUnnamedAddr)

Deprecated: Use LLVMSetUnnamedAddress instead.

LLVMGetAlignment(V)

Obtain the preferred alignment of the value.

LLVMSetAlignment(V, Bytes)

Set the preferred alignment of the value.

LLVMGlobalSetMetadata(Global, Kind, MD)

Sets a metadata attachment, erasing the existing metadata attachment if

LLVMGlobalAddMetadata(Global, Kind, MD)

Adds a metadata attachment.

LLVMGlobalEraseMetadata(Global, Kind)

Erases a metadata attachment of the given kind if it exists.

LLVMGlobalClearMetadata(Global)

Removes all metadata attachments from this value.

LLVMGlobalAddDebugInfo(Global, GVE)

Add debuginfo metadata to this global.

LLVMGlobalCopyAllMetadata(Value, NumEntries)

Retrieves an array of metadata entries representing the metadata attached to

LLVMDisposeValueMetadataEntries(Entries)

Destroys value metadata entries.

LLVMValueMetadataEntriesGetKind(Entries, Index)

Returns the kind of a value metadata entry at a specific index.

LLVMValueMetadataEntriesGetMetadata(Entries, Index)

Returns the underlying metadata node of a value metadata entry at a

LLVMAddGlobal(M, Ty, Name)

This group contains functions that operate on global variable values.

LLVMAddGlobalInAddressSpace(M, Ty, Name, AddressSpace)

This group contains functions that operate on global variable values.

LLVMGetNamedGlobal(M, Name)

This group contains functions that operate on global variable values.

LLVMGetNamedGlobalWithLength(M, Name, Length)

This group contains functions that operate on global variable values.

LLVMGetFirstGlobal(M)

This group contains functions that operate on global variable values.

LLVMGetLastGlobal(M)

This group contains functions that operate on global variable values.

LLVMGetNextGlobal(GlobalVar)

This group contains functions that operate on global variable values.

LLVMGetPreviousGlobal(GlobalVar)

This group contains functions that operate on global variable values.

LLVMDeleteGlobal(GlobalVar)

This group contains functions that operate on global variable values.

LLVMGetInitializer(GlobalVar)

This group contains functions that operate on global variable values.

LLVMSetInitializer(GlobalVar, ConstantVal)

This group contains functions that operate on global variable values.

LLVMIsThreadLocal(GlobalVar)

This group contains functions that operate on global variable values.

LLVMSetThreadLocal(GlobalVar, IsThreadLocal)

This group contains functions that operate on global variable values.

LLVMIsGlobalConstant(GlobalVar)

This group contains functions that operate on global variable values.

LLVMSetGlobalConstant(GlobalVar, IsConstant)

This group contains functions that operate on global variable values.

LLVMGetThreadLocalMode(GlobalVar)

This group contains functions that operate on global variable values.

LLVMSetThreadLocalMode(GlobalVar, Mode)

This group contains functions that operate on global variable values.

LLVMIsExternallyInitialized(GlobalVar)

This group contains functions that operate on global variable values.

LLVMSetExternallyInitialized(GlobalVar, IsExtInit)

This group contains functions that operate on global variable values.

LLVMAddAlias2(M, ValueTy, AddrSpace, Aliasee, Name)

Add a GlobalAlias with the given value type, address space and aliasee.

LLVMGetNamedGlobalAlias(M, Name, NameLen)

Obtain a GlobalAlias value from a Module by its name.

LLVMGetFirstGlobalAlias(M)

Obtain an iterator to the first GlobalAlias in a Module.

LLVMGetLastGlobalAlias(M)

Obtain an iterator to the last GlobalAlias in a Module.

LLVMGetNextGlobalAlias(GA)

Advance a GlobalAlias iterator to the next GlobalAlias.

LLVMGetPreviousGlobalAlias(GA)

Decrement a GlobalAlias iterator to the previous GlobalAlias.

LLVMAliasGetAliasee(Alias)

Retrieve the target value of an alias.

LLVMAliasSetAliasee(Alias, Aliasee)

Set the target value of an alias.

LLVMDeleteFunction(Fn)

Remove a function from its containing module and deletes it.

LLVMHasPersonalityFn(Fn)

Check whether the given function has a personality function.

LLVMGetPersonalityFn(Fn)

Obtain the personality function attached to the function.

LLVMSetPersonalityFn(Fn, PersonalityFn)

Set the personality function attached to the function.

LLVMLookupIntrinsicID(Name, NameLen)

Obtain the intrinsic ID number which matches the given function name.

LLVMGetIntrinsicID(Fn)

Obtain the ID number from a function instance.

LLVMGetIntrinsicDeclaration(Mod, ID, OverloadTypes, ...)

Get or insert the declaration of an intrinsic.

LLVMIntrinsicGetType(Ctx, ID, OverloadTypes, OverloadCount)

Retrieves the type of an intrinsic.

LLVMIntrinsicGetName(ID, NameLength)

Retrieves the name of an intrinsic.

LLVMIntrinsicCopyOverloadedName(ID, OverloadTypes, ...)

Deprecated: Use LLVMIntrinsicCopyOverloadedName2 instead.

LLVMIntrinsicCopyOverloadedName2(Mod, ID, ...)

Copies the name of an overloaded intrinsic identified by a given list of

LLVMIntrinsicIsOverloaded(ID)

Obtain if the intrinsic identified by the given ID is overloaded.

LLVMGetFunctionCallConv(Fn)

Obtain the calling function of a function.

LLVMSetFunctionCallConv(Fn, CC)

Set the calling convention of a function.

LLVMGetGC(Fn)

Obtain the name of the garbage collector to use during code

LLVMSetGC(Fn, Name)

Define the garbage collector to use during code generation.

LLVMGetPrefixData(Fn)

Gets the prefix data associated with a function.

LLVMHasPrefixData(Fn)

Check if a given function has prefix data.

LLVMSetPrefixData(Fn, prefixData)

Sets the prefix data for the function.

LLVMGetPrologueData(Fn)

Gets the prologue data associated with a function.

LLVMHasPrologueData(Fn)

Check if a given function has prologue data.

LLVMSetPrologueData(Fn, prologueData)

Sets the prologue data for the function.

LLVMAddAttributeAtIndex(F, Idx, A)

Add an attribute to a function.

LLVMGetAttributeCountAtIndex(F, Idx)

Add an attribute to a function.

LLVMGetAttributesAtIndex(F, Idx, Attrs)

Add an attribute to a function.

LLVMGetEnumAttributeAtIndex(F, Idx, KindID)

Add an attribute to a function.

LLVMGetStringAttributeAtIndex(F, Idx, K, KLen)

Add an attribute to a function.

LLVMRemoveEnumAttributeAtIndex(F, Idx, KindID)

Add an attribute to a function.

LLVMRemoveStringAttributeAtIndex(F, Idx, K, KLen)

Add an attribute to a function.

LLVMAddTargetDependentFunctionAttr(Fn, A, V)

Add a target-dependent attribute to a function

LLVMCountParams(Fn)

Obtain the number of parameters in a function.

LLVMGetParams(Fn, Params)

Obtain the parameters in a function.

LLVMGetParam(Fn, Index)

Obtain the parameter at the specified index.

LLVMGetParamParent(Inst)

Obtain the function to which this argument belongs.

LLVMGetFirstParam(Fn)

Obtain the first parameter to a function.

LLVMGetLastParam(Fn)

Obtain the last parameter to a function.

LLVMGetNextParam(Arg)

Obtain the next parameter to a function.

LLVMGetPreviousParam(Arg)

Obtain the previous parameter to a function.

LLVMSetParamAlignment(Arg, Align)

Set the alignment for a function parameter.

LLVMAddGlobalIFunc(M, Name, NameLen, Ty, AddrSpace, ...)

Add a global indirect function to a module under a specified name.

LLVMGetNamedGlobalIFunc(M, Name, NameLen)

Obtain a GlobalIFunc value from a Module by its name.

LLVMGetFirstGlobalIFunc(M)

Obtain an iterator to the first GlobalIFunc in a Module.

LLVMGetLastGlobalIFunc(M)

Obtain an iterator to the last GlobalIFunc in a Module.

LLVMGetNextGlobalIFunc(IFunc)

Advance a GlobalIFunc iterator to the next GlobalIFunc.

LLVMGetPreviousGlobalIFunc(IFunc)

Decrement a GlobalIFunc iterator to the previous GlobalIFunc.

LLVMGetGlobalIFuncResolver(IFunc)

Retrieves the resolver function associated with this indirect function, or

LLVMSetGlobalIFuncResolver(IFunc, Resolver)

Sets the resolver function associated with this indirect function.

LLVMEraseGlobalIFunc(IFunc)

Remove a global indirect function from its parent module and delete it.

LLVMRemoveGlobalIFunc(IFunc)

Remove a global indirect function from its parent module.

LLVMMDStringInContext2(C, Str, SLen)

Create an MDString value from a given string value.

LLVMMDNodeInContext2(C, MDs, Count)

Create an MDNode value with the given array of operands.

LLVMMetadataAsValue(C, MD)

Obtain a Metadata as a Value.

LLVMValueAsMetadata(Val)

Obtain a Value as a Metadata.

LLVMGetMDString(V, Length)

Obtain the underlying string from a MDString value.

LLVMGetMDNodeNumOperands(V)

Obtain the number of operands from an MDNode value.

LLVMGetMDNodeOperands(V, Dest)

Obtain the given MDNode's operands.

LLVMReplaceMDNodeOperandWith(V, Index, Replacement)

Replace an operand at a specific index in a llvm::MDNode value.

LLVMMDStringInContext(C, Str, SLen)

Deprecated: Use LLVMMDStringInContext2 instead.

LLVMMDString(Str, SLen)

Deprecated: Use LLVMMDStringInContext2 instead.

LLVMMDNodeInContext(C, Vals, Count)

Deprecated: Use LLVMMDNodeInContext2 instead.

LLVMMDNode(Vals, Count)

Deprecated: Use LLVMMDNodeInContext2 instead.

LLVMCreateOperandBundle(Tag, TagLen, Args, NumArgs)

Create a new operand bundle.

LLVMDisposeOperandBundle(Bundle)

Destroy an operand bundle.

LLVMGetOperandBundleTag(Bundle, Len)

Obtain the tag of an operand bundle as a string.

LLVMGetNumOperandBundleArgs(Bundle)

Obtain the number of operands for an operand bundle.

LLVMGetOperandBundleArgAtIndex(Bundle, Index)

Obtain the operand for an operand bundle at the given index.

LLVMBasicBlockAsValue(BB)

Convert a basic block instance to a value type.

LLVMValueIsBasicBlock(Val)

Determine whether an LLVMValueRef is itself a basic block.

LLVMValueAsBasicBlock(Val)

Convert an LLVMValueRef to an LLVMBasicBlockRef instance.

LLVMGetBasicBlockName(BB)

Obtain the string name of a basic block.

LLVMGetBasicBlockParent(BB)

Obtain the function to which a basic block belongs.

LLVMGetBasicBlockTerminator(BB)

Obtain the terminator instruction for a basic block.

LLVMCountBasicBlocks(Fn)

Obtain the number of basic blocks in a function.

LLVMGetBasicBlocks(Fn, BasicBlocks)

Obtain all of the basic blocks in a function.

LLVMGetFirstBasicBlock(Fn)

Obtain the first basic block in a function.

LLVMGetLastBasicBlock(Fn)

Obtain the last basic block in a function.

LLVMGetNextBasicBlock(BB)

Advance a basic block iterator.

LLVMGetPreviousBasicBlock(BB)

Go backwards in a basic block iterator.

LLVMGetEntryBasicBlock(Fn)

Obtain the basic block that corresponds to the entry point of a

LLVMInsertExistingBasicBlockAfterInsertBlock(Builder, BB)

Insert the given basic block after the insertion point of the given builder.

LLVMAppendExistingBasicBlock(Fn, BB)

Append the given basic block to the basic block list of the given function.

LLVMCreateBasicBlockInContext(C, Name)

Create a new basic block without inserting it into a function.

LLVMAppendBasicBlockInContext(C, Fn, Name)

Append a basic block to the end of a function.

LLVMAppendBasicBlock(Fn, Name)

Append a basic block to the end of a function using the global

LLVMInsertBasicBlockInContext(C, BB, Name)

Insert a basic block in a function before another basic block.

LLVMInsertBasicBlock(InsertBeforeBB, Name)

Insert a basic block in a function using the global context.

LLVMDeleteBasicBlock(BB)

Remove a basic block from a function and delete it.

LLVMRemoveBasicBlockFromParent(BB)

Remove a basic block from a function.

LLVMMoveBasicBlockBefore(BB, MovePos)

Move a basic block to before another one.

LLVMMoveBasicBlockAfter(BB, MovePos)

Move a basic block to after another one.

LLVMGetFirstInstruction(BB)

Obtain the first instruction in a basic block.

LLVMGetLastInstruction(BB)

Obtain the last instruction in a basic block.

LLVMHasMetadata(Val)

Determine whether an instruction has any metadata attached.

LLVMGetMetadata(Val, KindID)

Return metadata associated with an instruction value.

LLVMSetMetadata(Val, KindID, Node)

Set metadata associated with an instruction value.

LLVMInstructionGetAllMetadataOtherThanDebugLoc(Instr, ...)

Returns the metadata associated with an instruction value, but filters out

LLVMGetInstructionParent(Inst)

Obtain the basic block to which an instruction belongs.

LLVMGetNextInstruction(Inst)

Obtain the instruction that occurs after the one specified.

LLVMGetPreviousInstruction(Inst)

Obtain the instruction that occurred before this one.

LLVMInstructionRemoveFromParent(Inst)

Remove an instruction.

LLVMInstructionEraseFromParent(Inst)

Remove and delete an instruction.

LLVMDeleteInstruction(Inst)

Delete an instruction.

LLVMGetInstructionOpcode(Inst)

Obtain the code opcode for an individual instruction.

LLVMGetICmpPredicate(Inst)

Obtain the predicate of an instruction.

LLVMGetICmpSameSign(Inst)

Get whether or not an icmp instruction has the samesign flag.

LLVMSetICmpSameSign(Inst, SameSign)

Set the samesign flag on an icmp instruction.

LLVMGetFCmpPredicate(Inst)

Obtain the float predicate of an instruction.

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

LLVMIsATerminatorInst(Inst)

Determine whether an instruction is a terminator.

LLVMGetFirstDbgRecord(Inst)

Obtain the first debug record attached to an instruction.

LLVMGetLastDbgRecord(Inst)

Obtain the last debug record attached to an instruction.

LLVMGetNextDbgRecord(DbgRecord)

Obtain the next DbgRecord in the sequence or NULL if there are no more.

LLVMGetPreviousDbgRecord(DbgRecord)

Obtain the previous DbgRecord in the sequence or NULL if there are no more.

LLVMDbgRecordGetDebugLoc(Rec)

Get the debug location attached to the debug record.

LLVMDbgRecordGetKind(Rec)

Get the debug location attached to the debug record.

LLVMDbgVariableRecordGetValue(Rec, OpIdx)

Get the value of the DbgVariableRecord.

LLVMDbgVariableRecordGetVariable(Rec)

Get the debug info variable of the DbgVariableRecord.

LLVMDbgVariableRecordGetExpression(Rec)

Get the debug info expression of the DbgVariableRecord.

LLVMGetNumArgOperands(Instr)

Obtain the argument count for a call instruction.

LLVMSetInstructionCallConv(Instr, CC)

Set the calling convention for a call instruction.

LLVMGetInstructionCallConv(Instr)

Obtain the calling convention for a call instruction.

LLVMSetInstrParamAlignment(Instr, Idx, Align)

Obtain the calling convention for a call instruction.

LLVMAddCallSiteAttribute(C, Idx, A)

Obtain the calling convention for a call instruction.

LLVMGetCallSiteAttributeCount(C, Idx)

Obtain the calling convention for a call instruction.

LLVMGetCallSiteAttributes(C, Idx, Attrs)

Obtain the calling convention for a call instruction.

LLVMGetCallSiteEnumAttribute(C, Idx, KindID)

Obtain the calling convention for a call instruction.

LLVMGetCallSiteStringAttribute(C, Idx, K, KLen)

Obtain the calling convention for a call instruction.

LLVMRemoveCallSiteEnumAttribute(C, Idx, KindID)

Obtain the calling convention for a call instruction.

LLVMRemoveCallSiteStringAttribute(C, Idx, K, KLen)

Obtain the calling convention for a call instruction.

LLVMGetCalledFunctionType(C)

Obtain the function type called by this instruction.

LLVMGetCalledValue(Instr)

Obtain the pointer to the function invoked by this instruction.

LLVMGetNumOperandBundles(C)

Obtain the number of operand bundles attached to this instruction.

LLVMGetOperandBundleAtIndex(C, Index)

Obtain the operand bundle attached to this instruction at the given index.

LLVMIsTailCall(CallInst)

Obtain whether a call instruction is a tail call.

LLVMSetTailCall(CallInst, IsTailCall)

Set whether a call instruction is a tail call.

LLVMGetTailCallKind(CallInst)

Obtain a tail call kind of the call instruction.

LLVMSetTailCallKind(CallInst, kind)

Set the call kind of the call instruction.

LLVMGetNormalDest(InvokeInst)

Return the normal destination basic block.

LLVMGetUnwindDest(InvokeInst)

Return the unwind destination basic block.

LLVMSetNormalDest(InvokeInst, B)

Set the normal destination basic block.

LLVMSetUnwindDest(InvokeInst, B)

Set the unwind destination basic block.

LLVMGetCallBrDefaultDest(CallBr)

Get the default destination of a CallBr instruction.

LLVMGetCallBrNumIndirectDests(CallBr)

Get the number of indirect destinations of a CallBr instruction.

LLVMGetCallBrIndirectDest(CallBr, Idx)

Get the indirect destination of a CallBr instruction at the given index.

LLVMGetNumSuccessors(Term)

Return the number of successors that this terminator has.

LLVMGetSuccessor(Term, i)

Return the specified successor.

LLVMSetSuccessor(Term, i, block)

Update the specified successor to point at the provided block.

LLVMIsConditional(Branch)

Return if an instruction is a conditional branch.

LLVMGetCondition(Branch)

Return the condition of a branch instruction.

LLVMSetCondition(Branch, Cond)

Set the condition of a branch instruction.

LLVMGetSwitchDefaultDest(SwitchInstr)

Obtain the default destination basic block of a switch instruction.

LLVMGetSwitchCaseValue(SwitchInstr, i)

Obtain the case value for a successor of a switch instruction.

LLVMSetSwitchCaseValue(SwitchInstr, i, CaseValue)

Set the case value for a successor of a switch instruction.

LLVMGetAllocatedType(Alloca)

Obtain the type that is being allocated by the alloca instruction.

LLVMIsInBounds(GEP)

Check whether the given GEP operator is inbounds.

LLVMSetIsInBounds(GEP, InBounds)

Set the given GEP instruction to be inbounds or not.

LLVMGetGEPSourceElementType(GEP)

Get the source element type of the given GEP operator.

LLVMGEPGetNoWrapFlags(GEP)

Get the no-wrap related flags for the given GEP instruction.

LLVMGEPSetNoWrapFlags(GEP, NoWrapFlags)

Set the no-wrap related flags for the given GEP instruction.

LLVMAddIncoming(PhiNode, IncomingValues, ...)

Add an incoming value to the end of a PHI list.

LLVMCountIncoming(PhiNode)

Obtain the number of incoming basic blocks to a PHI node.

LLVMGetIncomingValue(PhiNode, Index)

Obtain an incoming value to a PHI node as an LLVMValueRef.

LLVMGetIncomingBlock(PhiNode, Index)

Obtain an incoming value to a PHI node as an LLVMBasicBlockRef.

LLVMGetNumIndices(Inst)

Obtain the number of indices.

LLVMGetIndices(Inst)

Obtain the indices as an array.

LLVMCreateBuilderInContext(C)

An instruction builder represents a point within a basic block and is

LLVMCreateBuilder()

(No short description, might be part of a group.)

LLVMPositionBuilder(Builder, Block, Instr)

Set the builder position before Instr but after any attached debug records,

LLVMPositionBuilderBeforeDbgRecords(Builder, Block, Inst)

Set the builder position before Instr and any attached debug records,

LLVMPositionBuilderBefore(Builder, Instr)

Set the builder position before Instr but after any attached debug records.

LLVMPositionBuilderBeforeInstrAndDbgRecords(Builder, Instr)

Set the builder position before Instr and any attached debug records.

LLVMPositionBuilderAtEnd(Builder, Block)

Set the builder position before Instr and any attached debug records.

LLVMGetInsertBlock(Builder)

Set the builder position before Instr and any attached debug records.

LLVMClearInsertionPosition(Builder)

Set the builder position before Instr and any attached debug records.

LLVMInsertIntoBuilder(Builder, Instr)

Set the builder position before Instr and any attached debug records.

LLVMInsertIntoBuilderWithName(Builder, Instr, Name)

Set the builder position before Instr and any attached debug records.

LLVMDisposeBuilder(Builder)

Set the builder position before Instr and any attached debug records.

LLVMGetCurrentDebugLocation2(Builder)

Get location information used by debugging information.

LLVMSetCurrentDebugLocation2(Builder, Loc)

Set location information used by debugging information.

LLVMSetInstDebugLocation(Builder, Inst)

Attempts to set the debug location for the given instruction using the

LLVMAddMetadataToInst(Builder, Inst)

Adds the metadata registered with the given builder to the given instruction.

LLVMBuilderGetDefaultFPMathTag(Builder)

Get the dafult floating-point math metadata for a given builder.

LLVMBuilderSetDefaultFPMathTag(Builder, FPMathTag)

Set the default floating-point math metadata for the given builder.

LLVMGetBuilderContext(Builder)

Obtain the context to which this builder is associated.

LLVMSetCurrentDebugLocation(Builder, L)

Deprecated: Passing the NULL location will crash.

LLVMGetCurrentDebugLocation(Builder)

Deprecated: Returning the NULL location will crash.

LLVMBuildRetVoid(arg0)

Terminators

LLVMBuildRet(arg0, V)

Terminators

LLVMBuildAggregateRet(arg0, RetVals, N)

Terminators

LLVMBuildBr(arg0, Dest)

Terminators

LLVMBuildCondBr(arg0, If, Then, Else)

Terminators

LLVMBuildSwitch(arg0, V, Else, NumCases)

Terminators

LLVMBuildIndirectBr(B, Addr, NumDests)

Terminators

LLVMBuildCallBr(B, Ty, Fn, DefaultDest, IndirectDests, ...)

Terminators

LLVMBuildInvoke2(arg0, Ty, Fn, Args, NumArgs, Then, ...)

Terminators

LLVMBuildInvokeWithOperandBundles(arg0, Ty, Fn, Args, ...)

Terminators

LLVMBuildUnreachable(arg0)

Terminators

LLVMBuildResume(B, Exn)

Exception Handling

LLVMBuildLandingPad(B, Ty, PersFn, NumClauses, Name)

Exception Handling

LLVMBuildCleanupRet(B, CatchPad, BB)

Exception Handling

LLVMBuildCatchRet(B, CatchPad, BB)

Exception Handling

LLVMBuildCatchPad(B, ParentPad, Args, NumArgs, Name)

Exception Handling

LLVMBuildCleanupPad(B, ParentPad, Args, NumArgs, Name)

Exception Handling

LLVMBuildCatchSwitch(B, ParentPad, UnwindBB, ...)

Exception Handling

LLVMAddCase(Switch, OnVal, Dest)

Add a case to the switch instruction

LLVMAddDestination(IndirectBr, Dest)

Add a destination to the indirectbr instruction

LLVMGetNumClauses(LandingPad)

Get the number of clauses on the landingpad instruction

LLVMGetClause(LandingPad, Idx)

Get the value of the clause at index Idx on the landingpad instruction

LLVMAddClause(LandingPad, ClauseVal)

Add a catch or filter clause to the landingpad instruction

LLVMIsCleanup(LandingPad)

Get the 'cleanup' flag in the landingpad instruction

LLVMSetCleanup(LandingPad, Val)

Set the 'cleanup' flag in the landingpad instruction

LLVMAddHandler(CatchSwitch, Dest)

Add a destination to the catchswitch instruction

LLVMGetNumHandlers(CatchSwitch)

Get the number of handlers on the catchswitch instruction

LLVMGetHandlers(CatchSwitch, Handlers)

Obtain the basic blocks acting as handlers for a catchswitch instruction.

LLVMGetArgOperand(Funclet, i)

Get the number of funcletpad arguments.

LLVMSetArgOperand(Funclet, i, value)

Set a funcletpad argument at the given index.

LLVMGetParentCatchSwitch(CatchPad)

Get the parent catchswitch instruction of a catchpad instruction.

LLVMSetParentCatchSwitch(CatchPad, CatchSwitch)

Set the parent catchswitch instruction of a catchpad instruction.

LLVMBuildAdd(arg0, LHS, RHS, Name)

Arithmetic

LLVMBuildNSWAdd(arg0, LHS, RHS, Name)

Arithmetic

LLVMBuildNUWAdd(arg0, LHS, RHS, Name)

Arithmetic

LLVMBuildFAdd(arg0, LHS, RHS, Name)

Arithmetic

LLVMBuildSub(arg0, LHS, RHS, Name)

Arithmetic

LLVMBuildNSWSub(arg0, LHS, RHS, Name)

Arithmetic

LLVMBuildNUWSub(arg0, LHS, RHS, Name)

Arithmetic

LLVMBuildFSub(arg0, LHS, RHS, Name)

Arithmetic

LLVMBuildMul(arg0, LHS, RHS, Name)

Arithmetic

LLVMBuildNSWMul(arg0, LHS, RHS, Name)

Arithmetic

LLVMBuildNUWMul(arg0, LHS, RHS, Name)

Arithmetic

LLVMBuildFMul(arg0, LHS, RHS, Name)

Arithmetic

LLVMBuildUDiv(arg0, LHS, RHS, Name)

Arithmetic

LLVMBuildExactUDiv(arg0, LHS, RHS, Name)

Arithmetic

LLVMBuildSDiv(arg0, LHS, RHS, Name)

Arithmetic

LLVMBuildExactSDiv(arg0, LHS, RHS, Name)

Arithmetic

LLVMBuildFDiv(arg0, LHS, RHS, Name)

Arithmetic

LLVMBuildURem(arg0, LHS, RHS, Name)

Arithmetic

LLVMBuildSRem(arg0, LHS, RHS, Name)

Arithmetic

LLVMBuildFRem(arg0, LHS, RHS, Name)

Arithmetic

LLVMBuildShl(arg0, LHS, RHS, Name)

Arithmetic

LLVMBuildLShr(arg0, LHS, RHS, Name)

Arithmetic

LLVMBuildAShr(arg0, LHS, RHS, Name)

Arithmetic

LLVMBuildAnd(arg0, LHS, RHS, Name)

Arithmetic

LLVMBuildOr(arg0, LHS, RHS, Name)

Arithmetic

LLVMBuildXor(arg0, LHS, RHS, Name)

Arithmetic

LLVMBuildBinOp(B, Op, LHS, RHS, Name)

Arithmetic

LLVMBuildNeg(arg0, V, Name)

Arithmetic

LLVMBuildNSWNeg(B, V, Name)

Arithmetic

LLVMBuildNUWNeg(B, V, Name)

(No short description, might be part of a group.)

LLVMBuildFNeg(arg0, V, Name)

Arithmetic

LLVMBuildNot(arg0, V, Name)

Arithmetic

LLVMGetNUW(ArithInst)

Arithmetic

LLVMSetNUW(ArithInst, HasNUW)

Arithmetic

LLVMGetNSW(ArithInst)

Arithmetic

LLVMSetNSW(ArithInst, HasNSW)

Arithmetic

LLVMGetExact(DivOrShrInst)

Arithmetic

LLVMSetExact(DivOrShrInst, IsExact)

Arithmetic

LLVMGetNNeg(NonNegInst)

Gets if the instruction has the non-negative flag set.

LLVMSetNNeg(NonNegInst, IsNonNeg)

Sets the non-negative flag for the instruction.

LLVMGetFastMathFlags(FPMathInst)

Get the flags for which fast-math-style optimizations are allowed for this

LLVMSetFastMathFlags(FPMathInst, FMF)

Sets the flags for which fast-math-style optimizations are allowed for this

LLVMCanValueUseFastMathFlags(Inst)

Check if a given value can potentially have fast math flags.

LLVMGetIsDisjoint(Inst)

Gets whether the instruction has the disjoint flag set.

LLVMSetIsDisjoint(Inst, IsDisjoint)

Sets the disjoint flag for the instruction.

LLVMBuildMalloc(arg0, Ty, Name)

Memory

LLVMBuildArrayMalloc(arg0, Ty, Val, Name)

Memory

LLVMBuildMemSet(B, Ptr, Val, Len, Align)

Creates and inserts a memset to the specified pointer and the

LLVMBuildMemCpy(B, Dst, DstAlign, Src, SrcAlign, Size)

Creates and inserts a memcpy between the specified pointers.

LLVMBuildMemMove(B, Dst, DstAlign, Src, SrcAlign, Size)

Creates and inserts a memmove between the specified pointers.

LLVMBuildAlloca(arg0, Ty, Name)

Creates and inserts a memmove between the specified pointers.

LLVMBuildArrayAlloca(arg0, Ty, Val, Name)

Creates and inserts a memmove between the specified pointers.

LLVMBuildFree(arg0, PointerVal)

Creates and inserts a memmove between the specified pointers.

LLVMBuildLoad2(arg0, Ty, PointerVal, Name)

Creates and inserts a memmove between the specified pointers.

LLVMBuildStore(arg0, Val, Ptr)

Creates and inserts a memmove between the specified pointers.

LLVMBuildGEP2(B, Ty, Pointer, Indices, NumIndices, Name)

Creates and inserts a memmove between the specified pointers.

LLVMBuildInBoundsGEP2(B, Ty, Pointer, Indices, ...)

Creates and inserts a memmove between the specified pointers.

LLVMBuildGEPWithNoWrapFlags(B, Ty, Pointer, Indices, ...)

Creates a GetElementPtr instruction.

LLVMBuildStructGEP2(B, Ty, Pointer, Idx, Name)

Creates a GetElementPtr instruction.

LLVMBuildGlobalString(B, Str, Name)

Creates a GetElementPtr instruction.

LLVMBuildGlobalStringPtr(B, Str, Name)

Deprecated: Use LLVMBuildGlobalString instead, which has identical behavior.

LLVMGetVolatile(Inst)

Deprecated: Use LLVMBuildGlobalString instead, which has identical behavior.

LLVMSetVolatile(MemoryAccessInst, IsVolatile)

Deprecated: Use LLVMBuildGlobalString instead, which has identical behavior.

LLVMGetWeak(CmpXchgInst)

Deprecated: Use LLVMBuildGlobalString instead, which has identical behavior.

LLVMSetWeak(CmpXchgInst, IsWeak)

Deprecated: Use LLVMBuildGlobalString instead, which has identical behavior.

LLVMGetOrdering(MemoryAccessInst)

Deprecated: Use LLVMBuildGlobalString instead, which has identical behavior.

LLVMSetOrdering(MemoryAccessInst, Ordering)

Deprecated: Use LLVMBuildGlobalString instead, which has identical behavior.

LLVMGetAtomicRMWBinOp(AtomicRMWInst)

Deprecated: Use LLVMBuildGlobalString instead, which has identical behavior.

LLVMSetAtomicRMWBinOp(AtomicRMWInst, BinOp)

Deprecated: Use LLVMBuildGlobalString instead, which has identical behavior.

LLVMBuildTrunc(arg0, Val, DestTy, Name)

Casts

LLVMBuildZExt(arg0, Val, DestTy, Name)

Casts

LLVMBuildSExt(arg0, Val, DestTy, Name)

Casts

LLVMBuildFPToUI(arg0, Val, DestTy, Name)

Casts

LLVMBuildFPToSI(arg0, Val, DestTy, Name)

Casts

LLVMBuildUIToFP(arg0, Val, DestTy, Name)

Casts

LLVMBuildSIToFP(arg0, Val, DestTy, Name)

Casts

LLVMBuildFPTrunc(arg0, Val, DestTy, Name)

Casts

LLVMBuildFPExt(arg0, Val, DestTy, Name)

Casts

LLVMBuildPtrToInt(arg0, Val, DestTy, Name)

Casts

LLVMBuildIntToPtr(arg0, Val, DestTy, Name)

Casts

LLVMBuildBitCast(arg0, Val, DestTy, Name)

Casts

LLVMBuildAddrSpaceCast(arg0, Val, DestTy, Name)

Casts

LLVMBuildZExtOrBitCast(arg0, Val, DestTy, Name)

Casts

LLVMBuildSExtOrBitCast(arg0, Val, DestTy, Name)

Casts

LLVMBuildTruncOrBitCast(arg0, Val, DestTy, Name)

Casts

LLVMBuildCast(B, Op, Val, DestTy, Name)

Casts

LLVMBuildPointerCast(arg0, Val, DestTy, Name)

Casts

LLVMBuildIntCast2(arg0, Val, DestTy, IsSigned, Name)

Casts

LLVMBuildFPCast(arg0, Val, DestTy, Name)

Casts

LLVMBuildIntCast(arg0, Val, DestTy, Name)

Deprecated: This cast is always signed. Use LLVMBuildIntCast2 instead.

LLVMGetCastOpcode(Src, SrcIsSigned, DestTy, DestIsSigned)

Signed cast!

LLVMBuildICmp(arg0, Op, LHS, RHS, Name)

Comparisons

LLVMBuildFCmp(arg0, Op, LHS, RHS, Name)

Comparisons

LLVMBuildPhi(arg0, Ty, Name)

Miscellaneous instructions

LLVMBuildCall2(arg0, arg1, Fn, Args, NumArgs, Name)

Miscellaneous instructions

LLVMBuildCallWithOperandBundles(arg0, arg1, Fn, Args, ...)

Miscellaneous instructions

LLVMBuildSelect(arg0, If, Then, Else, Name)

Miscellaneous instructions

LLVMBuildVAArg(arg0, List, Ty, Name)

Miscellaneous instructions

LLVMBuildExtractElement(arg0, VecVal, Index, Name)

Miscellaneous instructions

LLVMBuildInsertElement(arg0, VecVal, EltVal, Index, Name)

Miscellaneous instructions

LLVMBuildShuffleVector(arg0, V1, V2, Mask, Name)

Miscellaneous instructions

LLVMBuildExtractValue(arg0, AggVal, Index, Name)

Miscellaneous instructions

LLVMBuildInsertValue(arg0, AggVal, EltVal, Index, Name)

Miscellaneous instructions

LLVMBuildFreeze(arg0, Val, Name)

Miscellaneous instructions

LLVMBuildIsNull(arg0, Val, Name)

Miscellaneous instructions

LLVMBuildIsNotNull(arg0, Val, Name)

Miscellaneous instructions

LLVMBuildPtrDiff2(arg0, ElemTy, LHS, RHS, Name)

Miscellaneous instructions

LLVMBuildFence(B, ordering, singleThread, Name)

Miscellaneous instructions

LLVMBuildFenceSyncScope(B, ordering, SSID, Name)

Miscellaneous instructions

LLVMBuildAtomicRMW(B, op, PTR, Val, ordering, singleThread)

Miscellaneous instructions

LLVMBuildAtomicRMWSyncScope(B, op, PTR, Val, ordering, ...)

Miscellaneous instructions

LLVMBuildAtomicCmpXchg(B, Ptr, Cmp, New, ...)

Miscellaneous instructions

LLVMBuildAtomicCmpXchgSyncScope(B, Ptr, Cmp, New, ...)

Miscellaneous instructions

LLVMGetNumMaskElements(ShuffleVectorInst)

Get the number of elements in the mask of a ShuffleVector instruction.

LLVMGetUndefMaskElem()

a constant that specifies that the result of a ShuffleVectorInst

LLVMGetMaskValue(ShuffleVectorInst, Elt)

Get the mask value at position Elt in the mask of a ShuffleVector

LLVMIsAtomicSingleThread(AtomicInst)

Get the mask value at position Elt in the mask of a ShuffleVector

LLVMSetAtomicSingleThread(AtomicInst, SingleThread)

Get the mask value at position Elt in the mask of a ShuffleVector

LLVMIsAtomic(Inst)

Returns whether an instruction is an atomic instruction, e.g., atomicrmw,

LLVMGetAtomicSyncScopeID(AtomicInst)

Returns the synchronization scope ID of an atomic instruction.

LLVMSetAtomicSyncScopeID(AtomicInst, SSID)

Sets the synchronization scope ID of an atomic instruction.

LLVMGetCmpXchgSuccessOrdering(CmpXchgInst)

Sets the synchronization scope ID of an atomic instruction.

LLVMSetCmpXchgSuccessOrdering(CmpXchgInst, Ordering)

Sets the synchronization scope ID of an atomic instruction.

LLVMGetCmpXchgFailureOrdering(CmpXchgInst)

Sets the synchronization scope ID of an atomic instruction.

LLVMSetCmpXchgFailureOrdering(CmpXchgInst, Ordering)

Sets the synchronization scope ID of an atomic instruction.

LLVMCreateModuleProviderForExistingModule(M)

Changes the type of M so it can be passed to FunctionPassManagers and the

LLVMDisposeModuleProvider(M)

Destroys the module M.

LLVMCreateMemoryBufferWithContentsOfFile(Path)

(No short description, might be part of a group.)

LLVMCreateMemoryBufferWithSTDIN()

(No short description, might be part of a group.)

LLVMCreateMemoryBufferWithMemoryRange(InputData, ...)

(No short description, might be part of a group.)

LLVMCreateMemoryBufferWithMemoryRangeCopy(InputData, ...)

(No short description, might be part of a group.)

LLVMGetBufferStart(MemBuf)

(No short description, might be part of a group.)

LLVMGetBufferSize(MemBuf)

(No short description, might be part of a group.)

LLVMDisposeMemoryBuffer(MemBuf)

(No short description, might be part of a group.)

LLVMCreatePassManager()

Constructs a new whole-module pass pipeline.

LLVMCreateFunctionPassManagerForModule(M)

Constructs a new function-by-function pass pipeline over the module

LLVMCreateFunctionPassManager(MP)

Deprecated: Use LLVMCreateFunctionPassManagerForModule instead.

LLVMRunPassManager(PM, M)

Initializes, executes on the provided module, and finalizes all of the

LLVMInitializeFunctionPassManager(FPM)

Initializes all of the function passes scheduled in the function pass

LLVMRunFunctionPassManager(FPM, F)

Executes all of the function passes scheduled in the function pass manager

LLVMFinalizeFunctionPassManager(FPM)

Finalizes all of the function passes scheduled in the function pass

LLVMDisposePassManager(PM)

Frees the memory of a pass pipeline.

LLVMStartMultithreaded()

Deprecated: Multi-threading can only be enabled/disabled with the compile

LLVMStopMultithreaded()

Deprecated: Multi-threading can only be enabled/disabled with the compile

LLVMIsMultithreaded()

Check whether LLVM is executing in thread-safe mode or not.

Module Contents#

rocm.bindings.llvm.c.core.has_symbol(name: str | bytes | bytearray) → bool#
class rocm.bindings.llvm.c.core.LLVMOpcode#

Bases: enum.IntEnum

External users depend on the following values being stable.

It is not safe to reorder them.

LLVMRet: int#
LLVMUncondBr: int#
LLVMCondBr: int#
LLVMSwitch: int#
LLVMIndirectBr: int#
LLVMInvoke: int#
LLVMUnreachable: int#
LLVMCallBr: int#
LLVMFNeg: int#
LLVMAdd: int#
LLVMFAdd: int#
LLVMSub: int#
LLVMFSub: int#
LLVMMul: int#
LLVMFMul: int#
LLVMUDiv: int#
LLVMSDiv: int#
LLVMFDiv: int#
LLVMURem: int#
LLVMSRem: int#
LLVMFRem: int#
LLVMShl: int#
LLVMLShr: int#
LLVMAShr: int#
LLVMAnd: int#
LLVMOr: int#
LLVMXor: int#
LLVMAlloca: int#
LLVMLoad: int#
LLVMStore: int#
LLVMGetElementPtr: int#
LLVMTrunc: int#
LLVMZExt: int#
LLVMSExt: int#
LLVMFPToUI: int#
LLVMFPToSI: int#
LLVMUIToFP: int#
LLVMSIToFP: int#
LLVMFPTrunc: int#
LLVMFPExt: int#
LLVMPtrToInt: int#
LLVMPtrToAddr: int#
LLVMIntToPtr: int#
LLVMBitCast: int#
LLVMAddrSpaceCast: int#
LLVMICmp: int#
LLVMFCmp: int#
LLVMPHI: int#
LLVMCall: int#
LLVMSelect: int#
LLVMUserOp1: int#
LLVMUserOp2: int#
LLVMVAArg: int#
LLVMExtractElement: int#
LLVMInsertElement: int#
LLVMShuffleVector: int#
LLVMExtractValue: int#
LLVMInsertValue: int#
LLVMFreeze: int#
LLVMFence: int#
LLVMAtomicCmpXchg: int#
LLVMAtomicRMW: int#
LLVMResume: int#
LLVMLandingPad: int#
LLVMCleanupRet: int#
LLVMCatchRet: int#
LLVMCatchPad: int#
LLVMCleanupPad: int#
LLVMCatchSwitch: int#
class rocm.bindings.llvm.c.core.LLVMTypeKind#

Bases: enum.IntEnum

(No short description)

LLVMVoidTypeKind: int#
LLVMHalfTypeKind: int#
LLVMFloatTypeKind: int#
LLVMDoubleTypeKind: int#
LLVMX86_FP80TypeKind: int#
LLVMFP128TypeKind: int#
LLVMPPC_FP128TypeKind: int#
LLVMLabelTypeKind: int#
LLVMIntegerTypeKind: int#
LLVMFunctionTypeKind: int#
LLVMStructTypeKind: int#
LLVMArrayTypeKind: int#
LLVMPointerTypeKind: int#
LLVMVectorTypeKind: int#
LLVMMetadataTypeKind: int#
LLVMTokenTypeKind: int#
LLVMScalableVectorTypeKind: int#
LLVMBFloatTypeKind: int#
LLVMX86_AMXTypeKind: int#
LLVMTargetExtTypeKind: int#
LLVMByteTypeKind: int#
class rocm.bindings.llvm.c.core.LLVMLinkage#

Bases: enum.IntEnum

(No short description)

LLVMExternalLinkage: int#
LLVMAvailableExternallyLinkage: int#
LLVMLinkOnceAnyLinkage: int#
LLVMLinkOnceODRLinkage: int#
LLVMLinkOnceODRAutoHideLinkage: int#
LLVMWeakAnyLinkage: int#
LLVMWeakODRLinkage: int#
LLVMAppendingLinkage: int#
LLVMInternalLinkage: int#
LLVMPrivateLinkage: int#
LLVMDLLImportLinkage: int#
LLVMDLLExportLinkage: int#
LLVMExternalWeakLinkage: int#
LLVMGhostLinkage: int#
LLVMCommonLinkage: int#
LLVMLinkerPrivateLinkage: int#
LLVMLinkerPrivateWeakLinkage: int#
class rocm.bindings.llvm.c.core.LLVMVisibility#

Bases: enum.IntEnum

(No short description)

LLVMDefaultVisibility: int#
LLVMHiddenVisibility: int#
LLVMProtectedVisibility: int#
class rocm.bindings.llvm.c.core.LLVMUnnamedAddr#

Bases: enum.IntEnum

(No short description)

LLVMNoUnnamedAddr: int#
LLVMLocalUnnamedAddr: int#
LLVMGlobalUnnamedAddr: int#
class rocm.bindings.llvm.c.core.LLVMDLLStorageClass#

Bases: enum.IntEnum

(No short description)

LLVMDefaultStorageClass: int#
LLVMDLLImportStorageClass: int#
LLVMDLLExportStorageClass: int#
class rocm.bindings.llvm.c.core.LLVMCallConv#

Bases: enum.IntEnum

(No short description)

LLVMCCallConv: int#
LLVMFastCallConv: int#
LLVMColdCallConv: int#
LLVMGHCCallConv: int#
LLVMHiPECallConv: int#
LLVMAnyRegCallConv: int#
LLVMPreserveMostCallConv: int#
LLVMPreserveAllCallConv: int#
LLVMSwiftCallConv: int#
LLVMCXXFASTTLSCallConv: int#
LLVMX86StdcallCallConv: int#
LLVMX86FastcallCallConv: int#
LLVMARMAPCSCallConv: int#
LLVMARMAAPCSCallConv: int#
LLVMARMAAPCSVFPCallConv: int#
LLVMMSP430INTRCallConv: int#
LLVMX86ThisCallCallConv: int#
LLVMPTXKernelCallConv: int#
LLVMPTXDeviceCallConv: int#
LLVMSPIRFUNCCallConv: int#
LLVMSPIRKERNELCallConv: int#
LLVMIntelOCLBICallConv: int#
LLVMX8664SysVCallConv: int#
LLVMWin64CallConv: int#
LLVMX86VectorCallCallConv: int#
LLVMHHVMCallConv: int#
LLVMHHVMCCallConv: int#
LLVMX86INTRCallConv: int#
LLVMAVRINTRCallConv: int#
LLVMAVRSIGNALCallConv: int#
LLVMAVRBUILTINCallConv: int#
LLVMAMDGPUVSCallConv: int#
LLVMAMDGPUGSCallConv: int#
LLVMAMDGPUPSCallConv: int#
LLVMAMDGPUCSCallConv: int#
LLVMAMDGPUKERNELCallConv: int#
LLVMX86RegCallCallConv: int#
LLVMAMDGPUHSCallConv: int#
LLVMMSP430BUILTINCallConv: int#
LLVMAMDGPULSCallConv: int#
LLVMAMDGPUESCallConv: int#
class rocm.bindings.llvm.c.core.LLVMValueKind#

Bases: enum.IntEnum

(No short description)

LLVMArgumentValueKind: int#
LLVMBasicBlockValueKind: int#
LLVMMemoryUseValueKind: int#
LLVMMemoryDefValueKind: int#
LLVMMemoryPhiValueKind: int#
LLVMFunctionValueKind: int#
LLVMGlobalAliasValueKind: int#
LLVMGlobalIFuncValueKind: int#
LLVMGlobalVariableValueKind: int#
LLVMBlockAddressValueKind: int#
LLVMConstantExprValueKind: int#
LLVMConstantArrayValueKind: int#
LLVMConstantStructValueKind: int#
LLVMConstantVectorValueKind: int#
LLVMUndefValueValueKind: int#
LLVMConstantAggregateZeroValueKind: int#
LLVMConstantDataArrayValueKind: int#
LLVMConstantDataVectorValueKind: int#
LLVMConstantIntValueKind: int#
LLVMConstantByteValueKind: int#
LLVMConstantFPValueKind: int#
LLVMConstantPointerNullValueKind: int#
LLVMConstantTokenNoneValueKind: int#
LLVMMetadataAsValueValueKind: int#
LLVMInlineAsmValueKind: int#
LLVMInstructionValueKind: int#
LLVMPoisonValueValueKind: int#
LLVMConstantTargetNoneValueKind: int#
LLVMConstantPtrAuthValueKind: int#
class rocm.bindings.llvm.c.core.LLVMIntPredicate#

Bases: enum.IntEnum

(No short description)

LLVMIntEQ: int#
LLVMIntNE: int#
LLVMIntUGT: int#
LLVMIntUGE: int#
LLVMIntULT: int#
LLVMIntULE: int#
LLVMIntSGT: int#
LLVMIntSGE: int#
LLVMIntSLT: int#
LLVMIntSLE: int#
class rocm.bindings.llvm.c.core.LLVMRealPredicate#

Bases: enum.IntEnum

(No short description)

LLVMRealPredicateFalse: int#
LLVMRealOEQ: int#
LLVMRealOGT: int#
LLVMRealOGE: int#
LLVMRealOLT: int#
LLVMRealOLE: int#
LLVMRealONE: int#
LLVMRealORD: int#
LLVMRealUNO: int#
LLVMRealUEQ: int#
LLVMRealUGT: int#
LLVMRealUGE: int#
LLVMRealULT: int#
LLVMRealULE: int#
LLVMRealUNE: int#
LLVMRealPredicateTrue: int#
class rocm.bindings.llvm.c.core.LLVMThreadLocalMode#

Bases: enum.IntEnum

(No short description)

LLVMNotThreadLocal: int#
LLVMGeneralDynamicTLSModel: int#
LLVMLocalDynamicTLSModel: int#
LLVMInitialExecTLSModel: int#
LLVMLocalExecTLSModel: int#
class rocm.bindings.llvm.c.core.LLVMAtomicOrdering#

Bases: enum.IntEnum

(No short description)

LLVMAtomicOrderingNotAtomic: int#
LLVMAtomicOrderingUnordered: int#
LLVMAtomicOrderingMonotonic: int#
LLVMAtomicOrderingAcquire: int#
LLVMAtomicOrderingRelease: int#
LLVMAtomicOrderingAcquireRelease: int#
LLVMAtomicOrderingSequentiallyConsistent: int#
class rocm.bindings.llvm.c.core.LLVMAtomicRMWBinOp#

Bases: enum.IntEnum

(No short description)

LLVMAtomicRMWBinOpXchg: int#
LLVMAtomicRMWBinOpAdd: int#
LLVMAtomicRMWBinOpSub: int#
LLVMAtomicRMWBinOpAnd: int#
LLVMAtomicRMWBinOpNand: int#
LLVMAtomicRMWBinOpOr: int#
LLVMAtomicRMWBinOpXor: int#
LLVMAtomicRMWBinOpMax: int#
LLVMAtomicRMWBinOpMin: int#
LLVMAtomicRMWBinOpUMax: int#
LLVMAtomicRMWBinOpUMin: int#
LLVMAtomicRMWBinOpFAdd: int#
LLVMAtomicRMWBinOpFSub: int#
LLVMAtomicRMWBinOpFMax: int#
LLVMAtomicRMWBinOpFMin: int#
LLVMAtomicRMWBinOpUIncWrap: int#
LLVMAtomicRMWBinOpUDecWrap: int#
LLVMAtomicRMWBinOpUSubCond: int#
LLVMAtomicRMWBinOpUSubSat: int#
LLVMAtomicRMWBinOpFMaximum: int#
LLVMAtomicRMWBinOpFMinimum: int#
LLVMAtomicRMWBinOpFMaximumNum: int#
LLVMAtomicRMWBinOpFMinimumNum: int#
class rocm.bindings.llvm.c.core.LLVMDiagnosticSeverity#

Bases: enum.IntEnum

(No short description)

LLVMDSError: int#
LLVMDSWarning: int#
LLVMDSRemark: int#
LLVMDSNote: int#
class rocm.bindings.llvm.c.core.LLVMInlineAsmDialect#

Bases: enum.IntEnum

(No short description)

LLVMInlineAsmDialectATT: int#
LLVMInlineAsmDialectIntel: int#
class rocm.bindings.llvm.c.core.LLVMModuleFlagBehavior#

Bases: enum.IntEnum

(No short description)

LLVMModuleFlagBehaviorError: int#
LLVMModuleFlagBehaviorWarning: int#
LLVMModuleFlagBehaviorRequire: int#
LLVMModuleFlagBehaviorOverride: int#
LLVMModuleFlagBehaviorAppend: int#
LLVMModuleFlagBehaviorAppendUnique: int#
rocm.bindings.llvm.c.core.LLVMAttributeReturnIndex: int#
rocm.bindings.llvm.c.core.LLVMAttributeFunctionIndex: int#
class rocm.bindings.llvm.c.core.LLVMTailCallKind#

Bases: enum.IntEnum

Tail call kind for LLVMSetTailCallKind and LLVMGetTailCallKind.

Note that ‘musttail’ implies ‘tail’.

See:

CallInst::TailCallKind

LLVMTailCallKindNone: int#
LLVMTailCallKindTail: int#
LLVMTailCallKindMustTail: int#
LLVMTailCallKindNoTail: int#
rocm.bindings.llvm.c.core.LLVMFastMathAllowReassoc: int#
rocm.bindings.llvm.c.core.LLVMFastMathNoNaNs: int#
rocm.bindings.llvm.c.core.LLVMFastMathNoInfs: int#
rocm.bindings.llvm.c.core.LLVMFastMathNoSignedZeros: int#
rocm.bindings.llvm.c.core.LLVMFastMathAllowReciprocal: int#
rocm.bindings.llvm.c.core.LLVMFastMathAllowContract: int#
rocm.bindings.llvm.c.core.LLVMFastMathApproxFunc: int#
rocm.bindings.llvm.c.core.LLVMFastMathNone: int#
rocm.bindings.llvm.c.core.LLVMFastMathAll: int#
rocm.bindings.llvm.c.core.LLVMGEPFlagInBounds: int#
rocm.bindings.llvm.c.core.LLVMGEPFlagNUSW: int#
rocm.bindings.llvm.c.core.LLVMGEPFlagNUW: int#
class rocm.bindings.llvm.c.core.LLVMDbgRecordKind#

Bases: enum.IntEnum

(No short description)

LLVMDbgRecordLabel: int#
LLVMDbgRecordDeclare: int#
LLVMDbgRecordValue: int#
LLVMDbgRecordAssign: int#
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 tuple of size 3 that contains (in that order):

  • Major (int):

    (undocumented)

  • Minor (int):

    (undocumented)

  • Patch (int):

    (undocumented)

C signature

void LLVMGetVersion(unsigned int * Major, unsigned int * Minor, unsigned int * Patch)
rocm.bindings.llvm.c.core.LLVMCreateMessage(Message)#

===– Error handling —————————————————-===

Args:
Message (CStr/object):

(undocumented)

Returns:

bytes: (undocumented)

C signature

char * LLVMCreateMessage(const char * Message)
rocm.bindings.llvm.c.core.LLVMDisposeMessage(Message)#

===– Error handling —————————————————-===

Args:
Message (CStr/object):

(undocumented)

C signature

void LLVMDisposeMessage(char * Message)
class rocm.bindings.llvm.c.core.LLVMDiagnosticHandler(*args, **kwargs)#

Bases: rocm.bindings.util.types.Pointer

Contexts 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 (Pointer/object):

(undocumented)

Handler (LLVMDiagnosticHandler/object):

(undocumented)

DiagnosticContext (Pointer/object):

(undocumented)

C signature

void LLVMContextSetDiagnosticHandler(LLVMContextRef C, LLVMDiagnosticHandler Handler, void * DiagnosticContext)
rocm.bindings.llvm.c.core.LLVMContextGetDiagnosticHandler(C)#

Get the diagnostic handler of this context.

Args:
C (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMDiagnosticHandler LLVMContextGetDiagnosticHandler(LLVMContextRef C)
rocm.bindings.llvm.c.core.LLVMContextGetDiagnosticContext(C)#

Get the diagnostic context of this context.

Args:
C (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

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 (Pointer/object):

(undocumented)

Callback (LLVMYieldCallback/object):

(undocumented)

OpaqueHandle (Pointer/object):

(undocumented)

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:
C (Pointer/object):

(undocumented)

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 (Pointer/object):

(undocumented)

Discard (int):

(undocumented)

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.

Args:
C (Pointer/object):

(undocumented)

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.

See:

DiagnosticInfo::print()

Args:
DI (Pointer/object):

(undocumented)

Returns:

bytes: (undocumented)

C signature

char * LLVMGetDiagInfoDescription(LLVMDiagnosticInfoRef DI)
rocm.bindings.llvm.c.core.LLVMGetDiagInfoSeverity(DI)#

Return an enum LLVMDiagnosticSeverity.

See:

DiagnosticInfo::getSeverity()

Args:
DI (Pointer/object):

(undocumented)

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:
C (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

SLen (int):

(undocumented)

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.)

Args:
Name (CStr/object):

(undocumented)

SLen (int):

(undocumented)

Returns:

int: (undocumented)

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:
C (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

SLen (int):

(undocumented)

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.

Args:
Name (CStr/object):

(undocumented)

SLen (int):

(undocumented)

Returns:

int: (undocumented)

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:
C (Pointer/object):

(undocumented)

KindID (int):

(undocumented)

Val (int):

(undocumented)

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.

Args:
A (Pointer/object):

(undocumented)

Returns:

int: (undocumented)

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.

Args:
A (Pointer/object):

(undocumented)

Returns:

int: (undocumented)

C signature

uint64_t LLVMGetEnumAttributeValue(LLVMAttributeRef A)
rocm.bindings.llvm.c.core.LLVMCreateTypeAttribute(C, KindID, type_ref)#

Create a type attribute

Args:
C (Pointer/object):

(undocumented)

KindID (int):

(undocumented)

type_ref (Pointer/object):

(undocumented)

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.

Args:
A (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

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:
C (Pointer/object):

(undocumented)

KindID (int):

(undocumented)

NumBits (int):

(undocumented)

LowerWords (Pointer/object):

(undocumented)

UpperWords (Pointer/object):

(undocumented)

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.IntEnum

Represent different denormal handling kinds for use with LLVMCreateDenormalFPEnvAttribute.

LLVMDenormalModeKindIEEE: int#
LLVMDenormalModeKindPreserveSign: int#
LLVMDenormalModeKindPositiveZero: int#
LLVMDenormalModeKindDynamic: int#
rocm.bindings.llvm.c.core.LLVMCreateDenormalFPEnvAttribute(C, DefaultModeOutput, DefaultModeInput, FloatModeOutput, FloatModeInput)#

Create a DenormalFPEnv attribute.

DefaultModeOutput is the assumed denormal handling for the outputs of most

floating-point types.

DefaultModeInput is the assumed denormal handling for the inputs of most

floating-point types.

FloatModeOutput is the assumed denormal handling for the outputs of

float. This should always be the same as as DefaultModeOutput for most targets.

FloatModeInput is the assumed denormal handling for the inputs of

float. 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)

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:
C (Pointer/object):

(undocumented)

K (CStr/object):

(undocumented)

KLength (int):

(undocumented)

V (CStr/object):

(undocumented)

VLength (int):

(undocumented)

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)

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)

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.

Args:
A (Pointer/object):

(undocumented)

Returns:

int: (undocumented)

C signature

LLVMBool LLVMIsEnumAttribute(LLVMAttributeRef A)
rocm.bindings.llvm.c.core.LLVMIsStringAttribute(A)#

Check for the different types of attributes.

Args:
A (Pointer/object):

(undocumented)

Returns:

int: (undocumented)

C signature

LLVMBool LLVMIsStringAttribute(LLVMAttributeRef A)
rocm.bindings.llvm.c.core.LLVMIsTypeAttribute(A)#

Check for the different types of attributes.

Args:
A (Pointer/object):

(undocumented)

Returns:

int: (undocumented)

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:
C (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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.

Args:
ModuleID (CStr/object):

(undocumented)

Returns:

None: (undocumented)

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:
ModuleID (CStr/object):

(undocumented)

C (Pointer/object):

(undocumented)

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.

Args:
M (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

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.

Args:
M (Pointer/object):

(undocumented)

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-changes

Returns 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.

Args:
M (Pointer/object):

(undocumented)

Returns:

int: (undocumented)

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-changes

Convert module into desired debug info format.

Args:
M (Pointer/object):

(undocumented)

UseNewFormat (int):

(undocumented)

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.

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:
M (Pointer/object):

The module to set identifier

Ident (CStr/object):

The string to set M’s identifier to

Len (int):

Length of Ident

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

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:
M (Pointer/object):

The module to set the source file name of

Name (CStr/object):

The string to set M’s source file name to

Len (int):

Length of Name

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.

Args:
M (Pointer/object):

(undocumented)

Returns:

bytes: (undocumented)

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.

Args:
M (Pointer/object):

(undocumented)

Returns:

bytes: (undocumented)

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:
M (Pointer/object):

(undocumented)

DataLayoutStr (CStr/object):

(undocumented)

C signature

void LLVMSetDataLayout(LLVMModuleRef M, const char * DataLayoutStr)
rocm.bindings.llvm.c.core.LLVMGetTarget(M)#

Obtain the target triple for a module.

See:

Module::getTargetTriple()

Args:
M (Pointer/object):

(undocumented)

Returns:

bytes: (undocumented)

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:
M (Pointer/object):

(undocumented)

Triple (CStr/object):

(undocumented)

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)

Returns:

None: (undocumented)

C signature

LLVMModuleFlagEntry * LLVMCopyModuleFlagsMetadata(LLVMModuleRef M, size_t * Len)
rocm.bindings.llvm.c.core.LLVMDisposeModuleFlagsMetadata(Entries)#

Destroys module flags metadata entries.

Args:
Entries (Pointer/object):

(undocumented)

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:
Entries (Pointer/object):

(undocumented)

Index (int):

(undocumented)

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)

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:
Entries (Pointer/object):

(undocumented)

Index (int):

(undocumented)

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:
M (Pointer/object):

(undocumented)

Key (CStr/object):

(undocumented)

KeyLen (int):

(undocumented)

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:
M (Pointer/object):

(undocumented)

Behavior (LLVMModuleFlagBehavior):

(undocumented)

Key (CStr/object):

(undocumented)

KeyLen (int):

(undocumented)

Val (Pointer/object):

(undocumented)

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.

See:

Module::dump()

Args:
M (Pointer/object):

(undocumented)

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:
M (Pointer/object):

(undocumented)

Filename (CStr/object):

(undocumented)

ErrorMessage (Pointer/object):

(undocumented)

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.

See:

Module::print()

Args:
M (Pointer/object):

(undocumented)

Returns:

bytes: (undocumented)

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)

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:
M (Pointer/object):

(undocumented)

Asm (CStr/object):

(undocumented)

Len (int):

(undocumented)

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:
M (Pointer/object):

(undocumented)

Asm (CStr/object):

(undocumented)

Len (int):

(undocumented)

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)

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)

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)

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:
InlineAsmVal (Pointer/object):

(undocumented)

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:

LLVMGetInlineAsm

Args:
InlineAsmVal (Pointer/object):

(undocumented)

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

Args:
InlineAsmVal (Pointer/object):

(undocumented)

Returns:

int: (undocumented)

C signature

LLVMBool LLVMGetInlineAsmHasSideEffects(LLVMValueRef InlineAsmVal)
rocm.bindings.llvm.c.core.LLVMGetInlineAsmNeedsAlignedStack(InlineAsmVal)#

Get if the inline asm snippet needs an aligned stack

Args:
InlineAsmVal (Pointer/object):

(undocumented)

Returns:

int: (undocumented)

C signature

LLVMBool LLVMGetInlineAsmNeedsAlignedStack(LLVMValueRef InlineAsmVal)
rocm.bindings.llvm.c.core.LLVMGetInlineAsmCanUnwind(InlineAsmVal)#

Get if the inline asm snippet may unwind the stack

Args:
InlineAsmVal (Pointer/object):

(undocumented)

Returns:

int: (undocumented)

C signature

LLVMBool LLVMGetInlineAsmCanUnwind(LLVMValueRef InlineAsmVal)
rocm.bindings.llvm.c.core.LLVMGetModuleContext(M)#

Obtain the context to which this module is associated.

See:

Module::getContext()

Args:
M (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMContextRef LLVMGetModuleContext(LLVMModuleRef M)
rocm.bindings.llvm.c.core.LLVMGetTypeByName(M, Name)#

Deprecated: Use LLVMGetTypeByName2 instead.

Args:
M (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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:
M (Pointer/object):

(undocumented)

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:
M (Pointer/object):

(undocumented)

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.

Args:
NamedMDNode (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

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.

Args:
NamedMDNode (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

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:
M (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

NameLen (int):

(undocumented)

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:
M (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

NameLen (int):

(undocumented)

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)

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:
M (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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:
M (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

Dest (Pointer/object):

(undocumented)

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:
M (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

Val (Pointer/object):

(undocumented)

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)

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)

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:
Val (Pointer/object):

(undocumented)

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:
Val (Pointer/object):

(undocumented)

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:
M (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

FunctionTy (Pointer/object):

(undocumented)

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:
M (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

NameLen (int):

(undocumented)

FunctionTy (Pointer/object):

(undocumented)

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:
M (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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:
M (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

Length (int):

(undocumented)

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.

See:

llvm::Module::begin()

Args:
M (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMGetFirstFunction(LLVMModuleRef M)
rocm.bindings.llvm.c.core.LLVMGetLastFunction(M)#

Obtain an iterator to the last Function in a Module.

See:

llvm::Module::end()

Args:
M (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

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.

Args:
Fn (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

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.

Args:
Fn (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMGetPreviousFunction(LLVMValueRef Fn)
rocm.bindings.llvm.c.core.LLVMSetModuleInlineAsm(M, Asm)#

Deprecated: Use LLVMSetModuleInlineAsm2 instead.

Args:
M (Pointer/object):

(undocumented)

Asm (CStr/object):

(undocumented)

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:
Ty (Pointer/object):

(undocumented)

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

See:

llvm::Type::isSized()

Args:
Ty (Pointer/object):

(undocumented)

Returns:

int: (undocumented)

C signature

LLVMBool LLVMTypeIsSized(LLVMTypeRef Ty)
rocm.bindings.llvm.c.core.LLVMGetTypeContext(Ty)#

Obtain the context to which this type instance is associated.

See:

llvm::Type::getContext()

Args:
Ty (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMContextRef LLVMGetTypeContext(LLVMTypeRef Ty)
rocm.bindings.llvm.c.core.LLVMDumpType(Val)#

Dump a representation of a type to stderr.

See:

llvm::Type::dump()

Args:
Val (Pointer/object):

(undocumented)

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.

See:

llvm::Type::print()

Args:
Val (Pointer/object):

(undocumented)

Returns:

bytes: (undocumented)

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.

Args:
C (Pointer/object):

(undocumented)

NumBits (int):

(undocumented)

Returns:

None: (undocumented)

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.

Args:
ByteTy (Pointer/object):

(undocumented)

Returns:

int: (undocumented)

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.

Args:
C (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMTypeRef LLVMInt1TypeInContext(LLVMContextRef C)
rocm.bindings.llvm.c.core.LLVMInt8TypeInContext(C)#

Obtain an integer type from a context with specified bit width.

Args:
C (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMTypeRef LLVMInt8TypeInContext(LLVMContextRef C)
rocm.bindings.llvm.c.core.LLVMInt16TypeInContext(C)#

Obtain an integer type from a context with specified bit width.

Args:
C (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMTypeRef LLVMInt16TypeInContext(LLVMContextRef C)
rocm.bindings.llvm.c.core.LLVMInt32TypeInContext(C)#

Obtain an integer type from a context with specified bit width.

Args:
C (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMTypeRef LLVMInt32TypeInContext(LLVMContextRef C)
rocm.bindings.llvm.c.core.LLVMInt64TypeInContext(C)#

Obtain an integer type from a context with specified bit width.

Args:
C (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMTypeRef LLVMInt64TypeInContext(LLVMContextRef C)
rocm.bindings.llvm.c.core.LLVMInt128TypeInContext(C)#

Obtain an integer type from a context with specified bit width.

Args:
C (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

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.

Args:
C (Pointer/object):

(undocumented)

NumBits (int):

(undocumented)

Returns:

None: (undocumented)

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.)

Args:
NumBits (int):

(undocumented)

Returns:

None: (undocumented)

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.

Args:
IntegerTy (Pointer/object):

(undocumented)

Returns:

int: (undocumented)

C signature

unsigned int LLVMGetIntTypeWidth(LLVMTypeRef IntegerTy)
rocm.bindings.llvm.c.core.LLVMHalfTypeInContext(C)#

Obtain a 16-bit floating point type from a context.

Args:
C (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMTypeRef LLVMHalfTypeInContext(LLVMContextRef C)
rocm.bindings.llvm.c.core.LLVMBFloatTypeInContext(C)#

Obtain a 16-bit brain floating point type from a context.

Args:
C (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMTypeRef LLVMBFloatTypeInContext(LLVMContextRef C)
rocm.bindings.llvm.c.core.LLVMFloatTypeInContext(C)#

Obtain a 32-bit floating point type from a context.

Args:
C (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMTypeRef LLVMFloatTypeInContext(LLVMContextRef C)
rocm.bindings.llvm.c.core.LLVMDoubleTypeInContext(C)#

Obtain a 64-bit floating point type from a context.

Args:
C (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMTypeRef LLVMDoubleTypeInContext(LLVMContextRef C)
rocm.bindings.llvm.c.core.LLVMX86FP80TypeInContext(C)#

Obtain a 80-bit floating point type (X87) from a context.

Args:
C (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

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.

Args:
C (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

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.

Args:
C (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

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:
ReturnType (Pointer/object):

(undocumented)

ParamTypes (ListOfPointer/object):

(undocumented)

ParamCount (int):

(undocumented)

IsVarArg (int):

(undocumented)

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.

Args:
FunctionTy (Pointer/object):

(undocumented)

Returns:

int: (undocumented)

C signature

LLVMBool LLVMIsFunctionVarArg(LLVMTypeRef FunctionTy)
rocm.bindings.llvm.c.core.LLVMGetReturnType(FunctionTy)#

Obtain the Type this function Type returns.

Args:
FunctionTy (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMTypeRef LLVMGetReturnType(LLVMTypeRef FunctionTy)
rocm.bindings.llvm.c.core.LLVMCountParamTypes(FunctionTy)#

Obtain the number of parameters this function accepts.

Args:
FunctionTy (Pointer/object):

(undocumented)

Returns:

int: (undocumented)

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.

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:
C (Pointer/object):

(undocumented)

ElementTypes (Pointer/object):

(undocumented)

ElementCount (int):

(undocumented)

Packed (int):

(undocumented)

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:
ElementTypes (Pointer/object):

(undocumented)

ElementCount (int):

(undocumented)

Packed (int):

(undocumented)

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:
C (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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:
Ty (Pointer/object):

(undocumented)

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:
StructTy (Pointer/object):

(undocumented)

ElementTypes (Pointer/object):

(undocumented)

ElementCount (int):

(undocumented)

Packed (int):

(undocumented)

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:
StructTy (Pointer/object):

(undocumented)

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.

Args:
StructTy (Pointer/object):

(undocumented)

Dest (Pointer/object):

(undocumented)

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:
StructTy (Pointer/object):

(undocumented)

i (int):

(undocumented)

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:
StructTy (Pointer/object):

(undocumented)

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:
StructTy (Pointer/object):

(undocumented)

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:
StructTy (Pointer/object):

(undocumented)

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:
Ty (Pointer/object):

(undocumented)

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:
Tp (Pointer/object):

(undocumented)

Arr (Pointer/object):

(undocumented)

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:
Tp (Pointer/object):

(undocumented)

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:
ElementType (Pointer/object):

(undocumented)

ElementCount (int):

(undocumented)

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:
ElementType (Pointer/object):

(undocumented)

ElementCount (int):

(undocumented)

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:
ArrayTy (Pointer/object):

(undocumented)

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:
ArrayTy (Pointer/object):

(undocumented)

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:
ElementType (Pointer/object):

(undocumented)

AddressSpace (int):

(undocumented)

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:
Ty (Pointer/object):

(undocumented)

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:
C (Pointer/object):

(undocumented)

AddressSpace (int):

(undocumented)

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:
PointerTy (Pointer/object):

(undocumented)

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:
ElementType (Pointer/object):

(undocumented)

ElementCount (int):

(undocumented)

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:
ElementType (Pointer/object):

(undocumented)

ElementCount (int):

(undocumented)

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:
VectorTy (Pointer/object):

(undocumented)

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:
PtrAuth (Pointer/object):

(undocumented)

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:
PtrAuth (Pointer/object):

(undocumented)

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:
PtrAuth (Pointer/object):

(undocumented)

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:
PtrAuth (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMGetConstantPtrAuthAddrDiscriminator(LLVMValueRef PtrAuth)
rocm.bindings.llvm.c.core.LLVMVoidTypeInContext(C)#

Create a void type in a context.

Args:
C (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMTypeRef LLVMVoidTypeInContext(LLVMContextRef C)
rocm.bindings.llvm.c.core.LLVMLabelTypeInContext(C)#

Create a label type in a context.

Args:
C (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMTypeRef LLVMLabelTypeInContext(LLVMContextRef C)
rocm.bindings.llvm.c.core.LLVMX86AMXTypeInContext(C)#

Create a X86 AMX type in a context.

Args:
C (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMTypeRef LLVMX86AMXTypeInContext(LLVMContextRef C)
rocm.bindings.llvm.c.core.LLVMTokenTypeInContext(C)#

Create a token type in a context.

Args:
C (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMTypeRef LLVMTokenTypeInContext(LLVMContextRef C)
rocm.bindings.llvm.c.core.LLVMMetadataTypeInContext(C)#

Create a metadata type in a context.

Args:
C (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

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:
C (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

TypeParams (Pointer/object):

(undocumented)

TypeParamCount (int):

(undocumented)

IntParams (PointerToUnsigned/object):

(undocumented)

IntParamCount (int):

(undocumented)

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:
TargetExtTy (Pointer/object):

(undocumented)

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:
TargetExtTy (Pointer/object):

(undocumented)

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:
TargetExtTy (Pointer/object):

(undocumented)

Idx (int):

(undocumented)

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:
TargetExtTy (Pointer/object):

(undocumented)

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:
TargetExtTy (Pointer/object):

(undocumented)

Idx (int):

(undocumented)

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.

See:

llvm::Value::getType()

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

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:
Val (Pointer/object):

(undocumented)

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:
Val (Pointer/object):

(undocumented)

Returns:

A tuple of size 2 that contains (in that order):

  • bytes: (undocumented)

  • Length (int):

    (undocumented)

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:
Val (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

NameLen (int):

(undocumented)

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.

See:

llvm::Value::dump()

Args:
Val (Pointer/object):

(undocumented)

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.

See:

llvm::Value::print()

Args:
Val (Pointer/object):

(undocumented)

Returns:

bytes: (undocumented)

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:
Val (Pointer/object):

(undocumented)

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:
Record (Pointer/object):

(undocumented)

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:
OldVal (Pointer/object):

(undocumented)

NewVal (Pointer/object):

(undocumented)

C signature

void LLVMReplaceAllUsesWith(LLVMValueRef OldVal, LLVMValueRef NewVal)
rocm.bindings.llvm.c.core.LLVMIsConstant(Val)#

Determine whether the specified value instance is constant.

Args:
Val (Pointer/object):

(undocumented)

Returns:

int: (undocumented)

C signature

LLVMBool LLVMIsConstant(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsUndef(Val)#

Determine whether a value instance is undefined.

Args:
Val (Pointer/object):

(undocumented)

Returns:

int: (undocumented)

C signature

LLVMBool LLVMIsUndef(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsPoison(Val)#

Determine whether a value instance is poisonous.

Args:
Val (Pointer/object):

(undocumented)

Returns:

int: (undocumented)

C signature

LLVMBool LLVMIsPoison(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsAArgument(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsAArgument(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsABasicBlock(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsABasicBlock(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsAInlineAsm(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsAInlineAsm(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsAUser(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsAUser(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsAConstant(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsAConstant(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsABlockAddress(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsABlockAddress(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsAConstantAggregateZero(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsAConstantAggregateZero(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsAConstantArray(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsAConstantArray(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsAConstantDataSequential(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsAConstantDataSequential(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsAConstantDataArray(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsAConstantDataArray(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsAConstantDataVector(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsAConstantDataVector(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsAConstantExpr(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsAConstantExpr(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsAConstantFP(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsAConstantFP(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsAConstantInt(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsAConstantInt(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsAConstantByte(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsAConstantByte(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsAConstantPointerNull(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsAConstantPointerNull(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsAConstantStruct(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsAConstantStruct(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsAConstantTokenNone(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsAConstantTokenNone(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsAConstantVector(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsAConstantVector(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsAConstantPtrAuth(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsAConstantPtrAuth(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsAGlobalValue(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsAGlobalValue(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsAGlobalAlias(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsAGlobalAlias(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsAGlobalObject(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsAGlobalObject(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsAFunction(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsAFunction(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsAGlobalVariable(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsAGlobalVariable(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsAGlobalIFunc(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsAGlobalIFunc(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsAUndefValue(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsAUndefValue(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsAPoisonValue(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsAPoisonValue(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsAInstruction(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsAInstruction(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsAUnaryOperator(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsAUnaryOperator(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsABinaryOperator(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsABinaryOperator(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsACallInst(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsACallInst(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsAIntrinsicInst(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsAIntrinsicInst(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsADbgInfoIntrinsic(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsADbgInfoIntrinsic(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsADbgVariableIntrinsic(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsADbgVariableIntrinsic(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsADbgDeclareInst(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsADbgDeclareInst(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsADbgLabelInst(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsADbgLabelInst(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsAMemIntrinsic(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsAMemIntrinsic(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsAMemCpyInst(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsAMemCpyInst(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsAMemMoveInst(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsAMemMoveInst(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsAMemSetInst(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsAMemSetInst(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsACmpInst(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsACmpInst(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsAFCmpInst(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsAFCmpInst(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsAICmpInst(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsAICmpInst(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsAExtractElementInst(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsAExtractElementInst(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsAGetElementPtrInst(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsAGetElementPtrInst(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsAInsertElementInst(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsAInsertElementInst(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsAInsertValueInst(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsAInsertValueInst(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsALandingPadInst(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsALandingPadInst(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsAPHINode(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsAPHINode(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsASelectInst(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsASelectInst(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsAShuffleVectorInst(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsAShuffleVectorInst(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsAStoreInst(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsAStoreInst(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsAUncondBrInst(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsAUncondBrInst(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsACondBrInst(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsACondBrInst(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsAIndirectBrInst(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsAIndirectBrInst(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsAInvokeInst(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsAInvokeInst(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsAReturnInst(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsAReturnInst(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsASwitchInst(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsASwitchInst(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsAUnreachableInst(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsAUnreachableInst(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsAResumeInst(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsAResumeInst(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsACleanupReturnInst(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsACleanupReturnInst(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsACatchReturnInst(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsACatchReturnInst(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsACatchSwitchInst(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsACatchSwitchInst(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsACallBrInst(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsACallBrInst(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsAFuncletPadInst(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsAFuncletPadInst(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsACatchPadInst(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsACatchPadInst(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsACleanupPadInst(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsACleanupPadInst(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsAUnaryInstruction(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsAUnaryInstruction(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsAAllocaInst(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsAAllocaInst(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsACastInst(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsACastInst(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsAAddrSpaceCastInst(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsAAddrSpaceCastInst(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsABitCastInst(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsABitCastInst(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsAFPExtInst(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsAFPExtInst(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsAFPToSIInst(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsAFPToSIInst(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsAFPToUIInst(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsAFPToUIInst(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsAFPTruncInst(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsAFPTruncInst(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsAIntToPtrInst(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsAIntToPtrInst(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsAPtrToIntInst(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsAPtrToIntInst(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsASExtInst(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsASExtInst(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsASIToFPInst(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsASIToFPInst(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsATruncInst(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsATruncInst(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsAUIToFPInst(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsAUIToFPInst(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsAZExtInst(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsAZExtInst(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsAExtractValueInst(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsAExtractValueInst(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsALoadInst(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsALoadInst(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsAVAArgInst(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsAVAArgInst(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsAFreezeInst(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsAFreezeInst(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsAAtomicCmpXchgInst(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsAAtomicCmpXchgInst(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsAAtomicRMWInst(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsAAtomicRMWInst(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsAFenceInst(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsAFenceInst(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMIsABranchInst(Val)#

(No short description, might be part of a group.)

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

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.

See:

llvm::dyn_cast_or_null<>

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

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.

See:

llvm::dyn_cast_or_null<>

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

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.

See:

llvm::dyn_cast_or_null<>

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMIsAMDString(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMGetValueName(Val)#

Deprecated: Use LLVMGetValueName2 instead.

Args:
Val (Pointer/object):

(undocumented)

Returns:

bytes: (undocumented)

C signature

const char * LLVMGetValueName(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMSetValueName(Val, Name)#

Deprecated: Use LLVMSetValueName2 instead.

Args:
Val (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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.

See:

llvm::Value::use_begin()

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

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.

Args:
U (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

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.

See:

llvm::Use::getUser()

Args:
U (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMGetUser(LLVMUseRef U)
rocm.bindings.llvm.c.core.LLVMGetUsedValue(U)#

Obtain the value this use corresponds to.

See:

llvm::Use::get().

Args:
U (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

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:
Val (Pointer/object):

(undocumented)

Index (int):

(undocumented)

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:
Val (Pointer/object):

(undocumented)

Index (int):

(undocumented)

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:
User (Pointer/object):

(undocumented)

Index (int):

(undocumented)

Val (Pointer/object):

(undocumented)

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:
Val (Pointer/object):

(undocumented)

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:
Ty (Pointer/object):

(undocumented)

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:
Ty (Pointer/object):

(undocumented)

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.

See:

llvm::UndefValue::get()

Args:
Ty (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

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.

See:

llvm::PoisonValue::get()

Args:
Ty (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

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:
Val (Pointer/object):

(undocumented)

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.

Args:
Ty (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

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:
IntTy (Pointer/object):

Integer type to obtain value of.

N (int):

The value the returned instance should refer to.

SignExtend (int):

Whether to sign extend the produced value.

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:
IntTy (Pointer/object):

(undocumented)

NumWords (int):

(undocumented)

Words (Pointer/object):

(undocumented)

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:
IntTy (Pointer/object):

(undocumented)

Text (CStr/object):

(undocumented)

Radix (int):

(undocumented)

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:
IntTy (Pointer/object):

(undocumented)

Text (CStr/object):

(undocumented)

SLen (int):

(undocumented)

Radix (int):

(undocumented)

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:
ByteTy (Pointer/object):

Byte type to obtain value of.

N (int):

The value the returned instance should refer to.

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:
ByteTy (Pointer/object):

(undocumented)

NumWords (int):

(undocumented)

Words (Pointer/object):

(undocumented)

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:
ByteTy (Pointer/object):

(undocumented)

Text (CStr/object):

(undocumented)

SLen (int):

(undocumented)

Radix (int):

(undocumented)

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:
RealTy (Pointer/object):

(undocumented)

N (float/int):

(undocumented)

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:
RealTy (Pointer/object):

(undocumented)

Text (CStr/object):

(undocumented)

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:
RealTy (Pointer/object):

(undocumented)

Text (CStr/object):

(undocumented)

SLen (int):

(undocumented)

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:
Ty (Pointer/object):

(undocumented)

N (Pointer/object):

(undocumented)

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:
ConstantVal (Pointer/object):

(undocumented)

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:
ConstantVal (Pointer/object):

(undocumented)

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:
ConstantVal (Pointer/object):

(undocumented)

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:
ConstantVal (Pointer/object):

(undocumented)

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)

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:
C (Pointer/object):

(undocumented)

Str (CStr/object):

(undocumented)

Length (int):

(undocumented)

DontNullTerminate (int):

(undocumented)

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:
C (Pointer/object):

(undocumented)

Str (CStr/object):

(undocumented)

Length (int):

(undocumented)

DontNullTerminate (int):

(undocumented)

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:

LLVMConstStringInContext

See:

llvm::ConstantDataArray::getString()

Args:
Str (CStr/object):

(undocumented)

Length (int):

(undocumented)

DontNullTerminate (int):

(undocumented)

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:
c (Pointer/object):

(undocumented)

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)

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)

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:
C (Pointer/object):

(undocumented)

ConstantVals (Pointer/object):

(undocumented)

Count (int):

(undocumented)

Packed (int):

(undocumented)

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:

LLVMConstStructInContext

Args:
ConstantVals (Pointer/object):

(undocumented)

Count (int):

(undocumented)

Packed (int):

(undocumented)

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:
ElementTy (Pointer/object):

(undocumented)

ConstantVals (Pointer/object):

(undocumented)

Length (int):

(undocumented)

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:
ElementTy (Pointer/object):

(undocumented)

ConstantVals (Pointer/object):

(undocumented)

Length (int):

(undocumented)

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:
ElementTy (Pointer/object):

(undocumented)

Data (CStr/object):

(undocumented)

SizeInBytes (int):

(undocumented)

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:
StructTy (Pointer/object):

(undocumented)

ConstantVals (Pointer/object):

(undocumented)

Count (int):

(undocumented)

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:
C (Pointer/object):

(undocumented)

Idx (int):

(undocumented)

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:
C (Pointer/object):

(undocumented)

idx (int):

(undocumented)

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:
ScalarConstantVals (Pointer/object):

(undocumented)

Size (int):

(undocumented)

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:
Ptr (Pointer/object):

(undocumented)

Key (Pointer/object):

(undocumented)

Disc (Pointer/object):

(undocumented)

AddrDisc (Pointer/object):

(undocumented)

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:
ConstantVal (Pointer/object):

(undocumented)

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.

See:

llvm::ConstantExpr.

Args:
Ty (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMAlignOf(LLVMTypeRef Ty)
rocm.bindings.llvm.c.core.LLVMSizeOf(Ty)#

Functions in this group correspond to APIs on llvm::ConstantExpr.

See:

llvm::ConstantExpr.

Args:
Ty (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

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:
ConstantVal (Pointer/object):

(undocumented)

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:
ConstantVal (Pointer/object):

(undocumented)

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.)

Args:
ConstantVal (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

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:
ConstantVal (Pointer/object):

(undocumented)

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:
LHSConstant (Pointer/object):

(undocumented)

RHSConstant (Pointer/object):

(undocumented)

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:
LHSConstant (Pointer/object):

(undocumented)

RHSConstant (Pointer/object):

(undocumented)

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:
LHSConstant (Pointer/object):

(undocumented)

RHSConstant (Pointer/object):

(undocumented)

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:
LHSConstant (Pointer/object):

(undocumented)

RHSConstant (Pointer/object):

(undocumented)

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:
LHSConstant (Pointer/object):

(undocumented)

RHSConstant (Pointer/object):

(undocumented)

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:
LHSConstant (Pointer/object):

(undocumented)

RHSConstant (Pointer/object):

(undocumented)

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:
LHSConstant (Pointer/object):

(undocumented)

RHSConstant (Pointer/object):

(undocumented)

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:
Ty (Pointer/object):

(undocumented)

ConstantVal (Pointer/object):

(undocumented)

ConstantIndices (Pointer/object):

(undocumented)

NumIndices (int):

(undocumented)

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:
Ty (Pointer/object):

(undocumented)

ConstantVal (Pointer/object):

(undocumented)

ConstantIndices (Pointer/object):

(undocumented)

NumIndices (int):

(undocumented)

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:
Ty (Pointer/object):

(undocumented)

ConstantVal (Pointer/object):

(undocumented)

ConstantIndices (Pointer/object):

(undocumented)

NumIndices (int):

(undocumented)

NoWrapFlags (int):

(undocumented)

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:
ConstantVal (Pointer/object):

(undocumented)

ToType (Pointer/object):

(undocumented)

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:
ConstantVal (Pointer/object):

(undocumented)

ToType (Pointer/object):

(undocumented)

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:
ConstantVal (Pointer/object):

(undocumented)

ToType (Pointer/object):

(undocumented)

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:
ConstantVal (Pointer/object):

(undocumented)

ToType (Pointer/object):

(undocumented)

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:
ConstantVal (Pointer/object):

(undocumented)

ToType (Pointer/object):

(undocumented)

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:
ConstantVal (Pointer/object):

(undocumented)

ToType (Pointer/object):

(undocumented)

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:
ConstantVal (Pointer/object):

(undocumented)

ToType (Pointer/object):

(undocumented)

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:
VectorConstant (Pointer/object):

(undocumented)

IndexConstant (Pointer/object):

(undocumented)

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:
VectorConstant (Pointer/object):

(undocumented)

ElementValueConstant (Pointer/object):

(undocumented)

IndexConstant (Pointer/object):

(undocumented)

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:
VectorAConstant (Pointer/object):

(undocumented)

VectorBConstant (Pointer/object):

(undocumented)

MaskConstant (Pointer/object):

(undocumented)

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:
F (Pointer/object):

(undocumented)

BB (Pointer/object):

(undocumented)

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.

Args:
BlockAddr (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMGetBlockAddressFunction(LLVMValueRef BlockAddr)
rocm.bindings.llvm.c.core.LLVMGetBlockAddressBasicBlock(BlockAddr)#

Gets the basic block associated with a given BlockAddress constant value.

Args:
BlockAddr (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMBasicBlockRef LLVMGetBlockAddressBasicBlock(LLVMValueRef BlockAddr)
rocm.bindings.llvm.c.core.LLVMConstInlineAsm(Ty, AsmString, Constraints, HasSideEffects, IsAlignStack)#

Deprecated: Use LLVMGetInlineAsm instead.

Args:
Ty (Pointer/object):

(undocumented)

AsmString (CStr/object):

(undocumented)

Constraints (CStr/object):

(undocumented)

HasSideEffects (int):

(undocumented)

IsAlignStack (int):

(undocumented)

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.

See:

llvm::GlobalValue

Args:
Global (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

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.

See:

llvm::GlobalValue

Args:
Global (Pointer/object):

(undocumented)

Returns:

int: (undocumented)

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:
Global (Pointer/object):

(undocumented)

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)

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.

See:

llvm::GlobalValue

Args:
Global (Pointer/object):

(undocumented)

Returns:

bytes: (undocumented)

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:
Global (Pointer/object):

(undocumented)

Section (CStr/object):

(undocumented)

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:
Global (Pointer/object):

(undocumented)

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)

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:
Global (Pointer/object):

(undocumented)

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)

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:
Global (Pointer/object):

(undocumented)

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)

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:
Global (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMTypeRef LLVMGlobalGetValueType(LLVMValueRef Global)
rocm.bindings.llvm.c.core.LLVMHasUnnamedAddr(Global)#

Deprecated: Use LLVMGetUnnamedAddress instead.

Args:
Global (Pointer/object):

(undocumented)

Returns:

int: (undocumented)

C signature

LLVMBool LLVMHasUnnamedAddr(LLVMValueRef Global)
rocm.bindings.llvm.c.core.LLVMSetUnnamedAddr(Global, HasUnnamedAddr)#

Deprecated: Use LLVMSetUnnamedAddress instead.

Args:
Global (Pointer/object):

(undocumented)

HasUnnamedAddr (int):

(undocumented)

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:
V (Pointer/object):

(undocumented)

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:
V (Pointer/object):

(undocumented)

Bytes (int):

(undocumented)

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:
Global (Pointer/object):

(undocumented)

Kind (int):

(undocumented)

MD (Pointer/object):

(undocumented)

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:
Global (Pointer/object):

(undocumented)

Kind (int):

(undocumented)

MD (Pointer/object):

(undocumented)

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:
Global (Pointer/object):

(undocumented)

Kind (int):

(undocumented)

C signature

void LLVMGlobalEraseMetadata(LLVMValueRef Global, unsigned int Kind)
rocm.bindings.llvm.c.core.LLVMGlobalClearMetadata(Global)#

Removes all metadata attachments from this value.

See:

llvm::GlobalObject::clearMetadata()

Args:
Global (Pointer/object):

(undocumented)

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:
Global (Pointer/object):

(undocumented)

GVE (Pointer/object):

(undocumented)

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)

Returns:

None: (undocumented)

C signature

LLVMValueMetadataEntry * LLVMGlobalCopyAllMetadata(LLVMValueRef Value, size_t * NumEntries)
rocm.bindings.llvm.c.core.LLVMDisposeValueMetadataEntries(Entries)#

Destroys value metadata entries.

Args:
Entries (Pointer/object):

(undocumented)

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:
Entries (Pointer/object):

(undocumented)

Index (int):

(undocumented)

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:
Entries (Pointer/object):

(undocumented)

Index (int):

(undocumented)

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:
M (Pointer/object):

(undocumented)

Ty (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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:
M (Pointer/object):

(undocumented)

Ty (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

AddressSpace (int):

(undocumented)

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:
M (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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:
M (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

Length (int):

(undocumented)

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.

See:

llvm::GlobalVariable

Args:
M (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMGetFirstGlobal(LLVMModuleRef M)
rocm.bindings.llvm.c.core.LLVMGetLastGlobal(M)#

This group contains functions that operate on global variable values.

See:

llvm::GlobalVariable

Args:
M (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

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:
GlobalVar (Pointer/object):

(undocumented)

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:
GlobalVar (Pointer/object):

(undocumented)

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.

See:

llvm::GlobalVariable

Args:
GlobalVar (Pointer/object):

(undocumented)

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:
GlobalVar (Pointer/object):

(undocumented)

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:
GlobalVar (Pointer/object):

(undocumented)

ConstantVal (Pointer/object):

(undocumented)

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:
GlobalVar (Pointer/object):

(undocumented)

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:
GlobalVar (Pointer/object):

(undocumented)

IsThreadLocal (int):

(undocumented)

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:
GlobalVar (Pointer/object):

(undocumented)

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:
GlobalVar (Pointer/object):

(undocumented)

IsConstant (int):

(undocumented)

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:
GlobalVar (Pointer/object):

(undocumented)

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)

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:
GlobalVar (Pointer/object):

(undocumented)

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:
GlobalVar (Pointer/object):

(undocumented)

IsExtInit (int):

(undocumented)

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:
M (Pointer/object):

(undocumented)

ValueTy (Pointer/object):

(undocumented)

AddrSpace (int):

(undocumented)

Aliasee (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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:
M (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

NameLen (int):

(undocumented)

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:
M (Pointer/object):

(undocumented)

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.

See:

llvm::Module::alias_end()

Args:
M (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

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.

Args:
GA (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

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.

Args:
GA (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMGetPreviousGlobalAlias(LLVMValueRef GA)
rocm.bindings.llvm.c.core.LLVMAliasGetAliasee(Alias)#

Retrieve the target value of an alias.

Args:
Alias (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMAliasGetAliasee(LLVMValueRef Alias)
rocm.bindings.llvm.c.core.LLVMAliasSetAliasee(Alias, Aliasee)#

Set the target value of an alias.

Args:
Alias (Pointer/object):

(undocumented)

Aliasee (Pointer/object):

(undocumented)

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.

See:

llvm::Function::eraseFromParent()

Args:
Fn (Pointer/object):

(undocumented)

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:
Fn (Pointer/object):

(undocumented)

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:
Fn (Pointer/object):

(undocumented)

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:
Fn (Pointer/object):

(undocumented)

PersonalityFn (Pointer/object):

(undocumented)

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:
Name (CStr/object):

(undocumented)

NameLen (int):

(undocumented)

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:
Fn (Pointer/object):

(undocumented)

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:
Mod (Pointer/object):

(undocumented)

ID (int):

(undocumented)

OverloadTypes (Pointer/object):

(undocumented)

OverloadCount (int):

(undocumented)

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:
Ctx (Pointer/object):

(undocumented)

ID (int):

(undocumented)

OverloadTypes (Pointer/object):

(undocumented)

OverloadCount (int):

(undocumented)

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)

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:
ID (int):

(undocumented)

OverloadTypes (Pointer/object):

(undocumented)

OverloadCount (int):

(undocumented)

NameLength (PointerToUInt64/object):

(undocumented)

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:
Mod (Pointer/object):

(undocumented)

ID (int):

(undocumented)

OverloadTypes (Pointer/object):

(undocumented)

OverloadCount (int):

(undocumented)

NameLength (PointerToUInt64/object):

(undocumented)

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.

See:

llvm::Intrinsic::isOverloaded()

Args:
ID (int):

(undocumented)

Returns:

int: (undocumented)

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:
Fn (Pointer/object):

(undocumented)

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:
Fn (Pointer/object):

Function to operate on

CC (int):

LLVMCallConv to set calling convention to

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.

See:

llvm::Function::getGC()

Args:
Fn (Pointer/object):

(undocumented)

Returns:

bytes: (undocumented)

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:
Fn (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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-data

Args:
Fn (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C 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-data

Args:
Fn (Pointer/object):

(undocumented)

Returns:

int: (undocumented)

C 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-data

Args:
Fn (Pointer/object):

(undocumented)

prefixData (Pointer/object):

(undocumented)

C 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-data

Args:
Fn (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C 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-data

Args:
Fn (Pointer/object):

(undocumented)

Returns:

int: (undocumented)

C 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-data

Args:
Fn (Pointer/object):

(undocumented)

prologueData (Pointer/object):

(undocumented)

C 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:
F (Pointer/object):

(undocumented)

Idx (int):

(undocumented)

A (Pointer/object):

(undocumented)

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:
F (Pointer/object):

(undocumented)

Idx (int):

(undocumented)

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:
F (Pointer/object):

(undocumented)

Idx (int):

(undocumented)

Attrs (Pointer/object):

(undocumented)

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:
F (Pointer/object):

(undocumented)

Idx (int):

(undocumented)

KindID (int):

(undocumented)

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:
F (Pointer/object):

(undocumented)

Idx (int):

(undocumented)

K (CStr/object):

(undocumented)

KLen (int):

(undocumented)

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:
F (Pointer/object):

(undocumented)

Idx (int):

(undocumented)

KindID (int):

(undocumented)

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:
F (Pointer/object):

(undocumented)

Idx (int):

(undocumented)

K (CStr/object):

(undocumented)

KLen (int):

(undocumented)

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:
Fn (Pointer/object):

(undocumented)

A (CStr/object):

(undocumented)

V (CStr/object):

(undocumented)

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.

See:

llvm::Function::arg_size()

Args:
Fn (Pointer/object):

(undocumented)

Returns:

int: (undocumented)

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)

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:
Fn (Pointer/object):

(undocumented)

Index (int):

(undocumented)

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.

Args:
Inst (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

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:
Fn (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMGetFirstParam(LLVMValueRef Fn)
rocm.bindings.llvm.c.core.LLVMGetLastParam(Fn)#

Obtain the last parameter to a function.

See:

llvm::Function::arg_end()

Args:
Fn (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

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.

Args:
Arg (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

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().

Args:
Arg (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

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:
Arg (Pointer/object):

(undocumented)

Align (int):

(undocumented)

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:
M (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

NameLen (int):

(undocumented)

Ty (Pointer/object):

(undocumented)

AddrSpace (int):

(undocumented)

Resolver (Pointer/object):

(undocumented)

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:
M (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

NameLen (int):

(undocumented)

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:
M (Pointer/object):

(undocumented)

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.

See:

llvm::Module::ifunc_end()

Args:
M (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

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.

Args:
IFunc (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

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.

Args:
IFunc (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

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:
IFunc (Pointer/object):

(undocumented)

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:
IFunc (Pointer/object):

(undocumented)

Resolver (Pointer/object):

(undocumented)

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.

See:

llvm::GlobalIFunc::eraseFromParent()

Args:
IFunc (Pointer/object):

(undocumented)

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.

See:

llvm::GlobalIFunc::removeFromParent()

Args:
IFunc (Pointer/object):

(undocumented)

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:
C (Pointer/object):

(undocumented)

Str (CStr/object):

(undocumented)

SLen (int):

(undocumented)

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:
C (Pointer/object):

(undocumented)

MDs (Pointer/object):

(undocumented)

Count (int):

(undocumented)

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:
C (Pointer/object):

(undocumented)

MD (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMMetadataAsValue(LLVMContextRef C, LLVMMetadataRef MD)
rocm.bindings.llvm.c.core.LLVMValueAsMetadata(Val)#

Obtain a Value as a Metadata.

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

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.

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:
V (Pointer/object):

MDNode to get number of operands from.

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:
V (Pointer/object):

MDNode to get the operands from.

Dest (Pointer/object):

Destination array for operands.

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:
V (Pointer/object):

(undocumented)

Index (int):

(undocumented)

Replacement (Pointer/object):

(undocumented)

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:
C (Pointer/object):

(undocumented)

Str (CStr/object):

(undocumented)

SLen (int):

(undocumented)

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.

Args:
Str (CStr/object):

(undocumented)

SLen (int):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMMDString(const char * Str, unsigned int SLen)
rocm.bindings.llvm.c.core.LLVMMDNodeInContext(C, Vals, Count)#

Deprecated: Use LLVMMDNodeInContext2 instead.

Args:
C (Pointer/object):

(undocumented)

Vals (Pointer/object):

(undocumented)

Count (int):

(undocumented)

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.

Args:
Vals (Pointer/object):

(undocumented)

Count (int):

(undocumented)

Returns:

None: (undocumented)

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:
Tag (CStr/object):

Tag name of the operand bundle

TagLen (int):

Length of Tag

Args (Pointer/object):

Memory address of an array of bundle operands

NumArgs (int):

Length of 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.

Args:
Bundle (Pointer/object):

(undocumented)

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.

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:
Bundle (Pointer/object):

Operand bundle to obtain operand count of.

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:
Bundle (Pointer/object):

Operand bundle to obtain operand of.

Index (int):

An operand index, must be less than LLVMGetNumOperandBundleArgs().

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.

Args:
BB (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMBasicBlockAsValue(LLVMBasicBlockRef BB)
rocm.bindings.llvm.c.core.LLVMValueIsBasicBlock(Val)#

Determine whether an LLVMValueRef is itself a basic block.

Args:
Val (Pointer/object):

(undocumented)

Returns:

int: (undocumented)

C signature

LLVMBool LLVMValueIsBasicBlock(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMValueAsBasicBlock(Val)#

Convert an LLVMValueRef to an LLVMBasicBlockRef instance.

Args:
Val (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMBasicBlockRef LLVMValueAsBasicBlock(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMGetBasicBlockName(BB)#

Obtain the string name of a basic block.

Args:
BB (Pointer/object):

(undocumented)

Returns:

bytes: (undocumented)

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:
BB (Pointer/object):

(undocumented)

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:
BB (Pointer/object):

(undocumented)

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.

Args:
Fn (Pointer/object):

Function value to operate on.

Returns:

int: (undocumented)

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.

Args:
Fn (Pointer/object):

(undocumented)

BasicBlocks (Pointer/object):

(undocumented)

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.

See:

llvm::Function::begin()

Args:
Fn (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMBasicBlockRef LLVMGetFirstBasicBlock(LLVMValueRef Fn)
rocm.bindings.llvm.c.core.LLVMGetLastBasicBlock(Fn)#

Obtain the last basic block in a function.

See:

llvm::Function::end()

Args:
Fn (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMBasicBlockRef LLVMGetLastBasicBlock(LLVMValueRef Fn)
rocm.bindings.llvm.c.core.LLVMGetNextBasicBlock(BB)#

Advance a basic block iterator.

Args:
BB (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMBasicBlockRef LLVMGetNextBasicBlock(LLVMBasicBlockRef BB)
rocm.bindings.llvm.c.core.LLVMGetPreviousBasicBlock(BB)#

Go backwards in a basic block iterator.

Args:
BB (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

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:
Fn (Pointer/object):

(undocumented)

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:
Builder (Pointer/object):

(undocumented)

BB (Pointer/object):

(undocumented)

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:
Fn (Pointer/object):

(undocumented)

BB (Pointer/object):

(undocumented)

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:
C (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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:
C (Pointer/object):

(undocumented)

Fn (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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:
Fn (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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:
C (Pointer/object):

(undocumented)

BB (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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:
InsertBeforeBB (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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.

See:

llvm::BasicBlock::eraseFromParent()

Args:
BB (Pointer/object):

(undocumented)

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.

See:

llvm::BasicBlock::removeFromParent()

Args:
BB (Pointer/object):

(undocumented)

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:
BB (Pointer/object):

(undocumented)

MovePos (Pointer/object):

(undocumented)

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:
BB (Pointer/object):

(undocumented)

MovePos (Pointer/object):

(undocumented)

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.

Args:
BB (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

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.

Args:
BB (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMGetLastInstruction(LLVMBasicBlockRef BB)
rocm.bindings.llvm.c.core.LLVMHasMetadata(Val)#

Determine whether an instruction has any metadata attached.

Args:
Val (Pointer/object):

(undocumented)

Returns:

int: (undocumented)

C signature

int LLVMHasMetadata(LLVMValueRef Val)
rocm.bindings.llvm.c.core.LLVMGetMetadata(Val, KindID)#

Return metadata associated with an instruction value.

Args:
Val (Pointer/object):

(undocumented)

KindID (int):

(undocumented)

Returns:

None: (undocumented)

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:
Val (Pointer/object):

(undocumented)

KindID (int):

(undocumented)

Node (Pointer/object):

(undocumented)

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)

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:
Inst (Pointer/object):

(undocumented)

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.

Args:
Inst (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

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.

Args:
Inst (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

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.

See:

llvm::Instruction::removeFromParent()

Args:
Inst (Pointer/object):

(undocumented)

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.

See:

llvm::Instruction::eraseFromParent()

Args:
Inst (Pointer/object):

(undocumented)

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.

See:

llvm::Value::deleteValue()

Args:
Inst (Pointer/object):

(undocumented)

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:
Inst (Pointer/object):

(undocumented)

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:
Inst (Pointer/object):

(undocumented)

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:
Inst (Pointer/object):

(undocumented)

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:
Inst (Pointer/object):

(undocumented)

SameSign (int):

(undocumented)

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:
Inst (Pointer/object):

(undocumented)

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:
Inst (Pointer/object):

(undocumented)

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:
Inst (Pointer/object):

(undocumented)

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:
Inst (Pointer/object):

(undocumented)

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:
Inst (Pointer/object):

(undocumented)

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:
DbgRecord (Pointer/object):

(undocumented)

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:
DbgRecord (Pointer/object):

(undocumented)

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:
Rec (Pointer/object):

(undocumented)

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:
Rec (Pointer/object):

(undocumented)

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:
Rec (Pointer/object):

(undocumented)

OpIdx (int):

(undocumented)

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:
Rec (Pointer/object):

(undocumented)

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:
Rec (Pointer/object):

(undocumented)

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:
Instr (Pointer/object):

(undocumented)

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:
Instr (Pointer/object):

(undocumented)

CC (int):

(undocumented)

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:

LLVMSetInstructionCallConv

Args:
Instr (Pointer/object):

(undocumented)

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:

LLVMSetInstructionCallConv

Args:
Instr (Pointer/object):

(undocumented)

Idx (int):

(undocumented)

Align (int):

(undocumented)

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:

LLVMSetInstructionCallConv

Args:
C (Pointer/object):

(undocumented)

Idx (int):

(undocumented)

A (Pointer/object):

(undocumented)

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:

LLVMSetInstructionCallConv

Args:
C (Pointer/object):

(undocumented)

Idx (int):

(undocumented)

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:

LLVMSetInstructionCallConv

Args:
C (Pointer/object):

(undocumented)

Idx (int):

(undocumented)

Attrs (Pointer/object):

(undocumented)

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:

LLVMSetInstructionCallConv

Args:
C (Pointer/object):

(undocumented)

Idx (int):

(undocumented)

KindID (int):

(undocumented)

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:

LLVMSetInstructionCallConv

Args:
C (Pointer/object):

(undocumented)

Idx (int):

(undocumented)

K (CStr/object):

(undocumented)

KLen (int):

(undocumented)

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:

LLVMSetInstructionCallConv

Args:
C (Pointer/object):

(undocumented)

Idx (int):

(undocumented)

KindID (int):

(undocumented)

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:

LLVMSetInstructionCallConv

Args:
C (Pointer/object):

(undocumented)

Idx (int):

(undocumented)

K (CStr/object):

(undocumented)

KLen (int):

(undocumented)

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:
C (Pointer/object):

(undocumented)

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:
Instr (Pointer/object):

(undocumented)

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:
C (Pointer/object):

(undocumented)

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.

Args:
C (Pointer/object):

(undocumented)

Index (int):

(undocumented)

Returns:

None: (undocumented)

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:
CallInst (Pointer/object):

(undocumented)

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:
CallInst (Pointer/object):

(undocumented)

IsTailCall (int):

(undocumented)

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:
CallInst (Pointer/object):

(undocumented)

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)

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:
InvokeInst (Pointer/object):

(undocumented)

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:
InvokeInst (Pointer/object):

(undocumented)

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:
InvokeInst (Pointer/object):

(undocumented)

B (Pointer/object):

(undocumented)

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:
InvokeInst (Pointer/object):

(undocumented)

B (Pointer/object):

(undocumented)

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:
CallBr (Pointer/object):

(undocumented)

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:
CallBr (Pointer/object):

(undocumented)

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:
CallBr (Pointer/object):

(undocumented)

Idx (int):

(undocumented)

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:
Term (Pointer/object):

(undocumented)

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:
Term (Pointer/object):

(undocumented)

i (int):

(undocumented)

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:
Term (Pointer/object):

(undocumented)

i (int):

(undocumented)

block (Pointer/object):

(undocumented)

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.

Args:
Branch (Pointer/object):

(undocumented)

Returns:

int: (undocumented)

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:
Branch (Pointer/object):

(undocumented)

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:
Branch (Pointer/object):

(undocumented)

Cond (Pointer/object):

(undocumented)

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:
SwitchInstr (Pointer/object):

(undocumented)

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:
SwitchInstr (Pointer/object):

(undocumented)

i (int):

(undocumented)

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:
SwitchInstr (Pointer/object):

(undocumented)

i (int):

(undocumented)

CaseValue (Pointer/object):

(undocumented)

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.

Args:
Alloca (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMTypeRef LLVMGetAllocatedType(LLVMValueRef Alloca)
rocm.bindings.llvm.c.core.LLVMIsInBounds(GEP)#

Check whether the given GEP operator is inbounds.

Args:
GEP (Pointer/object):

(undocumented)

Returns:

int: (undocumented)

C signature

LLVMBool LLVMIsInBounds(LLVMValueRef GEP)
rocm.bindings.llvm.c.core.LLVMSetIsInBounds(GEP, InBounds)#

Set the given GEP instruction to be inbounds or not.

Args:
GEP (Pointer/object):

(undocumented)

InBounds (int):

(undocumented)

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.

Args:
GEP (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

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:
GEP (Pointer/object):

(undocumented)

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:
GEP (Pointer/object):

(undocumented)

NoWrapFlags (int):

(undocumented)

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:
PhiNode (Pointer/object):

(undocumented)

IncomingValues (Pointer/object):

(undocumented)

IncomingBlocks (Pointer/object):

(undocumented)

Count (int):

(undocumented)

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.

Args:
PhiNode (Pointer/object):

(undocumented)

Returns:

int: (undocumented)

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:
PhiNode (Pointer/object):

(undocumented)

Index (int):

(undocumented)

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:
PhiNode (Pointer/object):

(undocumented)

Index (int):

(undocumented)

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.

Args:
Inst (Pointer/object):

(undocumented)

Returns:

int: (undocumented)

C signature

unsigned int LLVMGetNumIndices(LLVMValueRef Inst)
rocm.bindings.llvm.c.core.LLVMGetIndices(Inst)#

Obtain the indices as an array.

Args:
Inst (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

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.

Args:
C (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

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:
Builder (Pointer/object):

(undocumented)

Block (Pointer/object):

(undocumented)

Instr (Pointer/object):

(undocumented)

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:
Builder (Pointer/object):

(undocumented)

Block (Pointer/object):

(undocumented)

Inst (Pointer/object):

(undocumented)

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.

Args:
Builder (Pointer/object):

(undocumented)

Instr (Pointer/object):

(undocumented)

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.

Args:
Builder (Pointer/object):

(undocumented)

Instr (Pointer/object):

(undocumented)

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.

Args:
Builder (Pointer/object):

(undocumented)

Block (Pointer/object):

(undocumented)

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.

Args:
Builder (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMBasicBlockRef LLVMGetInsertBlock(LLVMBuilderRef Builder)
rocm.bindings.llvm.c.core.LLVMClearInsertionPosition(Builder)#

Set the builder position before Instr and any attached debug records.

Args:
Builder (Pointer/object):

(undocumented)

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.

Args:
Builder (Pointer/object):

(undocumented)

Instr (Pointer/object):

(undocumented)

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:
Builder (Pointer/object):

(undocumented)

Instr (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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.

Args:
Builder (Pointer/object):

(undocumented)

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:
Builder (Pointer/object):

(undocumented)

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:
Builder (Pointer/object):

(undocumented)

Loc (Pointer/object):

(undocumented)

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:
Builder (Pointer/object):

(undocumented)

Inst (Pointer/object):

(undocumented)

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:
Builder (Pointer/object):

(undocumented)

Inst (Pointer/object):

(undocumented)

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:
Builder (Pointer/object):

(undocumented)

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:
Builder (Pointer/object):

(undocumented)

FPMathTag (Pointer/object):

(undocumented)

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:
Builder (Pointer/object):

(undocumented)

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.

Args:
Builder (Pointer/object):

(undocumented)

L (Pointer/object):

(undocumented)

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.

Args:
Builder (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMGetCurrentDebugLocation(LLVMBuilderRef Builder)
rocm.bindings.llvm.c.core.LLVMBuildRetVoid(arg0)#

Terminators

Args:
arg0 (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMBuildRetVoid(LLVMBuilderRef)
rocm.bindings.llvm.c.core.LLVMBuildRet(arg0, V)#

Terminators

Args:
arg0 (Pointer/object):

(undocumented)

V (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMBuildRet(LLVMBuilderRef, LLVMValueRef V)
rocm.bindings.llvm.c.core.LLVMBuildAggregateRet(arg0, RetVals, N)#

Terminators

Args:
arg0 (Pointer/object):

(undocumented)

RetVals (Pointer/object):

(undocumented)

N (int):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMBuildAggregateRet(LLVMBuilderRef, LLVMValueRef * RetVals, unsigned int N)
rocm.bindings.llvm.c.core.LLVMBuildBr(arg0, Dest)#

Terminators

Args:
arg0 (Pointer/object):

(undocumented)

Dest (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMBuildBr(LLVMBuilderRef, LLVMBasicBlockRef Dest)
rocm.bindings.llvm.c.core.LLVMBuildCondBr(arg0, If, Then, Else)#

Terminators

Args:
arg0 (Pointer/object):

(undocumented)

If (Pointer/object):

(undocumented)

Then (Pointer/object):

(undocumented)

Else (Pointer/object):

(undocumented)

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:
arg0 (Pointer/object):

(undocumented)

V (Pointer/object):

(undocumented)

Else (Pointer/object):

(undocumented)

NumCases (int):

(undocumented)

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:
B (Pointer/object):

(undocumented)

Addr (Pointer/object):

(undocumented)

NumDests (int):

(undocumented)

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)

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:
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)

Name (CStr/object):

(undocumented)

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)

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

Args:
arg0 (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMBuildUnreachable(LLVMBuilderRef)
rocm.bindings.llvm.c.core.LLVMBuildResume(B, Exn)#

Exception Handling

Args:
B (Pointer/object):

(undocumented)

Exn (Pointer/object):

(undocumented)

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:
B (Pointer/object):

(undocumented)

Ty (Pointer/object):

(undocumented)

PersFn (Pointer/object):

(undocumented)

NumClauses (int):

(undocumented)

Name (CStr/object):

(undocumented)

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:
B (Pointer/object):

(undocumented)

CatchPad (Pointer/object):

(undocumented)

BB (Pointer/object):

(undocumented)

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:
B (Pointer/object):

(undocumented)

CatchPad (Pointer/object):

(undocumented)

BB (Pointer/object):

(undocumented)

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:
B (Pointer/object):

(undocumented)

ParentPad (Pointer/object):

(undocumented)

Args (Pointer/object):

(undocumented)

NumArgs (int):

(undocumented)

Name (CStr/object):

(undocumented)

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:
B (Pointer/object):

(undocumented)

ParentPad (Pointer/object):

(undocumented)

Args (Pointer/object):

(undocumented)

NumArgs (int):

(undocumented)

Name (CStr/object):

(undocumented)

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:
B (Pointer/object):

(undocumented)

ParentPad (Pointer/object):

(undocumented)

UnwindBB (Pointer/object):

(undocumented)

NumHandlers (int):

(undocumented)

Name (CStr/object):

(undocumented)

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:
Switch (Pointer/object):

(undocumented)

OnVal (Pointer/object):

(undocumented)

Dest (Pointer/object):

(undocumented)

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

Args:
IndirectBr (Pointer/object):

(undocumented)

Dest (Pointer/object):

(undocumented)

C signature

void LLVMAddDestination(LLVMValueRef IndirectBr, LLVMBasicBlockRef Dest)
rocm.bindings.llvm.c.core.LLVMGetNumClauses(LandingPad)#

Get the number of clauses on the landingpad instruction

Args:
LandingPad (Pointer/object):

(undocumented)

Returns:

int: (undocumented)

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:
LandingPad (Pointer/object):

(undocumented)

Idx (int):

(undocumented)

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

Args:
LandingPad (Pointer/object):

(undocumented)

ClauseVal (Pointer/object):

(undocumented)

C signature

void LLVMAddClause(LLVMValueRef LandingPad, LLVMValueRef ClauseVal)
rocm.bindings.llvm.c.core.LLVMIsCleanup(LandingPad)#

Get the ‘cleanup’ flag in the landingpad instruction

Args:
LandingPad (Pointer/object):

(undocumented)

Returns:

int: (undocumented)

C signature

LLVMBool LLVMIsCleanup(LLVMValueRef LandingPad)
rocm.bindings.llvm.c.core.LLVMSetCleanup(LandingPad, Val)#

Set the ‘cleanup’ flag in the landingpad instruction

Args:
LandingPad (Pointer/object):

(undocumented)

Val (int):

(undocumented)

C signature

void LLVMSetCleanup(LLVMValueRef LandingPad, LLVMBool Val)
rocm.bindings.llvm.c.core.LLVMAddHandler(CatchSwitch, Dest)#

Add a destination to the catchswitch instruction

Args:
CatchSwitch (Pointer/object):

(undocumented)

Dest (Pointer/object):

(undocumented)

C signature

void LLVMAddHandler(LLVMValueRef CatchSwitch, LLVMBasicBlockRef Dest)
rocm.bindings.llvm.c.core.LLVMGetNumHandlers(CatchSwitch)#

Get the number of handlers on the catchswitch instruction

Args:
CatchSwitch (Pointer/object):

(undocumented)

Returns:

int: (undocumented)

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:
CatchSwitch (Pointer/object):

The catchswitch instruction to operate on.

Handlers (Pointer/object):

Memory address of an array to be filled with basic blocks.

C signature

void LLVMGetHandlers(LLVMValueRef CatchSwitch, LLVMBasicBlockRef * Handlers)
rocm.bindings.llvm.c.core.LLVMGetArgOperand(Funclet, i)#

Get the number of funcletpad arguments.

Args:
Funclet (Pointer/object):

(undocumented)

i (int):

(undocumented)

Returns:

None: (undocumented)

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:
Funclet (Pointer/object):

(undocumented)

i (int):

(undocumented)

value (Pointer/object):

(undocumented)

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:
CatchPad (Pointer/object):

(undocumented)

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:
CatchPad (Pointer/object):

(undocumented)

CatchSwitch (Pointer/object):

(undocumented)

C signature

void LLVMSetParentCatchSwitch(LLVMValueRef CatchPad, LLVMValueRef CatchSwitch)
rocm.bindings.llvm.c.core.LLVMBuildAdd(arg0, LHS, RHS, Name)#

Arithmetic

Args:
arg0 (Pointer/object):

(undocumented)

LHS (Pointer/object):

(undocumented)

RHS (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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:
arg0 (Pointer/object):

(undocumented)

LHS (Pointer/object):

(undocumented)

RHS (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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:
arg0 (Pointer/object):

(undocumented)

LHS (Pointer/object):

(undocumented)

RHS (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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:
arg0 (Pointer/object):

(undocumented)

LHS (Pointer/object):

(undocumented)

RHS (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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:
arg0 (Pointer/object):

(undocumented)

LHS (Pointer/object):

(undocumented)

RHS (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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:
arg0 (Pointer/object):

(undocumented)

LHS (Pointer/object):

(undocumented)

RHS (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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:
arg0 (Pointer/object):

(undocumented)

LHS (Pointer/object):

(undocumented)

RHS (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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:
arg0 (Pointer/object):

(undocumented)

LHS (Pointer/object):

(undocumented)

RHS (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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:
arg0 (Pointer/object):

(undocumented)

LHS (Pointer/object):

(undocumented)

RHS (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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:
arg0 (Pointer/object):

(undocumented)

LHS (Pointer/object):

(undocumented)

RHS (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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:
arg0 (Pointer/object):

(undocumented)

LHS (Pointer/object):

(undocumented)

RHS (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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:
arg0 (Pointer/object):

(undocumented)

LHS (Pointer/object):

(undocumented)

RHS (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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:
arg0 (Pointer/object):

(undocumented)

LHS (Pointer/object):

(undocumented)

RHS (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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:
arg0 (Pointer/object):

(undocumented)

LHS (Pointer/object):

(undocumented)

RHS (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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:
arg0 (Pointer/object):

(undocumented)

LHS (Pointer/object):

(undocumented)

RHS (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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:
arg0 (Pointer/object):

(undocumented)

LHS (Pointer/object):

(undocumented)

RHS (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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:
arg0 (Pointer/object):

(undocumented)

LHS (Pointer/object):

(undocumented)

RHS (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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:
arg0 (Pointer/object):

(undocumented)

LHS (Pointer/object):

(undocumented)

RHS (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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:
arg0 (Pointer/object):

(undocumented)

LHS (Pointer/object):

(undocumented)

RHS (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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:
arg0 (Pointer/object):

(undocumented)

LHS (Pointer/object):

(undocumented)

RHS (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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:
arg0 (Pointer/object):

(undocumented)

LHS (Pointer/object):

(undocumented)

RHS (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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:
arg0 (Pointer/object):

(undocumented)

LHS (Pointer/object):

(undocumented)

RHS (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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:
arg0 (Pointer/object):

(undocumented)

LHS (Pointer/object):

(undocumented)

RHS (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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:
arg0 (Pointer/object):

(undocumented)

LHS (Pointer/object):

(undocumented)

RHS (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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:
arg0 (Pointer/object):

(undocumented)

LHS (Pointer/object):

(undocumented)

RHS (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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:
arg0 (Pointer/object):

(undocumented)

LHS (Pointer/object):

(undocumented)

RHS (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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:
B (Pointer/object):

(undocumented)

Op (LLVMOpcode):

(undocumented)

LHS (Pointer/object):

(undocumented)

RHS (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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:
arg0 (Pointer/object):

(undocumented)

V (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMBuildNeg(LLVMBuilderRef, LLVMValueRef V, const char * Name)
rocm.bindings.llvm.c.core.LLVMBuildNSWNeg(B, V, Name)#

Arithmetic

Args:
B (Pointer/object):

(undocumented)

V (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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:
B (Pointer/object):

(undocumented)

V (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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:
arg0 (Pointer/object):

(undocumented)

V (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMBuildFNeg(LLVMBuilderRef, LLVMValueRef V, const char * Name)
rocm.bindings.llvm.c.core.LLVMBuildNot(arg0, V, Name)#

Arithmetic

Args:
arg0 (Pointer/object):

(undocumented)

V (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMValueRef LLVMBuildNot(LLVMBuilderRef, LLVMValueRef V, const char * Name)
rocm.bindings.llvm.c.core.LLVMGetNUW(ArithInst)#

Arithmetic

Args:
ArithInst (Pointer/object):

(undocumented)

Returns:

int: (undocumented)

C signature

LLVMBool LLVMGetNUW(LLVMValueRef ArithInst)
rocm.bindings.llvm.c.core.LLVMSetNUW(ArithInst, HasNUW)#

Arithmetic

Args:
ArithInst (Pointer/object):

(undocumented)

HasNUW (int):

(undocumented)

C signature

void LLVMSetNUW(LLVMValueRef ArithInst, LLVMBool HasNUW)
rocm.bindings.llvm.c.core.LLVMGetNSW(ArithInst)#

Arithmetic

Args:
ArithInst (Pointer/object):

(undocumented)

Returns:

int: (undocumented)

C signature

LLVMBool LLVMGetNSW(LLVMValueRef ArithInst)
rocm.bindings.llvm.c.core.LLVMSetNSW(ArithInst, HasNSW)#

Arithmetic

Args:
ArithInst (Pointer/object):

(undocumented)

HasNSW (int):

(undocumented)

C signature

void LLVMSetNSW(LLVMValueRef ArithInst, LLVMBool HasNSW)
rocm.bindings.llvm.c.core.LLVMGetExact(DivOrShrInst)#

Arithmetic

Args:
DivOrShrInst (Pointer/object):

(undocumented)

Returns:

int: (undocumented)

C signature

LLVMBool LLVMGetExact(LLVMValueRef DivOrShrInst)
rocm.bindings.llvm.c.core.LLVMSetExact(DivOrShrInst, IsExact)#

Arithmetic

Args:
DivOrShrInst (Pointer/object):

(undocumented)

IsExact (int):

(undocumented)

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.

Args:
NonNegInst (Pointer/object):

(undocumented)

Returns:

int: (undocumented)

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.

Args:
NonNegInst (Pointer/object):

(undocumented)

IsNonNeg (int):

(undocumented)

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:

LLVMCanValueUseFastMathFlags

Args:
FPMathInst (Pointer/object):

(undocumented)

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:

LLVMCanValueUseFastMathFlags

Args:
FPMathInst (Pointer/object):

(undocumented)

FMF (int):

(undocumented)

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-flags

Args:
Inst (Pointer/object):

(undocumented)

Returns:

int: (undocumented)

C 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.

Args:
Inst (Pointer/object):

(undocumented)

Returns:

int: (undocumented)

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.

Args:
Inst (Pointer/object):

(undocumented)

IsDisjoint (int):

(undocumented)

C signature

void LLVMSetIsDisjoint(LLVMValueRef Inst, LLVMBool IsDisjoint)
rocm.bindings.llvm.c.core.LLVMBuildMalloc(arg0, Ty, Name)#

Memory

Args:
arg0 (Pointer/object):

(undocumented)

Ty (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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:
arg0 (Pointer/object):

(undocumented)

Ty (Pointer/object):

(undocumented)

Val (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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:
B (Pointer/object):

(undocumented)

Ptr (Pointer/object):

(undocumented)

Val (Pointer/object):

(undocumented)

Len (Pointer/object):

(undocumented)

Align (int):

(undocumented)

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:
B (Pointer/object):

(undocumented)

Dst (Pointer/object):

(undocumented)

DstAlign (int):

(undocumented)

Src (Pointer/object):

(undocumented)

SrcAlign (int):

(undocumented)

Size (Pointer/object):

(undocumented)

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:
B (Pointer/object):

(undocumented)

Dst (Pointer/object):

(undocumented)

DstAlign (int):

(undocumented)

Src (Pointer/object):

(undocumented)

SrcAlign (int):

(undocumented)

Size (Pointer/object):

(undocumented)

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:
arg0 (Pointer/object):

(undocumented)

Ty (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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:
arg0 (Pointer/object):

(undocumented)

Ty (Pointer/object):

(undocumented)

Val (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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:
arg0 (Pointer/object):

(undocumented)

PointerVal (Pointer/object):

(undocumented)

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:
arg0 (Pointer/object):

(undocumented)

Ty (Pointer/object):

(undocumented)

PointerVal (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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:
arg0 (Pointer/object):

(undocumented)

Val (Pointer/object):

(undocumented)

Ptr (Pointer/object):

(undocumented)

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:
B (Pointer/object):

(undocumented)

Ty (Pointer/object):

(undocumented)

Pointer (Pointer/object):

(undocumented)

Indices (Pointer/object):

(undocumented)

NumIndices (int):

(undocumented)

Name (CStr/object):

(undocumented)

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:
B (Pointer/object):

(undocumented)

Ty (Pointer/object):

(undocumented)

Pointer (Pointer/object):

(undocumented)

Indices (Pointer/object):

(undocumented)

NumIndices (int):

(undocumented)

Name (CStr/object):

(undocumented)

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:
B (Pointer/object):

(undocumented)

Ty (Pointer/object):

(undocumented)

Pointer (Pointer/object):

(undocumented)

Indices (Pointer/object):

(undocumented)

NumIndices (int):

(undocumented)

Name (CStr/object):

(undocumented)

NoWrapFlags (int):

(undocumented)

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:
B (Pointer/object):

(undocumented)

Ty (Pointer/object):

(undocumented)

Pointer (Pointer/object):

(undocumented)

Idx (int):

(undocumented)

Name (CStr/object):

(undocumented)

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:
B (Pointer/object):

(undocumented)

Str (CStr/object):

(undocumented)

Name (CStr/object):

(undocumented)

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:
B (Pointer/object):

(undocumented)

Str (CStr/object):

(undocumented)

Name (CStr/object):

(undocumented)

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.

Args:
Inst (Pointer/object):

(undocumented)

Returns:

int: (undocumented)

C signature

LLVMBool LLVMGetVolatile(LLVMValueRef Inst)
rocm.bindings.llvm.c.core.LLVMSetVolatile(MemoryAccessInst, IsVolatile)#

Deprecated: Use LLVMBuildGlobalString instead, which has identical behavior.

Args:
MemoryAccessInst (Pointer/object):

(undocumented)

IsVolatile (int):

(undocumented)

C signature

void LLVMSetVolatile(LLVMValueRef MemoryAccessInst, LLVMBool IsVolatile)
rocm.bindings.llvm.c.core.LLVMGetWeak(CmpXchgInst)#

Deprecated: Use LLVMBuildGlobalString instead, which has identical behavior.

Args:
CmpXchgInst (Pointer/object):

(undocumented)

Returns:

int: (undocumented)

C signature

LLVMBool LLVMGetWeak(LLVMValueRef CmpXchgInst)
rocm.bindings.llvm.c.core.LLVMSetWeak(CmpXchgInst, IsWeak)#

Deprecated: Use LLVMBuildGlobalString instead, which has identical behavior.

Args:
CmpXchgInst (Pointer/object):

(undocumented)

IsWeak (int):

(undocumented)

C signature

void LLVMSetWeak(LLVMValueRef CmpXchgInst, LLVMBool IsWeak)
rocm.bindings.llvm.c.core.LLVMGetOrdering(MemoryAccessInst)#

Deprecated: Use LLVMBuildGlobalString instead, which has identical behavior.

Args:
MemoryAccessInst (Pointer/object):

(undocumented)

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)

C signature

void LLVMSetOrdering(LLVMValueRef MemoryAccessInst, LLVMAtomicOrdering Ordering)
rocm.bindings.llvm.c.core.LLVMGetAtomicRMWBinOp(AtomicRMWInst)#

Deprecated: Use LLVMBuildGlobalString instead, which has identical behavior.

Args:
AtomicRMWInst (Pointer/object):

(undocumented)

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)

C signature

void LLVMSetAtomicRMWBinOp(LLVMValueRef AtomicRMWInst, LLVMAtomicRMWBinOp BinOp)
rocm.bindings.llvm.c.core.LLVMBuildTrunc(arg0, Val, DestTy, Name)#

Casts

Args:
arg0 (Pointer/object):

(undocumented)

Val (Pointer/object):

(undocumented)

DestTy (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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:
arg0 (Pointer/object):

(undocumented)

Val (Pointer/object):

(undocumented)

DestTy (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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:
arg0 (Pointer/object):

(undocumented)

Val (Pointer/object):

(undocumented)

DestTy (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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:
arg0 (Pointer/object):

(undocumented)

Val (Pointer/object):

(undocumented)

DestTy (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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:
arg0 (Pointer/object):

(undocumented)

Val (Pointer/object):

(undocumented)

DestTy (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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:
arg0 (Pointer/object):

(undocumented)

Val (Pointer/object):

(undocumented)

DestTy (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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:
arg0 (Pointer/object):

(undocumented)

Val (Pointer/object):

(undocumented)

DestTy (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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:
arg0 (Pointer/object):

(undocumented)

Val (Pointer/object):

(undocumented)

DestTy (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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:
arg0 (Pointer/object):

(undocumented)

Val (Pointer/object):

(undocumented)

DestTy (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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:
arg0 (Pointer/object):

(undocumented)

Val (Pointer/object):

(undocumented)

DestTy (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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:
arg0 (Pointer/object):

(undocumented)

Val (Pointer/object):

(undocumented)

DestTy (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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:
arg0 (Pointer/object):

(undocumented)

Val (Pointer/object):

(undocumented)

DestTy (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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:
arg0 (Pointer/object):

(undocumented)

Val (Pointer/object):

(undocumented)

DestTy (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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:
arg0 (Pointer/object):

(undocumented)

Val (Pointer/object):

(undocumented)

DestTy (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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:
arg0 (Pointer/object):

(undocumented)

Val (Pointer/object):

(undocumented)

DestTy (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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:
arg0 (Pointer/object):

(undocumented)

Val (Pointer/object):

(undocumented)

DestTy (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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:
B (Pointer/object):

(undocumented)

Op (LLVMOpcode):

(undocumented)

Val (Pointer/object):

(undocumented)

DestTy (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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:
arg0 (Pointer/object):

(undocumented)

Val (Pointer/object):

(undocumented)

DestTy (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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:
arg0 (Pointer/object):

(undocumented)

Val (Pointer/object):

(undocumented)

DestTy (Pointer/object):

(undocumented)

IsSigned (int):

(undocumented)

Name (CStr/object):

(undocumented)

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:
arg0 (Pointer/object):

(undocumented)

Val (Pointer/object):

(undocumented)

DestTy (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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:
arg0 (Pointer/object):

(undocumented)

Val (Pointer/object):

(undocumented)

DestTy (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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:
Src (Pointer/object):

(undocumented)

SrcIsSigned (int):

(undocumented)

DestTy (Pointer/object):

(undocumented)

DestIsSigned (int):

(undocumented)

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:
arg0 (Pointer/object):

(undocumented)

Op (LLVMIntPredicate):

(undocumented)

LHS (Pointer/object):

(undocumented)

RHS (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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:
arg0 (Pointer/object):

(undocumented)

Op (LLVMRealPredicate):

(undocumented)

LHS (Pointer/object):

(undocumented)

RHS (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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:
arg0 (Pointer/object):

(undocumented)

Ty (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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:
arg0 (Pointer/object):

(undocumented)

arg1 (Pointer/object):

(undocumented)

Fn (Pointer/object):

(undocumented)

Args (Pointer/object):

(undocumented)

NumArgs (int):

(undocumented)

Name (CStr/object):

(undocumented)

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:
arg0 (Pointer/object):

(undocumented)

arg1 (Pointer/object):

(undocumented)

Fn (Pointer/object):

(undocumented)

Args (Pointer/object):

(undocumented)

NumArgs (int):

(undocumented)

Bundles (Pointer/object):

(undocumented)

NumBundles (int):

(undocumented)

Name (CStr/object):

(undocumented)

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:
arg0 (Pointer/object):

(undocumented)

If (Pointer/object):

(undocumented)

Then (Pointer/object):

(undocumented)

Else (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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:
arg0 (Pointer/object):

(undocumented)

List (Pointer/object):

(undocumented)

Ty (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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:
arg0 (Pointer/object):

(undocumented)

VecVal (Pointer/object):

(undocumented)

Index (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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:
arg0 (Pointer/object):

(undocumented)

VecVal (Pointer/object):

(undocumented)

EltVal (Pointer/object):

(undocumented)

Index (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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:
arg0 (Pointer/object):

(undocumented)

V1 (Pointer/object):

(undocumented)

V2 (Pointer/object):

(undocumented)

Mask (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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:
arg0 (Pointer/object):

(undocumented)

AggVal (Pointer/object):

(undocumented)

Index (int):

(undocumented)

Name (CStr/object):

(undocumented)

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:
arg0 (Pointer/object):

(undocumented)

AggVal (Pointer/object):

(undocumented)

EltVal (Pointer/object):

(undocumented)

Index (int):

(undocumented)

Name (CStr/object):

(undocumented)

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:
arg0 (Pointer/object):

(undocumented)

Val (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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:
arg0 (Pointer/object):

(undocumented)

Val (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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:
arg0 (Pointer/object):

(undocumented)

Val (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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:
arg0 (Pointer/object):

(undocumented)

ElemTy (Pointer/object):

(undocumented)

LHS (Pointer/object):

(undocumented)

RHS (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

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:
B (Pointer/object):

(undocumented)

ordering (LLVMAtomicOrdering):

(undocumented)

singleThread (int):

(undocumented)

Name (CStr/object):

(undocumented)

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:
B (Pointer/object):

(undocumented)

ordering (LLVMAtomicOrdering):

(undocumented)

SSID (int):

(undocumented)

Name (CStr/object):

(undocumented)

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)

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)

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:
B (Pointer/object):

(undocumented)

Ptr (Pointer/object):

(undocumented)

Cmp (Pointer/object):

(undocumented)

New (Pointer/object):

(undocumented)

SuccessOrdering (LLVMAtomicOrdering):

(undocumented)

FailureOrdering (LLVMAtomicOrdering):

(undocumented)

SingleThread (int):

(undocumented)

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:
B (Pointer/object):

(undocumented)

Ptr (Pointer/object):

(undocumented)

Cmp (Pointer/object):

(undocumented)

New (Pointer/object):

(undocumented)

SuccessOrdering (LLVMAtomicOrdering):

(undocumented)

FailureOrdering (LLVMAtomicOrdering):

(undocumented)

SSID (int):

(undocumented)

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.

Args:
ShuffleVectorInst (Pointer/object):

(undocumented)

Returns:

int: (undocumented)

C signature

unsigned int LLVMGetNumMaskElements(LLVMValueRef ShuffleVectorInst)
rocm.bindings.llvm.c.core.LLVMGetUndefMaskElem()#

a constant that specifies that the result of a ShuffleVectorInst is 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:
ShuffleVectorInst (Pointer/object):

(undocumented)

Elt (int):

(undocumented)

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.

Args:
AtomicInst (Pointer/object):

(undocumented)

Returns:

int: (undocumented)

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.

Args:
AtomicInst (Pointer/object):

(undocumented)

SingleThread (int):

(undocumented)

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.

Args:
Inst (Pointer/object):

(undocumented)

Returns:

int: (undocumented)

C signature

LLVMBool LLVMIsAtomic(LLVMValueRef Inst)
rocm.bindings.llvm.c.core.LLVMGetAtomicSyncScopeID(AtomicInst)#

Returns the synchronization scope ID of an atomic instruction.

Args:
AtomicInst (Pointer/object):

(undocumented)

Returns:

int: (undocumented)

C signature

unsigned int LLVMGetAtomicSyncScopeID(LLVMValueRef AtomicInst)
rocm.bindings.llvm.c.core.LLVMSetAtomicSyncScopeID(AtomicInst, SSID)#

Sets the synchronization scope ID of an atomic instruction.

Args:
AtomicInst (Pointer/object):

(undocumented)

SSID (int):

(undocumented)

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:
CmpXchgInst (Pointer/object):

(undocumented)

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)

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:
CmpXchgInst (Pointer/object):

(undocumented)

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)

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.

Args:
M (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMModuleProviderRef LLVMCreateModuleProviderForExistingModule(LLVMModuleRef M)
rocm.bindings.llvm.c.core.LLVMDisposeModuleProvider(M)#

Destroys the module M.

Args:
M (Pointer/object):

(undocumented)

C signature

void LLVMDisposeModuleProvider(LLVMModuleProviderRef M)
rocm.bindings.llvm.c.core.LLVMCreateMemoryBufferWithContentsOfFile(Path)#

(No short description, might be part of a group.)

Args:
Path (CStr/object):

(undocumented)

Returns:

A tuple of size 3 that contains (in that order):

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 tuple of size 3 that contains (in that order):

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:
InputData (CStr/object):

(undocumented)

InputDataLength (int):

(undocumented)

BufferName (CStr/object):

(undocumented)

RequiresNullTerminator (int):

(undocumented)

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:
InputData (CStr/object):

(undocumented)

InputDataLength (int):

(undocumented)

BufferName (CStr/object):

(undocumented)

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.)

Args:
MemBuf (Pointer/object):

(undocumented)

Returns:

bytes: (undocumented)

C signature

const char * LLVMGetBufferStart(LLVMMemoryBufferRef MemBuf)
rocm.bindings.llvm.c.core.LLVMGetBufferSize(MemBuf)#

(No short description, might be part of a group.)

Args:
MemBuf (Pointer/object):

(undocumented)

Returns:

int: (undocumented)

C signature

size_t LLVMGetBufferSize(LLVMMemoryBufferRef MemBuf)
rocm.bindings.llvm.c.core.LLVMDisposeMemoryBuffer(MemBuf)#

(No short description, might be part of a group.)

Args:
MemBuf (Pointer/object):

(undocumented)

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:
M (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMPassManagerRef LLVMCreateFunctionPassManagerForModule(LLVMModuleRef M)
rocm.bindings.llvm.c.core.LLVMCreateFunctionPassManager(MP)#

Deprecated: Use LLVMCreateFunctionPassManagerForModule instead.

Args:
MP (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

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.

See:

llvm::PassManager::run(:py:obj:`~.Module`&)

Args:
PM (Pointer/object):

(undocumented)

M (Pointer/object):

(undocumented)

Returns:

int: (undocumented)

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:
FPM (Pointer/object):

(undocumented)

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.

See:

llvm::FunctionPassManager::run(:py:obj:`~.Function`&)

Args:
FPM (Pointer/object):

(undocumented)

F (Pointer/object):

(undocumented)

Returns:

int: (undocumented)

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:
FPM (Pointer/object):

(undocumented)

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.

See:

llvm::PassManagerBase::~:py:obj:PassManagerBase.

Args:
PM (Pointer/object):

(undocumented)

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()
rocm.bindings.llvm.c.core.LLVMIsMultithreaded()#

Check whether LLVM is executing in thread-safe mode or not.

See:

llvm::llvm_is_multithreaded

Returns:

int: (undocumented)

C signature

LLVMBool LLVMIsMultithreaded()