rocm.bindings.llvm.c.debuginfo

Contents

rocm.bindings.llvm.c.debuginfo#

2026-09-24

56 min read time

Applies to Linux and Windows

Advanced Micro Devices, Inc.

Attributes#

Classes#

LLVMDIFlags

Debug info flags.

LLVMDWARFSourceLanguage

Source languages known by DWARF.

LLVMDWARFEmissionKind

The amount of debug information to emit.

LLVMChecksumKind

The kind of checksum to emit.

LLVMDWARFMacinfoRecordType

Describes the kind of macro declaration used for LLVMDIBuilderCreateMacro.

Functions#

has_symbol(→ bool)

LLVMDebugMetadataVersion()

The current debug metadata version number.

LLVMGetModuleDebugMetadataVersion(Module)

The version of debug metadata that's present in the provided Module.

LLVMStripModuleDebugInfo(Module)

Strip debug info in the module if it exists.

LLVMCreateDIBuilderDisallowUnresolved(M)

Construct a builder for a module, and do not allow for unresolved nodes

LLVMCreateDIBuilder(M)

Construct a builder for a module and collect unresolved nodes attached to the module in order to resolve cycles during a call to LLVMDIBuilderFinalize.

LLVMDisposeDIBuilder(Builder)

Deallocates the DIBuilder and everything it owns.

LLVMDIBuilderFinalize(Builder)

Construct any deferred debug info descriptors.

LLVMDIBuilderFinalizeSubprogram(Builder, Subprogram)

Finalize a specific subprogram.

LLVMDIBuilderCreateCompileUnit(Builder, Lang, FileRef, ...)

A CompileUnit provides an anchor for all debugging

LLVMDIBuilderCreateFile(Builder, Filename, ...)

Create a file descriptor to hold debugging information for a file.

LLVMDIBuilderCreateFileWithChecksum(Builder, Filename, ...)

Create a file descriptor to hold debugging information for a file.

LLVMDIBuilderCreateModule(Builder, ParentScope, Name, ...)

Creates a new descriptor for a module with the specified parent scope.

LLVMDIBuilderCreateNameSpace(Builder, ParentScope, ...)

Creates a new descriptor for a namespace with the specified parent scope.

LLVMDIBuilderCreateFunction(Builder, Scope, Name, ...)

Create a new descriptor for the specified subprogram.

LLVMDIBuilderCreateLexicalBlock(Builder, Scope, File, ...)

Create a descriptor for a lexical block with the specified parent context.

LLVMDIBuilderCreateLexicalBlockFile(Builder, Scope, ...)

Create a descriptor for a lexical block with a new file attached.

LLVMDIBuilderCreateImportedModuleFromNamespace(...)

Create a descriptor for an imported namespace.

LLVMDIBuilderCreateImportedModuleFromAlias(Builder, ...)

Create a descriptor for an imported module that aliases another

LLVMDIBuilderCreateImportedModuleFromModule(Builder, ...)

Create a descriptor for an imported module.

LLVMDIBuilderCreateImportedDeclaration(Builder, Scope, ...)

Create a descriptor for an imported function, type, or variable.

LLVMDIBuilderCreateDebugLocation(Ctx, Line, Column, ...)

Creates a new DebugLocation that describes a source location.

LLVMDILocationGetLine(Location)

Get the line number of this debug location.

LLVMDILocationGetColumn(Location)

Get the column number of this debug location.

LLVMDILocationGetScope(Location)

Get the local scope associated with this debug location.

LLVMDILocationGetInlinedAt(Location)

Get the "inline at" location associated with this debug location.

LLVMDIScopeGetFile(Scope)

Get the metadata of the file associated with a given scope.

LLVMDIFileGetDirectory(File, Len)

Get the directory of a given file.

LLVMDIFileGetFilename(File, Len)

Get the name of a given file.

LLVMDIFileGetSource(File, Len)

Get the source of a given file.

LLVMDIBuilderGetOrCreateTypeArray(Builder, Data, ...)

Create a type array.

LLVMDIBuilderCreateSubroutineType(Builder, File, ...)

Create subroutine type.

LLVMDIBuilderCreateMacro(Builder, ParentMacroFile, ...)

Create debugging information entry for a macro.

LLVMDIBuilderCreateTempMacroFile(Builder, ...)

Create debugging information temporary entry for a macro file.

LLVMDIBuilderCreateEnumerator(Builder, Name, NameLen, ...)

Create debugging information entry for an enumerator.

LLVMDIBuilderCreateEnumeratorOfArbitraryPrecision(...)

Create debugging information entry for an enumerator of arbitrary precision.

LLVMDIBuilderCreateEnumerationType(Builder, Scope, ...)

Create debugging information entry for an enumeration.

LLVMDIBuilderCreateUnionType(Builder, Scope, Name, ...)

Create debugging information entry for a union.

LLVMDIBuilderCreateArrayType(Builder, Size, ...)

Create debugging information entry for an array.

LLVMDIBuilderCreateSetType(Builder, Scope, Name, ...)

Create debugging information entry for a set.

LLVMDIBuilderCreateSubrangeType(Builder, Scope, Name, ...)

Create a descriptor for a subrange with dynamic bounds.

LLVMDIBuilderCreateDynamicArrayType(Builder, Scope, ...)

Create debugging information entry for a dynamic array.

LLVMReplaceArrays(Builder, T, Elements, NumElements)

Replace arrays.

LLVMDIBuilderCreateVectorType(Builder, Size, ...)

Create debugging information entry for a vector type.

LLVMDIBuilderCreateUnspecifiedType(Builder, Name, NameLen)

Create a DWARF unspecified type.

LLVMDIBuilderCreateBasicType(Builder, Name, NameLen, ...)

Create debugging information entry for a basic

LLVMDIBuilderCreatePointerType(Builder, PointeeTy, ...)

Create debugging information entry for a pointer.

LLVMDIBuilderCreateStructType(Builder, Scope, Name, ...)

Create debugging information entry for a struct.

LLVMDIBuilderCreateMemberType(Builder, Scope, Name, ...)

Create debugging information entry for a member.

LLVMDIBuilderCreateStaticMemberType(Builder, Scope, ...)

Create debugging information entry for a

LLVMDIBuilderCreateMemberPointerType(Builder, ...)

Create debugging information entry for a pointer to member.

LLVMDIBuilderCreateObjCIVar(Builder, Name, NameLen, ...)

Create debugging information entry for Objective-C instance variable.

LLVMDIBuilderCreateObjCProperty(Builder, Name, ...)

Create debugging information entry for Objective-C property.

LLVMDIBuilderCreateObjectPointerType(Builder, Type, ...)

Create a uniqued DIType* clone with FlagObjectPointer.

LLVMDIBuilderCreateQualifiedType(Builder, Tag, Type)

Create debugging information entry for a qualified

LLVMDIBuilderCreateReferenceType(Builder, Tag, Type, ...)

Create debugging information entry for a c++

LLVMDIBuilderCreateNullPtrType(Builder)

Create C++11 nullptr type.

LLVMDIBuilderCreateTypedef(Builder, Type, Name, ...)

Create debugging information entry for a typedef.

LLVMDIBuilderCreateInheritance(Builder, Ty, BaseTy, ...)

Create debugging information entry to establish inheritance relationship

LLVMDIBuilderCreateForwardDecl(Builder, Tag, Name, ...)

Create a permanent forward-declared type.

LLVMDIBuilderCreateReplaceableCompositeType(Builder, ...)

Create a temporary forward-declared type.

LLVMDIBuilderCreateBitFieldMemberType(Builder, Scope, ...)

Create debugging information entry for a bit field member.

LLVMDIBuilderCreateClassType(Builder, Scope, Name, ...)

Create debugging information entry for a class.

LLVMDIBuilderCreateArtificialType(Builder, Type)

Create a uniqued DIType* clone with FlagArtificial set.

LLVMDITypeGetName(DType, Length)

Get the name of this DIType.

LLVMDITypeGetSizeInBits(DType)

Get the size of this DIType in bits.

LLVMDITypeGetOffsetInBits(DType)

Get the offset of this DIType in bits.

LLVMDITypeGetAlignInBits(DType)

Get the alignment of this DIType in bits.

LLVMDITypeGetLine(DType)

Get the source line where this DIType is declared.

LLVMDITypeGetFlags(DType)

Get the flags associated with this DIType.

LLVMDIBuilderGetOrCreateSubrange(Builder, LowerBound, ...)

Create a descriptor for a value range.

LLVMDIBuilderGetOrCreateArray(Builder, Data, NumElements)

Create an array of DI Nodes.

LLVMDIBuilderCreateExpression(Builder, Addr, Length)

Create a new descriptor for the specified variable which has a complex

LLVMDIBuilderCreateConstantValueExpression(Builder, Value)

Create a new descriptor for the specified variable that does not have an

LLVMDIBuilderCreateGlobalVariableExpression(Builder, ...)

Create a new descriptor for the specified variable.

LLVMGetDINodeTag(MD)

Get the dwarf::Tag of a DINode

LLVMDIGlobalVariableExpressionGetVariable(GVE)

Retrieves the DIVariable associated with this global variable expression.

LLVMDIGlobalVariableExpressionGetExpression(GVE)

Retrieves the DIExpression associated with this global variable expression.

LLVMDIVariableGetFile(Var)

Get the metadata of the file associated with a given variable.

LLVMDIVariableGetScope(Var)

Get the metadata of the scope associated with a given variable.

LLVMDIVariableGetLine(Var)

Get the source line where this DIVariable is declared.

LLVMTemporaryMDNode(Ctx, Data, NumElements)

Create a new temporary MDNode. Suitable for use in constructing cyclic

LLVMDisposeTemporaryMDNode(TempNode)

Deallocate a temporary node.

LLVMMetadataReplaceAllUsesWith(TempTargetMetadata, ...)

Replace all uses of temporary metadata.

LLVMDIBuilderCreateTempGlobalVariableFwdDecl(Builder, ...)

Create a new descriptor for the specified global variable that is temporary

LLVMDIBuilderInsertDeclareRecordBefore(Builder, ...)

Only use in "new debug format" (LLVMIsNewDbgInfoFormat() is true).

LLVMDIBuilderInsertDeclareRecordAtEnd(Builder, ...)

Only use in "new debug format" (LLVMIsNewDbgInfoFormat() is true).

LLVMDIBuilderInsertDbgValueRecordBefore(Builder, Val, ...)

Only use in "new debug format" (LLVMIsNewDbgInfoFormat() is true).

LLVMDIBuilderInsertDbgValueRecordAtEnd(Builder, Val, ...)

Only use in "new debug format" (LLVMIsNewDbgInfoFormat() is true).

LLVMDIBuilderCreateAutoVariable(Builder, Scope, Name, ...)

Create a new descriptor for a local auto variable.

LLVMDIBuilderCreateParameterVariable(Builder, Scope, ...)

Create a new descriptor for a function parameter variable.

LLVMGetSubprogram(Func)

Get the metadata of the subprogram attached to a function.

LLVMSetSubprogram(Func, SP)

Set the subprogram attached to a function.

LLVMDISubprogramGetLine(Subprogram)

Get the line associated with a given subprogram.

LLVMDISubprogramReplaceType(Subprogram, SubroutineType)

Replace the subprogram subroutine type.

LLVMInstructionGetDebugLoc(Inst)

Get the debug location for the given instruction.

LLVMInstructionSetDebugLoc(Inst, Loc)

Set the debug location for the given instruction.

LLVMDIBuilderCreateLabel(Builder, Context, Name, ...)

Create a new descriptor for a label

LLVMDIBuilderInsertLabelBefore(Builder, LabelInfo, ...)

Insert a new llvm.dbg.label intrinsic call

LLVMDIBuilderInsertLabelAtEnd(Builder, LabelInfo, ...)

Insert a new llvm.dbg.label intrinsic call

LLVMGetMetadataKind(Metadata)

Obtain the enumerated type of a Metadata instance.

Module Contents#

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

Bases: enum.IntEnum

Debug info flags.

LLVMDIFlagZero: int#
LLVMDIFlagPrivate: int#
LLVMDIFlagProtected: int#
LLVMDIFlagPublic: int#
LLVMDIFlagFwdDecl: int#
LLVMDIFlagAppleBlock: int#
LLVMDIFlagReservedBit4: int#
LLVMDIFlagVirtual: int#
LLVMDIFlagArtificial: int#
LLVMDIFlagExplicit: int#
LLVMDIFlagPrototyped: int#
LLVMDIFlagObjcClassComplete: int#
LLVMDIFlagObjectPointer: int#
LLVMDIFlagVector: int#
LLVMDIFlagStaticMember: int#
LLVMDIFlagLValueReference: int#
LLVMDIFlagRValueReference: int#
LLVMDIFlagReserved: int#
LLVMDIFlagSingleInheritance: int#
LLVMDIFlagMultipleInheritance: int#
LLVMDIFlagVirtualInheritance: int#
LLVMDIFlagIntroducedVirtual: int#
LLVMDIFlagBitField: int#
LLVMDIFlagNoReturn: int#
LLVMDIFlagTypePassByValue: int#
LLVMDIFlagTypePassByReference: int#
LLVMDIFlagEnumClass: int#
LLVMDIFlagFixedEnum: int#
LLVMDIFlagThunk: int#
LLVMDIFlagNonTrivial: int#
LLVMDIFlagBigEndian: int#
LLVMDIFlagLittleEndian: int#
LLVMDIFlagIndirectVirtualBase: int#
LLVMDIFlagAccessibility: int#
LLVMDIFlagPtrToMemberRep: int#
class rocm.bindings.llvm.c.debuginfo.LLVMDWARFSourceLanguage#

Bases: enum.IntEnum

Source languages known by DWARF.

LLVMDWARFSourceLanguageC89: int#
LLVMDWARFSourceLanguageC: int#
LLVMDWARFSourceLanguageAda83: int#
LLVMDWARFSourceLanguageC_plus_plus: int#
LLVMDWARFSourceLanguageCobol74: int#
LLVMDWARFSourceLanguageCobol85: int#
LLVMDWARFSourceLanguageFortran77: int#
LLVMDWARFSourceLanguageFortran90: int#
LLVMDWARFSourceLanguagePascal83: int#
LLVMDWARFSourceLanguageModula2: int#
LLVMDWARFSourceLanguageJava: int#
LLVMDWARFSourceLanguageC99: int#
LLVMDWARFSourceLanguageAda95: int#
LLVMDWARFSourceLanguageFortran95: int#
LLVMDWARFSourceLanguagePLI: int#
LLVMDWARFSourceLanguageObjC: int#
LLVMDWARFSourceLanguageObjC_plus_plus: int#
LLVMDWARFSourceLanguageUPC: int#
LLVMDWARFSourceLanguageD: int#
LLVMDWARFSourceLanguagePython: int#
LLVMDWARFSourceLanguageOpenCL: int#
LLVMDWARFSourceLanguageGo: int#
LLVMDWARFSourceLanguageModula3: int#
LLVMDWARFSourceLanguageHaskell: int#
LLVMDWARFSourceLanguageC_plus_plus_03: int#
LLVMDWARFSourceLanguageC_plus_plus_11: int#
LLVMDWARFSourceLanguageOCaml: int#
LLVMDWARFSourceLanguageRust: int#
LLVMDWARFSourceLanguageC11: int#
LLVMDWARFSourceLanguageSwift: int#
LLVMDWARFSourceLanguageJulia: int#
LLVMDWARFSourceLanguageDylan: int#
LLVMDWARFSourceLanguageC_plus_plus_14: int#
LLVMDWARFSourceLanguageFortran03: int#
LLVMDWARFSourceLanguageFortran08: int#
LLVMDWARFSourceLanguageRenderScript: int#
LLVMDWARFSourceLanguageBLISS: int#
LLVMDWARFSourceLanguageKotlin: int#
LLVMDWARFSourceLanguageZig: int#
LLVMDWARFSourceLanguageCrystal: int#
LLVMDWARFSourceLanguageC_plus_plus_17: int#
LLVMDWARFSourceLanguageC_plus_plus_20: int#
LLVMDWARFSourceLanguageC17: int#
LLVMDWARFSourceLanguageFortran18: int#
LLVMDWARFSourceLanguageAda2005: int#
LLVMDWARFSourceLanguageAda2012: int#
LLVMDWARFSourceLanguageHIP: int#
LLVMDWARFSourceLanguageAssembly: int#
LLVMDWARFSourceLanguageC_sharp: int#
LLVMDWARFSourceLanguageMojo: int#
LLVMDWARFSourceLanguageGLSL: int#
LLVMDWARFSourceLanguageGLSL_ES: int#
LLVMDWARFSourceLanguageHLSL: int#
LLVMDWARFSourceLanguageOpenCL_CPP: int#
LLVMDWARFSourceLanguageCPP_for_OpenCL: int#
LLVMDWARFSourceLanguageSYCL: int#
LLVMDWARFSourceLanguageRuby: int#
LLVMDWARFSourceLanguageMove: int#
LLVMDWARFSourceLanguageHylo: int#
LLVMDWARFSourceLanguageMetal: int#
LLVMDWARFSourceLanguageMips_Assembler: int#
LLVMDWARFSourceLanguageGOOGLE_RenderScript: int#
LLVMDWARFSourceLanguageBORLAND_Delphi: int#
class rocm.bindings.llvm.c.debuginfo.LLVMDWARFEmissionKind#

Bases: enum.IntEnum

The amount of debug information to emit.

LLVMDWARFEmissionNone: int#
LLVMDWARFEmissionFull: int#
LLVMDWARFEmissionLineTablesOnly: int#
rocm.bindings.llvm.c.debuginfo.LLVMMDStringMetadataKind: int#
rocm.bindings.llvm.c.debuginfo.LLVMConstantAsMetadataMetadataKind: int#
rocm.bindings.llvm.c.debuginfo.LLVMLocalAsMetadataMetadataKind: int#
rocm.bindings.llvm.c.debuginfo.LLVMDistinctMDOperandPlaceholderMetadataKind: int#
rocm.bindings.llvm.c.debuginfo.LLVMMDTupleMetadataKind: int#
rocm.bindings.llvm.c.debuginfo.LLVMDILocationMetadataKind: int#
rocm.bindings.llvm.c.debuginfo.LLVMDIExpressionMetadataKind: int#
rocm.bindings.llvm.c.debuginfo.LLVMDIGlobalVariableExpressionMetadataKind: int#
rocm.bindings.llvm.c.debuginfo.LLVMGenericDINodeMetadataKind: int#
rocm.bindings.llvm.c.debuginfo.LLVMDISubrangeMetadataKind: int#
rocm.bindings.llvm.c.debuginfo.LLVMDIEnumeratorMetadataKind: int#
rocm.bindings.llvm.c.debuginfo.LLVMDIBasicTypeMetadataKind: int#
rocm.bindings.llvm.c.debuginfo.LLVMDIDerivedTypeMetadataKind: int#
rocm.bindings.llvm.c.debuginfo.LLVMDICompositeTypeMetadataKind: int#
rocm.bindings.llvm.c.debuginfo.LLVMDISubroutineTypeMetadataKind: int#
rocm.bindings.llvm.c.debuginfo.LLVMDIFileMetadataKind: int#
rocm.bindings.llvm.c.debuginfo.LLVMDICompileUnitMetadataKind: int#
rocm.bindings.llvm.c.debuginfo.LLVMDISubprogramMetadataKind: int#
rocm.bindings.llvm.c.debuginfo.LLVMDILexicalBlockMetadataKind: int#
rocm.bindings.llvm.c.debuginfo.LLVMDILexicalBlockFileMetadataKind: int#
rocm.bindings.llvm.c.debuginfo.LLVMDINamespaceMetadataKind: int#
rocm.bindings.llvm.c.debuginfo.LLVMDIModuleMetadataKind: int#
rocm.bindings.llvm.c.debuginfo.LLVMDITemplateTypeParameterMetadataKind: int#
rocm.bindings.llvm.c.debuginfo.LLVMDITemplateValueParameterMetadataKind: int#
rocm.bindings.llvm.c.debuginfo.LLVMDIGlobalVariableMetadataKind: int#
rocm.bindings.llvm.c.debuginfo.LLVMDILocalVariableMetadataKind: int#
rocm.bindings.llvm.c.debuginfo.LLVMDILabelMetadataKind: int#
rocm.bindings.llvm.c.debuginfo.LLVMDIObjCPropertyMetadataKind: int#
rocm.bindings.llvm.c.debuginfo.LLVMDIImportedEntityMetadataKind: int#
rocm.bindings.llvm.c.debuginfo.LLVMDIMacroMetadataKind: int#
rocm.bindings.llvm.c.debuginfo.LLVMDIMacroFileMetadataKind: int#
rocm.bindings.llvm.c.debuginfo.LLVMDICommonBlockMetadataKind: int#
rocm.bindings.llvm.c.debuginfo.LLVMDIStringTypeMetadataKind: int#
rocm.bindings.llvm.c.debuginfo.LLVMDIGenericSubrangeMetadataKind: int#
rocm.bindings.llvm.c.debuginfo.LLVMDIArgListMetadataKind: int#
rocm.bindings.llvm.c.debuginfo.LLVMDIAssignIDMetadataKind: int#
rocm.bindings.llvm.c.debuginfo.LLVMDISubrangeTypeMetadataKind: int#
rocm.bindings.llvm.c.debuginfo.LLVMDIFixedPointTypeMetadataKind: int#
class rocm.bindings.llvm.c.debuginfo.LLVMChecksumKind#

Bases: enum.IntEnum

The kind of checksum to emit.

CSK_MD5: int#
CSK_SHA1: int#
CSK_SHA256: int#
class rocm.bindings.llvm.c.debuginfo.LLVMDWARFMacinfoRecordType#

Bases: enum.IntEnum

Describes the kind of macro declaration used for LLVMDIBuilderCreateMacro.

See:

llvm::dwarf::MacinfoRecordType

Note:

Values are from DW_MACINFO_* constants in the DWARF specification.

LLVMDWARFMacinfoRecordTypeDefine: int#
LLVMDWARFMacinfoRecordTypeMacro: int#
LLVMDWARFMacinfoRecordTypeStartFile: int#
LLVMDWARFMacinfoRecordTypeEndFile: int#
LLVMDWARFMacinfoRecordTypeVendorExt: int#
rocm.bindings.llvm.c.debuginfo.LLVMDebugMetadataVersion()#

The current debug metadata version number.

Returns:

int: (undocumented)

C signature

unsigned int LLVMDebugMetadataVersion()
rocm.bindings.llvm.c.debuginfo.LLVMGetModuleDebugMetadataVersion(Module)#

The version of debug metadata that’s present in the provided Module.

Args:
Module (Pointer/object):

(undocumented)

Returns:

int: (undocumented)

C signature

unsigned int LLVMGetModuleDebugMetadataVersion(LLVMModuleRef Module)
rocm.bindings.llvm.c.debuginfo.LLVMStripModuleDebugInfo(Module)#

Strip debug info in the module if it exists.

To do this, we remove all calls to the debugger intrinsics and any named metadata for debugging. We also remove debug locations for instructions. Return true if module is modified.

Args:
Module (Pointer/object):

(undocumented)

Returns:

int: (undocumented)

C signature

LLVMBool LLVMStripModuleDebugInfo(LLVMModuleRef Module)
rocm.bindings.llvm.c.debuginfo.LLVMCreateDIBuilderDisallowUnresolved(M)#

Construct a builder for a module, and do not allow for unresolved nodes attached to the module.

Args:
M (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMDIBuilderRef LLVMCreateDIBuilderDisallowUnresolved(LLVMModuleRef M)
rocm.bindings.llvm.c.debuginfo.LLVMCreateDIBuilder(M)#

Construct a builder for a module and collect unresolved nodes attached to the module in order to resolve cycles during a call to LLVMDIBuilderFinalize.

Construct a builder for a module and collect unresolved nodes attached to the module in order to resolve cycles during a call to LLVMDIBuilderFinalize.

Args:
M (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMDIBuilderRef LLVMCreateDIBuilder(LLVMModuleRef M)
rocm.bindings.llvm.c.debuginfo.LLVMDisposeDIBuilder(Builder)#

Deallocates the DIBuilder and everything it owns.

Note:

You must call LLVMDIBuilderFinalize before this

Args:
Builder (Pointer/object):

(undocumented)

C signature

void LLVMDisposeDIBuilder(LLVMDIBuilderRef Builder)
rocm.bindings.llvm.c.debuginfo.LLVMDIBuilderFinalize(Builder)#

Construct any deferred debug info descriptors.

Args:
Builder (Pointer/object):

(undocumented)

C signature

void LLVMDIBuilderFinalize(LLVMDIBuilderRef Builder)
rocm.bindings.llvm.c.debuginfo.LLVMDIBuilderFinalizeSubprogram(Builder, Subprogram)#

Finalize a specific subprogram.

No new variables may be added to this subprogram afterwards.

Args:
Builder (Pointer/object):

(undocumented)

Subprogram (Pointer/object):

(undocumented)

C signature

void LLVMDIBuilderFinalizeSubprogram(LLVMDIBuilderRef Builder, LLVMMetadataRef Subprogram)
rocm.bindings.llvm.c.debuginfo.LLVMDIBuilderCreateCompileUnit(Builder, Lang, FileRef, Producer, ProducerLen, isOptimized, Flags, FlagsLen, RuntimeVer, SplitName, SplitNameLen, Kind, DWOId, SplitDebugInlining, DebugInfoForProfiling, SysRoot, SysRootLen, SDK, SDKLen)#

A CompileUnit provides an anchor for all debugging information generated during this instance of compilation.

Args:
Builder (Pointer/object):

(undocumented)

Lang (LLVMDWARFSourceLanguage):

Source programming language, eg. LLVMDWARFSourceLanguageC99

FileRef (Pointer/object):

File info.

Producer (CStr/object):

Identify the producer of debugging information and code. Usually this is a compiler version string.

ProducerLen (int):

The length of the C string passed to Producer.

isOptimized (int):

A boolean flag which indicates whether optimization is enabled or not.

Flags (CStr/object):

This string lists command line options. This string is directly embedded in debug info output which may be used by a tool analyzing generated debugging information.

FlagsLen (int):

The length of the C string passed to Flags.

RuntimeVer (int):

This indicates runtime version for languages like Objective-C.

SplitName (CStr/object):

The name of the file that we’ll split debug info out into.

SplitNameLen (int):

The length of the C string passed to SplitName.

Kind (LLVMDWARFEmissionKind):

The kind of debug information to generate.

DWOId (int):

The DWOId if this is a split skeleton compile unit.

SplitDebugInlining (int):

Whether to emit inline debug info.

DebugInfoForProfiling (int):

Whether to emit extra debug info for profile collection.

SysRoot (CStr/object):

The Clang system root (value of -isysroot).

SysRootLen (int):

The length of the C string passed to SysRoot.

SDK (CStr/object):

The SDK. On Darwin, the last component of the sysroot.

SDKLen (int):

The length of the C string passed to SDK.

Returns:

None: (undocumented)

C signature

LLVMMetadataRef LLVMDIBuilderCreateCompileUnit(LLVMDIBuilderRef Builder, LLVMDWARFSourceLanguage Lang, LLVMMetadataRef FileRef, const char * Producer, size_t ProducerLen, LLVMBool isOptimized, const char * Flags, size_t FlagsLen, unsigned int RuntimeVer, const char * SplitName, size_t SplitNameLen, LLVMDWARFEmissionKind Kind, unsigned int DWOId, LLVMBool SplitDebugInlining, LLVMBool DebugInfoForProfiling, const char * SysRoot, size_t SysRootLen, const char * SDK, size_t SDKLen)
rocm.bindings.llvm.c.debuginfo.LLVMDIBuilderCreateFile(Builder, Filename, FilenameLen, Directory, DirectoryLen)#

Create a file descriptor to hold debugging information for a file.

Args:
Builder (Pointer/object):

The DIBuilder.

Filename (CStr/object):

File name.

FilenameLen (int):

The length of the C string passed to Filename.

Directory (CStr/object):

Directory.

DirectoryLen (int):

The length of the C string passed to Directory.

Returns:

None: (undocumented)

C signature

LLVMMetadataRef LLVMDIBuilderCreateFile(LLVMDIBuilderRef Builder, const char * Filename, size_t FilenameLen, const char * Directory, size_t DirectoryLen)
rocm.bindings.llvm.c.debuginfo.LLVMDIBuilderCreateFileWithChecksum(Builder, Filename, FilenameLen, Directory, DirectoryLen, ChecksumKind, Checksum, ChecksumLen, Source, SourceLen)#

Create a file descriptor to hold debugging information for a file.

Args:
Builder (Pointer/object):

The DIBuilder.

Filename (CStr/object):

File name.

FilenameLen (int):

The length of the C string passed to Filename.

Directory (CStr/object):

Directory.

DirectoryLen (int):

The length of the C string passed to Directory.

ChecksumKind (LLVMChecksumKind):

The kind of checksum. eg MD5, SHA256

Checksum (CStr/object):

The checksum.

ChecksumLen (int):

The length of the checksum.

Source (CStr/object):

(undocumented)

SourceLen (int):

The length of the source.

Returns:

None: (undocumented)

C signature

LLVMMetadataRef LLVMDIBuilderCreateFileWithChecksum(LLVMDIBuilderRef Builder, const char * Filename, size_t FilenameLen, const char * Directory, size_t DirectoryLen, LLVMChecksumKind ChecksumKind, const char * Checksum, size_t ChecksumLen, const char * Source, size_t SourceLen)
rocm.bindings.llvm.c.debuginfo.LLVMDIBuilderCreateModule(Builder, ParentScope, Name, NameLen, ConfigMacros, ConfigMacrosLen, IncludePath, IncludePathLen, APINotesFile, APINotesFileLen)#

Creates a new descriptor for a module with the specified parent scope.

Args:
Builder (Pointer/object):

The DIBuilder.

ParentScope (Pointer/object):

The parent scope containing this module declaration.

Name (CStr/object):

Module name.

NameLen (int):

The length of the C string passed to Name.

ConfigMacros (CStr/object):

A space-separated shell-quoted list of -D macro definitions as they would appear on a command line.

ConfigMacrosLen (int):

The length of the C string passed to ConfigMacros.

IncludePath (CStr/object):

The path to the module map file.

IncludePathLen (int):

The length of the C string passed to IncludePath.

APINotesFile (CStr/object):

The path to an API notes file for the module.

APINotesFileLen (int):

The length of the C string passed to APINotestFile.

Returns:

None: (undocumented)

C signature

LLVMMetadataRef LLVMDIBuilderCreateModule(LLVMDIBuilderRef Builder, LLVMMetadataRef ParentScope, const char * Name, size_t NameLen, const char * ConfigMacros, size_t ConfigMacrosLen, const char * IncludePath, size_t IncludePathLen, const char * APINotesFile, size_t APINotesFileLen)
rocm.bindings.llvm.c.debuginfo.LLVMDIBuilderCreateNameSpace(Builder, ParentScope, Name, NameLen, ExportSymbols)#

Creates a new descriptor for a namespace with the specified parent scope.

Args:
Builder (Pointer/object):

The DIBuilder.

ParentScope (Pointer/object):

The parent scope containing this module declaration.

Name (CStr/object):

NameSpace name.

NameLen (int):

The length of the C string passed to Name.

ExportSymbols (int):

Whether or not the namespace exports symbols, e.g. this is true of C++ inline namespaces.

Returns:

None: (undocumented)

C signature

LLVMMetadataRef LLVMDIBuilderCreateNameSpace(LLVMDIBuilderRef Builder, LLVMMetadataRef ParentScope, const char * Name, size_t NameLen, LLVMBool ExportSymbols)
rocm.bindings.llvm.c.debuginfo.LLVMDIBuilderCreateFunction(Builder, Scope, Name, NameLen, LinkageName, LinkageNameLen, File, LineNo, Ty, IsLocalToUnit, IsDefinition, ScopeLine, Flags, IsOptimized)#

Create a new descriptor for the specified subprogram.

Args:
Builder (Pointer/object):

The DIBuilder.

Scope (Pointer/object):

Function scope.

Name (CStr/object):

Function name.

NameLen (int):

Length of enumeration name.

LinkageName (CStr/object):

Mangled function name.

LinkageNameLen (int):

Length of linkage name.

File (Pointer/object):

File where this variable is defined.

LineNo (int):

Line number.

Ty (Pointer/object):

Function type.

IsLocalToUnit (int):

True if this function is not externally visible.

IsDefinition (int):

True if this is a function definition.

ScopeLine (int):

Set to the beginning of the scope this starts

Flags (LLVMDIFlags):

E.g.: LLVMDIFlagLValueReference. These flags are used to emit dwarf attributes.

IsOptimized (int):

True if optimization is ON.

Returns:

None: (undocumented)

C signature

LLVMMetadataRef LLVMDIBuilderCreateFunction(LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, const char * Name, size_t NameLen, const char * LinkageName, size_t LinkageNameLen, LLVMMetadataRef File, unsigned int LineNo, LLVMMetadataRef Ty, LLVMBool IsLocalToUnit, LLVMBool IsDefinition, unsigned int ScopeLine, LLVMDIFlags Flags, LLVMBool IsOptimized)
rocm.bindings.llvm.c.debuginfo.LLVMDIBuilderCreateLexicalBlock(Builder, Scope, File, Line, Column)#

Create a descriptor for a lexical block with the specified parent context.

Args:
Builder (Pointer/object):

The DIBuilder.

Scope (Pointer/object):

Parent lexical block.

File (Pointer/object):

Source file.

Line (int):

The line in the source file.

Column (int):

The column in the source file.

Returns:

None: (undocumented)

C signature

LLVMMetadataRef LLVMDIBuilderCreateLexicalBlock(LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, LLVMMetadataRef File, unsigned int Line, unsigned int Column)
rocm.bindings.llvm.c.debuginfo.LLVMDIBuilderCreateLexicalBlockFile(Builder, Scope, File, Discriminator)#

Create a descriptor for a lexical block with a new file attached.

Args:
Builder (Pointer/object):

The DIBuilder.

Scope (Pointer/object):

Lexical block.

File (Pointer/object):

Source file.

Discriminator (int):

DWARF path discriminator value.

Returns:

None: (undocumented)

C signature

LLVMMetadataRef LLVMDIBuilderCreateLexicalBlockFile(LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, LLVMMetadataRef File, unsigned int Discriminator)
rocm.bindings.llvm.c.debuginfo.LLVMDIBuilderCreateImportedModuleFromNamespace(Builder, Scope, NS, File, Line)#

Create a descriptor for an imported namespace.

Suitable for e.g. C++ using declarations.

Args:
Builder (Pointer/object):

The DIBuilder.

Scope (Pointer/object):

The scope this module is imported into

NS (Pointer/object):

(undocumented)

File (Pointer/object):

File where the declaration is located.

Line (int):

Line number of the declaration.

Returns:

None: (undocumented)

C signature

LLVMMetadataRef LLVMDIBuilderCreateImportedModuleFromNamespace(LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, LLVMMetadataRef NS, LLVMMetadataRef File, unsigned int Line)
rocm.bindings.llvm.c.debuginfo.LLVMDIBuilderCreateImportedModuleFromAlias(Builder, Scope, ImportedEntity, File, Line, Elements, NumElements)#

Create a descriptor for an imported module that aliases another imported entity descriptor.

Args:
Builder (Pointer/object):

The DIBuilder.

Scope (Pointer/object):

The scope this module is imported into

ImportedEntity (Pointer/object):

Previous imported entity to alias.

File (Pointer/object):

File where the declaration is located.

Line (int):

Line number of the declaration.

Elements (Pointer/object):

Renamed elements.

NumElements (int):

Number of renamed elements.

Returns:

None: (undocumented)

C signature

LLVMMetadataRef LLVMDIBuilderCreateImportedModuleFromAlias(LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, LLVMMetadataRef ImportedEntity, LLVMMetadataRef File, unsigned int Line, LLVMMetadataRef * Elements, unsigned int NumElements)
rocm.bindings.llvm.c.debuginfo.LLVMDIBuilderCreateImportedModuleFromModule(Builder, Scope, M, File, Line, Elements, NumElements)#

Create a descriptor for an imported module.

Args:
Builder (Pointer/object):

The DIBuilder.

Scope (Pointer/object):

The scope this module is imported into

M (Pointer/object):

The module being imported here

File (Pointer/object):

File where the declaration is located.

Line (int):

Line number of the declaration.

Elements (Pointer/object):

Renamed elements.

NumElements (int):

Number of renamed elements.

Returns:

None: (undocumented)

C signature

LLVMMetadataRef LLVMDIBuilderCreateImportedModuleFromModule(LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, LLVMMetadataRef M, LLVMMetadataRef File, unsigned int Line, LLVMMetadataRef * Elements, unsigned int NumElements)
rocm.bindings.llvm.c.debuginfo.LLVMDIBuilderCreateImportedDeclaration(Builder, Scope, Decl, File, Line, Name, NameLen, Elements, NumElements)#

Create a descriptor for an imported function, type, or variable.

Suitable for e.g. FORTRAN-style USE declarations.

Args:
Builder (Pointer/object):

The DIBuilder.

Scope (Pointer/object):

The scope this module is imported into.

Decl (Pointer/object):

The declaration (or definition) of a function, type, or variable.

File (Pointer/object):

File where the declaration is located.

Line (int):

Line number of the declaration.

Name (CStr/object):

A name that uniquely identifies this imported declaration.

NameLen (int):

The length of the C string passed to Name.

Elements (Pointer/object):

Renamed elements.

NumElements (int):

Number of renamed elements.

Returns:

None: (undocumented)

C signature

LLVMMetadataRef LLVMDIBuilderCreateImportedDeclaration(LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, LLVMMetadataRef Decl, LLVMMetadataRef File, unsigned int Line, const char * Name, size_t NameLen, LLVMMetadataRef * Elements, unsigned int NumElements)
rocm.bindings.llvm.c.debuginfo.LLVMDIBuilderCreateDebugLocation(Ctx, Line, Column, Scope, InlinedAt)#

Creates a new DebugLocation that describes a source location.

Note:

If the item to which this location is attached cannot be attributed to a source line, pass 0 for the line and column.

Args:
Ctx (Pointer/object):

(undocumented)

Line (int):

The line in the source file.

Column (int):

The column in the source file.

Scope (Pointer/object):

The scope in which the location resides.

InlinedAt (Pointer/object):

The scope where this location was inlined, if at all. (optional).

Returns:

None: (undocumented)

C signature

LLVMMetadataRef LLVMDIBuilderCreateDebugLocation(LLVMContextRef Ctx, unsigned int Line, unsigned int Column, LLVMMetadataRef Scope, LLVMMetadataRef InlinedAt)
rocm.bindings.llvm.c.debuginfo.LLVMDILocationGetLine(Location)#

Get the line number of this debug location.

See:

DILocation::getLine()

Args:
Location (Pointer/object):

The debug location.

Returns:

int: (undocumented)

C signature

unsigned int LLVMDILocationGetLine(LLVMMetadataRef Location)
rocm.bindings.llvm.c.debuginfo.LLVMDILocationGetColumn(Location)#

Get the column number of this debug location.

See:

DILocation::getColumn()

Args:
Location (Pointer/object):

The debug location.

Returns:

int: (undocumented)

C signature

unsigned int LLVMDILocationGetColumn(LLVMMetadataRef Location)
rocm.bindings.llvm.c.debuginfo.LLVMDILocationGetScope(Location)#

Get the local scope associated with this debug location.

See:

DILocation::getScope()

Args:
Location (Pointer/object):

The debug location.

Returns:

None: (undocumented)

C signature

LLVMMetadataRef LLVMDILocationGetScope(LLVMMetadataRef Location)
rocm.bindings.llvm.c.debuginfo.LLVMDILocationGetInlinedAt(Location)#

Get the “inline at” location associated with this debug location.

See:

DILocation::getInlinedAt()

Args:
Location (Pointer/object):

The debug location.

Returns:

None: (undocumented)

C signature

LLVMMetadataRef LLVMDILocationGetInlinedAt(LLVMMetadataRef Location)
rocm.bindings.llvm.c.debuginfo.LLVMDIScopeGetFile(Scope)#

Get the metadata of the file associated with a given scope.

See:

DIScope::getFile()

Args:
Scope (Pointer/object):

The scope object.

Returns:

None: (undocumented)

C signature

LLVMMetadataRef LLVMDIScopeGetFile(LLVMMetadataRef Scope)
rocm.bindings.llvm.c.debuginfo.LLVMDIFileGetDirectory(File, Len)#

Get the directory of a given file.

See:

DIFile::getDirectory()

Args:
File (Pointer/object):

The file object.

Len (PointerToUnsigned/object):

The length of the returned string.

Returns:

bytes: (undocumented)

C signature

const char * LLVMDIFileGetDirectory(LLVMMetadataRef File, unsigned int * Len)
rocm.bindings.llvm.c.debuginfo.LLVMDIFileGetFilename(File, Len)#

Get the name of a given file.

See:

DIFile::getFilename()

Args:
File (Pointer/object):

The file object.

Len (PointerToUnsigned/object):

The length of the returned string.

Returns:

bytes: (undocumented)

C signature

const char * LLVMDIFileGetFilename(LLVMMetadataRef File, unsigned int * Len)
rocm.bindings.llvm.c.debuginfo.LLVMDIFileGetSource(File, Len)#

Get the source of a given file.

See:

DIFile::getSource()

Args:
File (Pointer/object):

The file object.

Len (PointerToUnsigned/object):

The length of the returned string.

Returns:

bytes: (undocumented)

C signature

const char * LLVMDIFileGetSource(LLVMMetadataRef File, unsigned int * Len)
rocm.bindings.llvm.c.debuginfo.LLVMDIBuilderGetOrCreateTypeArray(Builder, Data, NumElements)#

Create a type array.

Args:
Builder (Pointer/object):

The DIBuilder.

Data (Pointer/object):

The type elements.

NumElements (int):

Number of type elements.

Returns:

None: (undocumented)

C signature

LLVMMetadataRef LLVMDIBuilderGetOrCreateTypeArray(LLVMDIBuilderRef Builder, LLVMMetadataRef * Data, size_t NumElements)
rocm.bindings.llvm.c.debuginfo.LLVMDIBuilderCreateSubroutineType(Builder, File, ParameterTypes, NumParameterTypes, Flags)#

Create subroutine type.

Args:
Builder (Pointer/object):

The DIBuilder.

File (Pointer/object):

The file in which the subroutine resides.

ParameterTypes (Pointer/object):

An array of subroutine parameter types. This includes return type at 0th index.

NumParameterTypes (int):

The number of parameter types in ParameterTypes

Flags (LLVMDIFlags):

E.g.: LLVMDIFlagLValueReference. These flags are used to emit dwarf attributes.

Returns:

None: (undocumented)

C signature

LLVMMetadataRef LLVMDIBuilderCreateSubroutineType(LLVMDIBuilderRef Builder, LLVMMetadataRef File, LLVMMetadataRef * ParameterTypes, unsigned int NumParameterTypes, LLVMDIFlags Flags)
rocm.bindings.llvm.c.debuginfo.LLVMDIBuilderCreateMacro(Builder, ParentMacroFile, Line, RecordType, Name, NameLen, Value, ValueLen)#

Create debugging information entry for a macro.

Args:
Builder (Pointer/object):

The DIBuilder.

ParentMacroFile (Pointer/object):

Macro parent (could be NULL).

Line (int):

Source line number where the macro is defined.

RecordType (LLVMDWARFMacinfoRecordType):

DW_MACINFO_define or DW_MACINFO_undef.

Name (CStr/object):

Macro name.

NameLen (int):

Macro name length.

Value (CStr/object):

Macro value.

ValueLen (int):

Macro value length.

Returns:

None: (undocumented)

C signature

LLVMMetadataRef LLVMDIBuilderCreateMacro(LLVMDIBuilderRef Builder, LLVMMetadataRef ParentMacroFile, unsigned int Line, LLVMDWARFMacinfoRecordType RecordType, const char * Name, size_t NameLen, const char * Value, size_t ValueLen)
rocm.bindings.llvm.c.debuginfo.LLVMDIBuilderCreateTempMacroFile(Builder, ParentMacroFile, Line, File)#

Create debugging information temporary entry for a macro file.

List of macro node direct children will be calculated by DIBuilder, using the ParentMacroFile relationship.

Args:
Builder (Pointer/object):

The DIBuilder.

ParentMacroFile (Pointer/object):

Macro parent (could be NULL).

Line (int):

Source line number where the macro file is included.

File (Pointer/object):

File descriptor containing the name of the macro file.

Returns:

None: (undocumented)

C signature

LLVMMetadataRef LLVMDIBuilderCreateTempMacroFile(LLVMDIBuilderRef Builder, LLVMMetadataRef ParentMacroFile, unsigned int Line, LLVMMetadataRef File)
rocm.bindings.llvm.c.debuginfo.LLVMDIBuilderCreateEnumerator(Builder, Name, NameLen, Value, IsUnsigned)#

Create debugging information entry for an enumerator.

Args:
Builder (Pointer/object):

The DIBuilder.

Name (CStr/object):

Enumerator name.

NameLen (int):

Length of enumerator name.

Value (int):

Enumerator value.

IsUnsigned (int):

True if the value is unsigned.

Returns:

None: (undocumented)

C signature

LLVMMetadataRef LLVMDIBuilderCreateEnumerator(LLVMDIBuilderRef Builder, const char * Name, size_t NameLen, int64_t Value, LLVMBool IsUnsigned)
rocm.bindings.llvm.c.debuginfo.LLVMDIBuilderCreateEnumeratorOfArbitraryPrecision(Builder, Name, NameLen, SizeInBits, Words, IsUnsigned)#

Create debugging information entry for an enumerator of arbitrary precision.

Args:
Builder (Pointer/object):

The DIBuilder.

Name (CStr/object):

Enumerator name.

NameLen (int):

Length of enumerator name.

SizeInBits (int):

Number of bits of the value.

Words (Pointer/object):

The words that make up the value.

IsUnsigned (int):

True if the value is unsigned.

Returns:

None: (undocumented)

C signature

LLVMMetadataRef LLVMDIBuilderCreateEnumeratorOfArbitraryPrecision(LLVMDIBuilderRef Builder, const char * Name, size_t NameLen, uint64_t SizeInBits, const uint64_t[] Words, LLVMBool IsUnsigned)
rocm.bindings.llvm.c.debuginfo.LLVMDIBuilderCreateEnumerationType(Builder, Scope, Name, NameLen, File, LineNumber, SizeInBits, AlignInBits, Elements, NumElements, ClassTy)#

Create debugging information entry for an enumeration.

Args:
Builder (Pointer/object):

The DIBuilder.

Scope (Pointer/object):

Scope in which this enumeration is defined.

Name (CStr/object):

Enumeration name.

NameLen (int):

Length of enumeration name.

File (Pointer/object):

File where this member is defined.

LineNumber (int):

Line number.

SizeInBits (int):

Member size.

AlignInBits (int):

Member alignment.

Elements (Pointer/object):

Enumeration elements.

NumElements (int):

Number of enumeration elements.

ClassTy (Pointer/object):

Underlying type of a C++11/ObjC fixed enum.

Returns:

None: (undocumented)

C signature

LLVMMetadataRef LLVMDIBuilderCreateEnumerationType(LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, const char * Name, size_t NameLen, LLVMMetadataRef File, unsigned int LineNumber, uint64_t SizeInBits, uint32_t AlignInBits, LLVMMetadataRef * Elements, unsigned int NumElements, LLVMMetadataRef ClassTy)
rocm.bindings.llvm.c.debuginfo.LLVMDIBuilderCreateUnionType(Builder, Scope, Name, NameLen, File, LineNumber, SizeInBits, AlignInBits, Flags, Elements, NumElements, RunTimeLang, UniqueId, UniqueIdLen)#

Create debugging information entry for a union.

Args:
Builder (Pointer/object):

The DIBuilder.

Scope (Pointer/object):

Scope in which this union is defined.

Name (CStr/object):

Union name.

NameLen (int):

Length of union name.

File (Pointer/object):

File where this member is defined.

LineNumber (int):

Line number.

SizeInBits (int):

Member size.

AlignInBits (int):

Member alignment.

Flags (LLVMDIFlags):

Flags to encode member attribute, e.g. private

Elements (Pointer/object):

Union elements.

NumElements (int):

Number of union elements.

RunTimeLang (int):

Optional parameter, Objective-C runtime version.

UniqueId (CStr/object):

A unique identifier for the union.

UniqueIdLen (int):

Length of unique identifier.

Returns:

None: (undocumented)

C signature

LLVMMetadataRef LLVMDIBuilderCreateUnionType(LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, const char * Name, size_t NameLen, LLVMMetadataRef File, unsigned int LineNumber, uint64_t SizeInBits, uint32_t AlignInBits, LLVMDIFlags Flags, LLVMMetadataRef * Elements, unsigned int NumElements, unsigned int RunTimeLang, const char * UniqueId, size_t UniqueIdLen)
rocm.bindings.llvm.c.debuginfo.LLVMDIBuilderCreateArrayType(Builder, Size, AlignInBits, Ty, Subscripts, NumSubscripts)#

Create debugging information entry for an array.

Args:
Builder (Pointer/object):

The DIBuilder.

Size (int):

Array size.

AlignInBits (int):

Alignment.

Ty (Pointer/object):

Element type.

Subscripts (Pointer/object):

Subscripts.

NumSubscripts (int):

Number of subscripts.

Returns:

None: (undocumented)

C signature

LLVMMetadataRef LLVMDIBuilderCreateArrayType(LLVMDIBuilderRef Builder, uint64_t Size, uint32_t AlignInBits, LLVMMetadataRef Ty, LLVMMetadataRef * Subscripts, unsigned int NumSubscripts)
rocm.bindings.llvm.c.debuginfo.LLVMDIBuilderCreateSetType(Builder, Scope, Name, NameLen, File, LineNumber, SizeInBits, AlignInBits, BaseTy)#

Create debugging information entry for a set.

Args:
Builder (Pointer/object):

The DIBuilder.

Scope (Pointer/object):

The scope in which the set is defined.

Name (CStr/object):

A name that uniquely identifies this set.

NameLen (int):

The length of the C string passed to Name.

File (Pointer/object):

File where the set is located.

LineNumber (int):

(undocumented)

SizeInBits (int):

Set size.

AlignInBits (int):

Set alignment.

BaseTy (Pointer/object):

The base type of the set.

Returns:

None: (undocumented)

C signature

LLVMMetadataRef LLVMDIBuilderCreateSetType(LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, const char * Name, size_t NameLen, LLVMMetadataRef File, unsigned int LineNumber, uint64_t SizeInBits, uint32_t AlignInBits, LLVMMetadataRef BaseTy)
rocm.bindings.llvm.c.debuginfo.LLVMDIBuilderCreateSubrangeType(Builder, Scope, Name, NameLen, LineNo, File, SizeInBits, AlignInBits, Flags, BaseTy, LowerBound, UpperBound, Stride, Bias)#

Create a descriptor for a subrange with dynamic bounds.

Args:
Builder (Pointer/object):

The DIBuilder.

Scope (Pointer/object):

The scope in which the subrange is defined.

Name (CStr/object):

A name that uniquely identifies this subrange.

NameLen (int):

The length of the C string passed to Name.

LineNo (int):

Line number.

File (Pointer/object):

File where the subrange is located.

SizeInBits (int):

Member size.

AlignInBits (int):

Member alignment.

Flags (LLVMDIFlags):

Flags.

BaseTy (Pointer/object):

The base type of the subrange. eg integer or enumeration

LowerBound (Pointer/object):

Lower bound of the subrange.

UpperBound (Pointer/object):

Upper bound of the subrange.

Stride (Pointer/object):

Stride of the subrange.

Bias (Pointer/object):

Bias of the subrange.

Returns:

None: (undocumented)

C signature

LLVMMetadataRef LLVMDIBuilderCreateSubrangeType(LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, const char * Name, size_t NameLen, unsigned int LineNo, LLVMMetadataRef File, uint64_t SizeInBits, uint32_t AlignInBits, LLVMDIFlags Flags, LLVMMetadataRef BaseTy, LLVMMetadataRef LowerBound, LLVMMetadataRef UpperBound, LLVMMetadataRef Stride, LLVMMetadataRef Bias)
rocm.bindings.llvm.c.debuginfo.LLVMDIBuilderCreateDynamicArrayType(Builder, Scope, Name, NameLen, LineNo, File, Size, AlignInBits, Ty, Subscripts, NumSubscripts, DataLocation, Associated, Allocated, Rank, BitStride)#

Create debugging information entry for a dynamic array.

Args:
Builder (Pointer/object):

The DIBuilder.

Scope (Pointer/object):

(undocumented)

Name (CStr/object):

(undocumented)

NameLen (int):

(undocumented)

LineNo (int):

(undocumented)

File (Pointer/object):

(undocumented)

Size (int):

Array size.

AlignInBits (int):

Alignment.

Ty (Pointer/object):

Element type.

Subscripts (Pointer/object):

Subscripts.

NumSubscripts (int):

Number of subscripts.

DataLocation (Pointer/object):

DataLocation. (DIVariable, DIExpression or NULL)

Associated (Pointer/object):

Associated. (DIVariable, DIExpression or NULL)

Allocated (Pointer/object):

Allocated. (DIVariable, DIExpression or NULL)

Rank (Pointer/object):

Rank. (DIVariable, DIExpression or NULL)

BitStride (Pointer/object):

BitStride.

Returns:

None: (undocumented)

C signature

LLVMMetadataRef LLVMDIBuilderCreateDynamicArrayType(LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, const char * Name, size_t NameLen, unsigned int LineNo, LLVMMetadataRef File, uint64_t Size, uint32_t AlignInBits, LLVMMetadataRef Ty, LLVMMetadataRef * Subscripts, unsigned int NumSubscripts, LLVMMetadataRef DataLocation, LLVMMetadataRef Associated, LLVMMetadataRef Allocated, LLVMMetadataRef Rank, LLVMMetadataRef BitStride)
rocm.bindings.llvm.c.debuginfo.LLVMReplaceArrays(Builder, T, Elements, NumElements)#

Replace arrays.

See:

DIBuilder::replaceArrays()

Args:
Builder (Pointer/object):

(undocumented)

T (Pointer/object):

(undocumented)

Elements (Pointer/object):

(undocumented)

NumElements (int):

(undocumented)

C signature

void LLVMReplaceArrays(LLVMDIBuilderRef Builder, LLVMMetadataRef * T, LLVMMetadataRef * Elements, unsigned int NumElements)
rocm.bindings.llvm.c.debuginfo.LLVMDIBuilderCreateVectorType(Builder, Size, AlignInBits, Ty, Subscripts, NumSubscripts)#

Create debugging information entry for a vector type.

Args:
Builder (Pointer/object):

The DIBuilder.

Size (int):

Vector size.

AlignInBits (int):

Alignment.

Ty (Pointer/object):

Element type.

Subscripts (Pointer/object):

Subscripts.

NumSubscripts (int):

Number of subscripts.

Returns:

None: (undocumented)

C signature

LLVMMetadataRef LLVMDIBuilderCreateVectorType(LLVMDIBuilderRef Builder, uint64_t Size, uint32_t AlignInBits, LLVMMetadataRef Ty, LLVMMetadataRef * Subscripts, unsigned int NumSubscripts)
rocm.bindings.llvm.c.debuginfo.LLVMDIBuilderCreateUnspecifiedType(Builder, Name, NameLen)#

Create a DWARF unspecified type.

Args:
Builder (Pointer/object):

The DIBuilder.

Name (CStr/object):

The unspecified type’s name.

NameLen (int):

Length of type name.

Returns:

None: (undocumented)

C signature

LLVMMetadataRef LLVMDIBuilderCreateUnspecifiedType(LLVMDIBuilderRef Builder, const char * Name, size_t NameLen)
rocm.bindings.llvm.c.debuginfo.LLVMDIBuilderCreateBasicType(Builder, Name, NameLen, SizeInBits, Encoding, Flags)#

Create debugging information entry for a basic type.

Args:
Builder (Pointer/object):

The DIBuilder.

Name (CStr/object):

Type name.

NameLen (int):

Length of type name.

SizeInBits (int):

Size of the type.

Encoding (int):

DWARF encoding code, e.g. LLVMDWARFTypeEncoding_float.

Flags (LLVMDIFlags):

Flags to encode optional attribute like endianity

Returns:

None: (undocumented)

C signature

LLVMMetadataRef LLVMDIBuilderCreateBasicType(LLVMDIBuilderRef Builder, const char * Name, size_t NameLen, uint64_t SizeInBits, LLVMDWARFTypeEncoding Encoding, LLVMDIFlags Flags)
rocm.bindings.llvm.c.debuginfo.LLVMDIBuilderCreatePointerType(Builder, PointeeTy, SizeInBits, AlignInBits, AddressSpace, MS, Name, NameLen)#

Create debugging information entry for a pointer.

Args:
Builder (Pointer/object):

The DIBuilder.

PointeeTy (Pointer/object):

Type pointed by this pointer.

SizeInBits (int):

Size.

AlignInBits (int):

Alignment. (optional, pass 0 to ignore)

AddressSpace (int):

DWARF address space. (optional, pass 0 to ignore)

MS (int):

(undocumented)

Name (CStr/object):

Pointer type name. (optional)

NameLen (int):

Length of pointer type name. (optional)

Returns:

None: (undocumented)

C signature

LLVMMetadataRef LLVMDIBuilderCreatePointerType(LLVMDIBuilderRef Builder, LLVMMetadataRef PointeeTy, uint64_t SizeInBits, uint32_t AlignInBits, unsigned int AddressSpace, LLVMDWARFMemorySpace MS, const char * Name, size_t NameLen)
rocm.bindings.llvm.c.debuginfo.LLVMDIBuilderCreateStructType(Builder, Scope, Name, NameLen, File, LineNumber, SizeInBits, AlignInBits, Flags, DerivedFrom, Elements, NumElements, RunTimeLang, VTableHolder, UniqueId, UniqueIdLen)#

Create debugging information entry for a struct.

Args:
Builder (Pointer/object):

The DIBuilder.

Scope (Pointer/object):

Scope in which this struct is defined.

Name (CStr/object):

Struct name.

NameLen (int):

Struct name length.

File (Pointer/object):

File where this member is defined.

LineNumber (int):

Line number.

SizeInBits (int):

Member size.

AlignInBits (int):

Member alignment.

Flags (LLVMDIFlags):

Flags to encode member attribute, e.g. private

DerivedFrom (Pointer/object):

(undocumented)

Elements (Pointer/object):

Struct elements.

NumElements (int):

Number of struct elements.

RunTimeLang (int):

Optional parameter, Objective-C runtime version.

VTableHolder (Pointer/object):

The object containing the vtable for the struct.

UniqueId (CStr/object):

A unique identifier for the struct.

UniqueIdLen (int):

Length of the unique identifier for the struct.

Returns:

None: (undocumented)

C signature

LLVMMetadataRef LLVMDIBuilderCreateStructType(LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, const char * Name, size_t NameLen, LLVMMetadataRef File, unsigned int LineNumber, uint64_t SizeInBits, uint32_t AlignInBits, LLVMDIFlags Flags, LLVMMetadataRef DerivedFrom, LLVMMetadataRef * Elements, unsigned int NumElements, unsigned int RunTimeLang, LLVMMetadataRef VTableHolder, const char * UniqueId, size_t UniqueIdLen)
rocm.bindings.llvm.c.debuginfo.LLVMDIBuilderCreateMemberType(Builder, Scope, Name, NameLen, File, LineNo, SizeInBits, AlignInBits, OffsetInBits, Flags, Ty)#

Create debugging information entry for a member.

Args:
Builder (Pointer/object):

The DIBuilder.

Scope (Pointer/object):

Member scope.

Name (CStr/object):

Member name.

NameLen (int):

Length of member name.

File (Pointer/object):

File where this member is defined.

LineNo (int):

Line number.

SizeInBits (int):

Member size.

AlignInBits (int):

Member alignment.

OffsetInBits (int):

Member offset.

Flags (LLVMDIFlags):

Flags to encode member attribute, e.g. private

Ty (Pointer/object):

Parent type.

Returns:

None: (undocumented)

C signature

LLVMMetadataRef LLVMDIBuilderCreateMemberType(LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, const char * Name, size_t NameLen, LLVMMetadataRef File, unsigned int LineNo, uint64_t SizeInBits, uint32_t AlignInBits, uint64_t OffsetInBits, LLVMDIFlags Flags, LLVMMetadataRef Ty)
rocm.bindings.llvm.c.debuginfo.LLVMDIBuilderCreateStaticMemberType(Builder, Scope, Name, NameLen, File, LineNumber, Type, Flags, ConstantVal, AlignInBits)#

Create debugging information entry for a C++ static data member.

Args:
Builder (Pointer/object):

The DIBuilder.

Scope (Pointer/object):

Member scope.

Name (CStr/object):

Member name.

NameLen (int):

Length of member name.

File (Pointer/object):

File where this member is declared.

LineNumber (int):

Line number.

Type (Pointer/object):

Type of the static member.

Flags (LLVMDIFlags):

Flags to encode member attribute, e.g. private.

ConstantVal (Pointer/object):

Const initializer of the member.

AlignInBits (int):

Member alignment.

Returns:

None: (undocumented)

C signature

LLVMMetadataRef LLVMDIBuilderCreateStaticMemberType(LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, const char * Name, size_t NameLen, LLVMMetadataRef File, unsigned int LineNumber, LLVMMetadataRef Type, LLVMDIFlags Flags, LLVMValueRef ConstantVal, uint32_t AlignInBits)
rocm.bindings.llvm.c.debuginfo.LLVMDIBuilderCreateMemberPointerType(Builder, PointeeType, ClassType, SizeInBits, AlignInBits, Flags)#

Create debugging information entry for a pointer to member.

Args:
Builder (Pointer/object):

The DIBuilder.

PointeeType (Pointer/object):

Type pointed to by this pointer.

ClassType (Pointer/object):

Type for which this pointer points to members of.

SizeInBits (int):

Size.

AlignInBits (int):

Alignment.

Flags (LLVMDIFlags):

Flags.

Returns:

None: (undocumented)

C signature

LLVMMetadataRef LLVMDIBuilderCreateMemberPointerType(LLVMDIBuilderRef Builder, LLVMMetadataRef PointeeType, LLVMMetadataRef ClassType, uint64_t SizeInBits, uint32_t AlignInBits, LLVMDIFlags Flags)
rocm.bindings.llvm.c.debuginfo.LLVMDIBuilderCreateObjCIVar(Builder, Name, NameLen, File, LineNo, SizeInBits, AlignInBits, OffsetInBits, Flags, Ty, PropertyNode)#

Create debugging information entry for Objective-C instance variable.

Args:
Builder (Pointer/object):

The DIBuilder.

Name (CStr/object):

Member name.

NameLen (int):

The length of the C string passed to Name.

File (Pointer/object):

File where this member is defined.

LineNo (int):

Line number.

SizeInBits (int):

Member size.

AlignInBits (int):

Member alignment.

OffsetInBits (int):

Member offset.

Flags (LLVMDIFlags):

Flags to encode member attribute, e.g. private

Ty (Pointer/object):

Parent type.

PropertyNode (Pointer/object):

Property associated with this ivar.

Returns:

None: (undocumented)

C signature

LLVMMetadataRef LLVMDIBuilderCreateObjCIVar(LLVMDIBuilderRef Builder, const char * Name, size_t NameLen, LLVMMetadataRef File, unsigned int LineNo, uint64_t SizeInBits, uint32_t AlignInBits, uint64_t OffsetInBits, LLVMDIFlags Flags, LLVMMetadataRef Ty, LLVMMetadataRef PropertyNode)
rocm.bindings.llvm.c.debuginfo.LLVMDIBuilderCreateObjCProperty(Builder, Name, NameLen, File, LineNo, GetterName, GetterNameLen, SetterName, SetterNameLen, PropertyAttributes, Ty)#

Create debugging information entry for Objective-C property.

Args:
Builder (Pointer/object):

The DIBuilder.

Name (CStr/object):

Property name.

NameLen (int):

The length of the C string passed to Name.

File (Pointer/object):

File where this property is defined.

LineNo (int):

Line number.

GetterName (CStr/object):

Name of the Objective C property getter selector.

GetterNameLen (int):

The length of the C string passed to GetterName.

SetterName (CStr/object):

Name of the Objective C property setter selector.

SetterNameLen (int):

The length of the C string passed to SetterName.

PropertyAttributes (int):

Objective C property attributes.

Ty (Pointer/object):

Type.

Returns:

None: (undocumented)

C signature

LLVMMetadataRef LLVMDIBuilderCreateObjCProperty(LLVMDIBuilderRef Builder, const char * Name, size_t NameLen, LLVMMetadataRef File, unsigned int LineNo, const char * GetterName, size_t GetterNameLen, const char * SetterName, size_t SetterNameLen, unsigned int PropertyAttributes, LLVMMetadataRef Ty)
rocm.bindings.llvm.c.debuginfo.LLVMDIBuilderCreateObjectPointerType(Builder, Type, Implicit)#

Create a uniqued DIType* clone with FlagObjectPointer.

If Implicit is true, then also set FlagArtificial.

Args:
Builder (Pointer/object):

The DIBuilder.

Type (Pointer/object):

The underlying type to which this pointer points.

Implicit (int):

Indicates whether this pointer was implicitly generated (i.e., not spelled out in source).

Returns:

None: (undocumented)

C signature

LLVMMetadataRef LLVMDIBuilderCreateObjectPointerType(LLVMDIBuilderRef Builder, LLVMMetadataRef Type, LLVMBool Implicit)
rocm.bindings.llvm.c.debuginfo.LLVMDIBuilderCreateQualifiedType(Builder, Tag, Type)#

Create debugging information entry for a qualified type, e.g.

‘const int’.

Args:
Builder (Pointer/object):

The DIBuilder.

Tag (int):

Tag identifying type, e.g. LLVMDWARFTypeQualifier_volatile_type

Type (Pointer/object):

Base Type.

Returns:

None: (undocumented)

C signature

LLVMMetadataRef LLVMDIBuilderCreateQualifiedType(LLVMDIBuilderRef Builder, unsigned int Tag, LLVMMetadataRef Type)
rocm.bindings.llvm.c.debuginfo.LLVMDIBuilderCreateReferenceType(Builder, Tag, Type, AddressSpace, MemorySpace)#

Create debugging information entry for a c++ style reference or rvalue reference type.

Args:
Builder (Pointer/object):

The DIBuilder.

Tag (int):

Tag identifying type,

Type (Pointer/object):

Base Type.

AddressSpace (int):

DWARF address space. (optional, pass 0 to ignore)

MemorySpace (int):

DWARF memory space (optional, pass 0 for none).

Returns:

None: (undocumented)

C signature

LLVMMetadataRef LLVMDIBuilderCreateReferenceType(LLVMDIBuilderRef Builder, unsigned int Tag, LLVMMetadataRef Type, unsigned int AddressSpace, LLVMDWARFMemorySpace MemorySpace)
rocm.bindings.llvm.c.debuginfo.LLVMDIBuilderCreateNullPtrType(Builder)#

Create C++11 nullptr type.

Args:
Builder (Pointer/object):

The DIBuilder.

Returns:

None: (undocumented)

C signature

LLVMMetadataRef LLVMDIBuilderCreateNullPtrType(LLVMDIBuilderRef Builder)
rocm.bindings.llvm.c.debuginfo.LLVMDIBuilderCreateTypedef(Builder, Type, Name, NameLen, File, LineNo, Scope, AlignInBits)#

Create debugging information entry for a typedef.

Args:
Builder (Pointer/object):

The DIBuilder.

Type (Pointer/object):

Original type.

Name (CStr/object):

Typedef name.

NameLen (int):

(undocumented)

File (Pointer/object):

File where this type is defined.

LineNo (int):

Line number.

Scope (Pointer/object):

The surrounding context for the typedef.

AlignInBits (int):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMMetadataRef LLVMDIBuilderCreateTypedef(LLVMDIBuilderRef Builder, LLVMMetadataRef Type, const char * Name, size_t NameLen, LLVMMetadataRef File, unsigned int LineNo, LLVMMetadataRef Scope, uint32_t AlignInBits)
rocm.bindings.llvm.c.debuginfo.LLVMDIBuilderCreateInheritance(Builder, Ty, BaseTy, BaseOffset, VBPtrOffset, Flags)#

Create debugging information entry to establish inheritance relationship between two types.

Args:
Builder (Pointer/object):

The DIBuilder.

Ty (Pointer/object):

Original type.

BaseTy (Pointer/object):

Base type. Ty is inherits from base.

BaseOffset (int):

Base offset.

VBPtrOffset (int):

Virtual base pointer offset.

Flags (LLVMDIFlags):

Flags to describe inheritance attribute, e.g. private

Returns:

None: (undocumented)

C signature

LLVMMetadataRef LLVMDIBuilderCreateInheritance(LLVMDIBuilderRef Builder, LLVMMetadataRef Ty, LLVMMetadataRef BaseTy, uint64_t BaseOffset, uint32_t VBPtrOffset, LLVMDIFlags Flags)
rocm.bindings.llvm.c.debuginfo.LLVMDIBuilderCreateForwardDecl(Builder, Tag, Name, NameLen, Scope, File, Line, RuntimeLang, SizeInBits, AlignInBits, UniqueIdentifier, UniqueIdentifierLen)#

Create a permanent forward-declared type.

Args:
Builder (Pointer/object):

The DIBuilder.

Tag (int):

A unique tag for this type.

Name (CStr/object):

Type name.

NameLen (int):

Length of type name.

Scope (Pointer/object):

Type scope.

File (Pointer/object):

File where this type is defined.

Line (int):

Line number where this type is defined.

RuntimeLang (int):

Indicates runtime version for languages like Objective-C.

SizeInBits (int):

Member size.

AlignInBits (int):

Member alignment.

UniqueIdentifier (CStr/object):

A unique identifier for the type.

UniqueIdentifierLen (int):

Length of the unique identifier.

Returns:

None: (undocumented)

C signature

LLVMMetadataRef LLVMDIBuilderCreateForwardDecl(LLVMDIBuilderRef Builder, unsigned int Tag, const char * Name, size_t NameLen, LLVMMetadataRef Scope, LLVMMetadataRef File, unsigned int Line, unsigned int RuntimeLang, uint64_t SizeInBits, uint32_t AlignInBits, const char * UniqueIdentifier, size_t UniqueIdentifierLen)
rocm.bindings.llvm.c.debuginfo.LLVMDIBuilderCreateReplaceableCompositeType(Builder, Tag, Name, NameLen, Scope, File, Line, RuntimeLang, SizeInBits, AlignInBits, Flags, UniqueIdentifier, UniqueIdentifierLen)#

Create a temporary forward-declared type.

Args:
Builder (Pointer/object):

The DIBuilder.

Tag (int):

A unique tag for this type.

Name (CStr/object):

Type name.

NameLen (int):

Length of type name.

Scope (Pointer/object):

Type scope.

File (Pointer/object):

File where this type is defined.

Line (int):

Line number where this type is defined.

RuntimeLang (int):

Indicates runtime version for languages like Objective-C.

SizeInBits (int):

Member size.

AlignInBits (int):

Member alignment.

Flags (LLVMDIFlags):

Flags.

UniqueIdentifier (CStr/object):

A unique identifier for the type.

UniqueIdentifierLen (int):

Length of the unique identifier.

Returns:

None: (undocumented)

C signature

LLVMMetadataRef LLVMDIBuilderCreateReplaceableCompositeType(LLVMDIBuilderRef Builder, unsigned int Tag, const char * Name, size_t NameLen, LLVMMetadataRef Scope, LLVMMetadataRef File, unsigned int Line, unsigned int RuntimeLang, uint64_t SizeInBits, uint32_t AlignInBits, LLVMDIFlags Flags, const char * UniqueIdentifier, size_t UniqueIdentifierLen)
rocm.bindings.llvm.c.debuginfo.LLVMDIBuilderCreateBitFieldMemberType(Builder, Scope, Name, NameLen, File, LineNumber, SizeInBits, OffsetInBits, StorageOffsetInBits, Flags, Type)#

Create debugging information entry for a bit field member.

Args:
Builder (Pointer/object):

The DIBuilder.

Scope (Pointer/object):

Member scope.

Name (CStr/object):

Member name.

NameLen (int):

Length of member name.

File (Pointer/object):

File where this member is defined.

LineNumber (int):

Line number.

SizeInBits (int):

Member size.

OffsetInBits (int):

Member offset.

StorageOffsetInBits (int):

Member storage offset.

Flags (LLVMDIFlags):

Flags to encode member attribute.

Type (Pointer/object):

Parent type.

Returns:

None: (undocumented)

C signature

LLVMMetadataRef LLVMDIBuilderCreateBitFieldMemberType(LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, const char * Name, size_t NameLen, LLVMMetadataRef File, unsigned int LineNumber, uint64_t SizeInBits, uint64_t OffsetInBits, uint64_t StorageOffsetInBits, LLVMDIFlags Flags, LLVMMetadataRef Type)
rocm.bindings.llvm.c.debuginfo.LLVMDIBuilderCreateClassType(Builder, Scope, Name, NameLen, File, LineNumber, SizeInBits, AlignInBits, OffsetInBits, Flags, DerivedFrom, Elements, NumElements, VTableHolder, TemplateParamsNode, UniqueIdentifier, UniqueIdentifierLen)#

Create debugging information entry for a class.

Args:
Builder (Pointer/object):

(undocumented)

Scope (Pointer/object):

Scope in which this class is defined.

Name (CStr/object):

Class name.

NameLen (int):

The length of the C string passed to Name.

File (Pointer/object):

File where this member is defined.

LineNumber (int):

Line number.

SizeInBits (int):

Member size.

AlignInBits (int):

Member alignment.

OffsetInBits (int):

Member offset.

Flags (LLVMDIFlags):

Flags to encode member attribute, e.g. private.

DerivedFrom (Pointer/object):

Debug info of the base class of this type.

Elements (Pointer/object):

Class members.

NumElements (int):

Number of class elements.

VTableHolder (Pointer/object):

Debug info of the base class that contains vtable for this type. This is used in DW_AT_containing_type. See DWARF documentation for more info.

TemplateParamsNode (Pointer/object):

Template type parameters.

UniqueIdentifier (CStr/object):

A unique identifier for the type.

UniqueIdentifierLen (int):

Length of the unique identifier.

Returns:

None: (undocumented)

C signature

LLVMMetadataRef LLVMDIBuilderCreateClassType(LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, const char * Name, size_t NameLen, LLVMMetadataRef File, unsigned int LineNumber, uint64_t SizeInBits, uint32_t AlignInBits, uint64_t OffsetInBits, LLVMDIFlags Flags, LLVMMetadataRef DerivedFrom, LLVMMetadataRef * Elements, unsigned int NumElements, LLVMMetadataRef VTableHolder, LLVMMetadataRef TemplateParamsNode, const char * UniqueIdentifier, size_t UniqueIdentifierLen)
rocm.bindings.llvm.c.debuginfo.LLVMDIBuilderCreateArtificialType(Builder, Type)#

Create a uniqued DIType* clone with FlagArtificial set.

Args:
Builder (Pointer/object):

The DIBuilder.

Type (Pointer/object):

The underlying type.

Returns:

None: (undocumented)

C signature

LLVMMetadataRef LLVMDIBuilderCreateArtificialType(LLVMDIBuilderRef Builder, LLVMMetadataRef Type)
rocm.bindings.llvm.c.debuginfo.LLVMDITypeGetName(DType, Length)#

Get the name of this DIType.

See:

DIType::getName()

Args:
DType (Pointer/object):

The DIType.

Length (PointerToUInt64/object):

The length of the returned string.

Returns:

bytes: (undocumented)

C signature

const char * LLVMDITypeGetName(LLVMMetadataRef DType, size_t * Length)
rocm.bindings.llvm.c.debuginfo.LLVMDITypeGetSizeInBits(DType)#

Get the size of this DIType in bits.

See:

DIType::getSizeInBits()

Args:
DType (Pointer/object):

The DIType.

Returns:

int: (undocumented)

C signature

uint64_t LLVMDITypeGetSizeInBits(LLVMMetadataRef DType)
rocm.bindings.llvm.c.debuginfo.LLVMDITypeGetOffsetInBits(DType)#

Get the offset of this DIType in bits.

See:

DIType::getOffsetInBits()

Args:
DType (Pointer/object):

The DIType.

Returns:

int: (undocumented)

C signature

uint64_t LLVMDITypeGetOffsetInBits(LLVMMetadataRef DType)
rocm.bindings.llvm.c.debuginfo.LLVMDITypeGetAlignInBits(DType)#

Get the alignment of this DIType in bits.

See:

DIType::getAlignInBits()

Args:
DType (Pointer/object):

The DIType.

Returns:

int: (undocumented)

C signature

uint32_t LLVMDITypeGetAlignInBits(LLVMMetadataRef DType)
rocm.bindings.llvm.c.debuginfo.LLVMDITypeGetLine(DType)#

Get the source line where this DIType is declared.

See:

DIType::getLine()

Args:
DType (Pointer/object):

The DIType.

Returns:

int: (undocumented)

C signature

unsigned int LLVMDITypeGetLine(LLVMMetadataRef DType)
rocm.bindings.llvm.c.debuginfo.LLVMDITypeGetFlags(DType)#

Get the flags associated with this DIType.

See:

DIType::getFlags()

Args:
DType (Pointer/object):

The DIType.

Returns:

LLVMDIFlags: (undocumented)

C signature

LLVMDIFlags LLVMDITypeGetFlags(LLVMMetadataRef DType)
rocm.bindings.llvm.c.debuginfo.LLVMDIBuilderGetOrCreateSubrange(Builder, LowerBound, Count)#

Create a descriptor for a value range.

Args:
Builder (Pointer/object):

The DIBuilder.

LowerBound (int):

Lower bound of the subrange, e.g. 0 for C, 1 for Fortran.

Count (int):

Count of elements in the subrange.

Returns:

None: (undocumented)

C signature

LLVMMetadataRef LLVMDIBuilderGetOrCreateSubrange(LLVMDIBuilderRef Builder, int64_t LowerBound, int64_t Count)
rocm.bindings.llvm.c.debuginfo.LLVMDIBuilderGetOrCreateArray(Builder, Data, NumElements)#

Create an array of DI Nodes.

Args:
Builder (Pointer/object):

The DIBuilder.

Data (Pointer/object):

The DI Node elements.

NumElements (int):

Number of DI Node elements.

Returns:

None: (undocumented)

C signature

LLVMMetadataRef LLVMDIBuilderGetOrCreateArray(LLVMDIBuilderRef Builder, LLVMMetadataRef * Data, size_t NumElements)
rocm.bindings.llvm.c.debuginfo.LLVMDIBuilderCreateExpression(Builder, Addr, Length)#

Create a new descriptor for the specified variable which has a complex address expression for its address.

Args:
Builder (Pointer/object):

The DIBuilder.

Addr (PointerToUInt64/object):

An array of complex address operations.

Length (int):

Length of the address operation array.

Returns:

None: (undocumented)

C signature

LLVMMetadataRef LLVMDIBuilderCreateExpression(LLVMDIBuilderRef Builder, uint64_t * Addr, size_t Length)
rocm.bindings.llvm.c.debuginfo.LLVMDIBuilderCreateConstantValueExpression(Builder, Value)#

Create a new descriptor for the specified variable that does not have an address, but does have a constant value.

Args:
Builder (Pointer/object):

The DIBuilder.

Value (int):

The constant value.

Returns:

None: (undocumented)

C signature

LLVMMetadataRef LLVMDIBuilderCreateConstantValueExpression(LLVMDIBuilderRef Builder, uint64_t Value)
rocm.bindings.llvm.c.debuginfo.LLVMDIBuilderCreateGlobalVariableExpression(Builder, Scope, Name, NameLen, Linkage, LinkLen, File, LineNo, Ty, LocalToUnit, Expr, Decl, MS, AlignInBits)#

Create a new descriptor for the specified variable.

Args:
Builder (Pointer/object):

(undocumented)

Scope (Pointer/object):

Variable scope.

Name (CStr/object):

Name of the variable.

NameLen (int):

The length of the C string passed to Name.

Linkage (CStr/object):

Mangled name of the variable.

LinkLen (int):

The length of the C string passed to Linkage.

File (Pointer/object):

File where this variable is defined.

LineNo (int):

Line number.

Ty (Pointer/object):

Variable Type.

LocalToUnit (int):

Boolean flag indicate whether this variable is externally visible or not.

Expr (Pointer/object):

The location of the global relative to the attached GlobalVariable.

Decl (Pointer/object):

Reference to the corresponding declaration. variables.

MS (int):

(undocumented)

AlignInBits (int):

Variable alignment(or 0 if no alignment attr was specified)

Returns:

None: (undocumented)

C signature

LLVMMetadataRef LLVMDIBuilderCreateGlobalVariableExpression(LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, const char * Name, size_t NameLen, const char * Linkage, size_t LinkLen, LLVMMetadataRef File, unsigned int LineNo, LLVMMetadataRef Ty, LLVMBool LocalToUnit, LLVMMetadataRef Expr, LLVMMetadataRef Decl, LLVMDWARFMemorySpace MS, uint32_t AlignInBits)
rocm.bindings.llvm.c.debuginfo.LLVMGetDINodeTag(MD)#

Get the dwarf::Tag of a DINode

Args:
MD (Pointer/object):

(undocumented)

Returns:

int: (undocumented)

C signature

uint16_t LLVMGetDINodeTag(LLVMMetadataRef MD)
rocm.bindings.llvm.c.debuginfo.LLVMDIGlobalVariableExpressionGetVariable(GVE)#

Retrieves the DIVariable associated with this global variable expression.

See:

llvm::DIGlobalVariableExpression::getVariable()

Args:
GVE (Pointer/object):

The global variable expression.

Returns:

None: (undocumented)

C signature

LLVMMetadataRef LLVMDIGlobalVariableExpressionGetVariable(LLVMMetadataRef GVE)
rocm.bindings.llvm.c.debuginfo.LLVMDIGlobalVariableExpressionGetExpression(GVE)#

Retrieves the DIExpression associated with this global variable expression.

See:

llvm::DIGlobalVariableExpression::getExpression()

Args:
GVE (Pointer/object):

The global variable expression.

Returns:

None: (undocumented)

C signature

LLVMMetadataRef LLVMDIGlobalVariableExpressionGetExpression(LLVMMetadataRef GVE)
rocm.bindings.llvm.c.debuginfo.LLVMDIVariableGetFile(Var)#

Get the metadata of the file associated with a given variable.

See:

DIVariable::getFile()

Args:
Var (Pointer/object):

The variable object.

Returns:

None: (undocumented)

C signature

LLVMMetadataRef LLVMDIVariableGetFile(LLVMMetadataRef Var)
rocm.bindings.llvm.c.debuginfo.LLVMDIVariableGetScope(Var)#

Get the metadata of the scope associated with a given variable.

See:

DIVariable::getScope()

Args:
Var (Pointer/object):

The variable object.

Returns:

None: (undocumented)

C signature

LLVMMetadataRef LLVMDIVariableGetScope(LLVMMetadataRef Var)
rocm.bindings.llvm.c.debuginfo.LLVMDIVariableGetLine(Var)#

Get the source line where this DIVariable is declared.

See:

DIVariable::getLine()

Args:
Var (Pointer/object):

The DIVariable.

Returns:

int: (undocumented)

C signature

unsigned int LLVMDIVariableGetLine(LLVMMetadataRef Var)
rocm.bindings.llvm.c.debuginfo.LLVMTemporaryMDNode(Ctx, Data, NumElements)#

Create a new temporary MDNode. Suitable for use in constructing cyclic MDNode structures.

A temporary MDNode is not uniqued, may be RAUW’d, and must be manually deleted with LLVMDisposeTemporaryMDNode.

Args:
Ctx (Pointer/object):

The context in which to construct the temporary node.

Data (Pointer/object):

The metadata elements.

NumElements (int):

Number of metadata elements.

Returns:

None: (undocumented)

C signature

LLVMMetadataRef LLVMTemporaryMDNode(LLVMContextRef Ctx, LLVMMetadataRef * Data, size_t NumElements)
rocm.bindings.llvm.c.debuginfo.LLVMDisposeTemporaryMDNode(TempNode)#

Deallocate a temporary node.

Calls replaceAllUsesWith(nullptr) before deleting, so any remaining references will be reset.

Args:
TempNode (Pointer/object):

The temporary metadata node.

C signature

void LLVMDisposeTemporaryMDNode(LLVMMetadataRef TempNode)
rocm.bindings.llvm.c.debuginfo.LLVMMetadataReplaceAllUsesWith(TempTargetMetadata, Replacement)#

Replace all uses of temporary metadata.

Args:
TempTargetMetadata (Pointer/object):

The temporary metadata node.

Replacement (Pointer/object):

The replacement metadata node.

C signature

void LLVMMetadataReplaceAllUsesWith(LLVMMetadataRef TempTargetMetadata, LLVMMetadataRef Replacement)
rocm.bindings.llvm.c.debuginfo.LLVMDIBuilderCreateTempGlobalVariableFwdDecl(Builder, Scope, Name, NameLen, Linkage, LnkLen, File, LineNo, Ty, LocalToUnit, Decl, AlignInBits)#

Create a new descriptor for the specified global variable that is temporary and meant to be RAUWed.

Args:
Builder (Pointer/object):

(undocumented)

Scope (Pointer/object):

Variable scope.

Name (CStr/object):

Name of the variable.

NameLen (int):

The length of the C string passed to Name.

Linkage (CStr/object):

Mangled name of the variable.

LnkLen (int):

The length of the C string passed to Linkage.

File (Pointer/object):

File where this variable is defined.

LineNo (int):

Line number.

Ty (Pointer/object):

Variable Type.

LocalToUnit (int):

Boolean flag indicate whether this variable is externally visible or not.

Decl (Pointer/object):

Reference to the corresponding declaration.

AlignInBits (int):

Variable alignment(or 0 if no alignment attr was specified)

Returns:

None: (undocumented)

C signature

LLVMMetadataRef LLVMDIBuilderCreateTempGlobalVariableFwdDecl(LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, const char * Name, size_t NameLen, const char * Linkage, size_t LnkLen, LLVMMetadataRef File, unsigned int LineNo, LLVMMetadataRef Ty, LLVMBool LocalToUnit, LLVMMetadataRef Decl, uint32_t AlignInBits)
rocm.bindings.llvm.c.debuginfo.LLVMDIBuilderInsertDeclareRecordBefore(Builder, Storage, VarInfo, Expr, DebugLoc, Instr)#

Only use in “new debug format” (LLVMIsNewDbgInfoFormat() is true).

See https://llvm.org/docs/RemoveDIsDebugInfo.html:py:obj:c-api-changes

The debug format can be switched later after inserting the records using LLVMSetIsNewDbgInfoFormat, if needed for legacy or transitionary reasons.

Insert a Declare DbgRecord before the given instruction.

Args:
Builder (Pointer/object):

The DIBuilder.

Storage (Pointer/object):

The storage of the variable to declare.

VarInfo (Pointer/object):

The variable’s debug info descriptor.

Expr (Pointer/object):

A complex location expression for the variable.

DebugLoc (Pointer/object):

Debug info location.

Instr (Pointer/object):

Instruction acting as a location for the new record.

Returns:

None: (undocumented)

C signature

LLVMDbgRecordRef LLVMDIBuilderInsertDeclareRecordBefore(LLVMDIBuilderRef Builder, LLVMValueRef Storage, LLVMMetadataRef VarInfo, LLVMMetadataRef Expr, LLVMMetadataRef DebugLoc, LLVMValueRef Instr)
rocm.bindings.llvm.c.debuginfo.LLVMDIBuilderInsertDeclareRecordAtEnd(Builder, Storage, VarInfo, Expr, DebugLoc, Block)#

Only use in “new debug format” (LLVMIsNewDbgInfoFormat() is true).

See https://llvm.org/docs/RemoveDIsDebugInfo.html:py:obj:c-api-changes

The debug format can be switched later after inserting the records using LLVMSetIsNewDbgInfoFormat, if needed for legacy or transitionary reasons.

Insert a Declare DbgRecord at the end of the given basic block. If the basic block has a terminator instruction, the record is inserted before that terminator instruction.

Args:
Builder (Pointer/object):

The DIBuilder.

Storage (Pointer/object):

The storage of the variable to declare.

VarInfo (Pointer/object):

The variable’s debug info descriptor.

Expr (Pointer/object):

A complex location expression for the variable.

DebugLoc (Pointer/object):

Debug info location.

Block (Pointer/object):

Basic block acting as a location for the new record.

Returns:

None: (undocumented)

C signature

LLVMDbgRecordRef LLVMDIBuilderInsertDeclareRecordAtEnd(LLVMDIBuilderRef Builder, LLVMValueRef Storage, LLVMMetadataRef VarInfo, LLVMMetadataRef Expr, LLVMMetadataRef DebugLoc, LLVMBasicBlockRef Block)
rocm.bindings.llvm.c.debuginfo.LLVMDIBuilderInsertDbgValueRecordBefore(Builder, Val, VarInfo, Expr, DebugLoc, Instr)#

Only use in “new debug format” (LLVMIsNewDbgInfoFormat() is true).

See https://llvm.org/docs/RemoveDIsDebugInfo.html:py:obj:c-api-changes

The debug format can be switched later after inserting the records using LLVMSetIsNewDbgInfoFormat, if needed for legacy or transitionary reasons.

Insert a new debug record before the given instruction.

Args:
Builder (Pointer/object):

The DIBuilder.

Val (Pointer/object):

The value of the variable.

VarInfo (Pointer/object):

The variable’s debug info descriptor.

Expr (Pointer/object):

A complex location expression for the variable.

DebugLoc (Pointer/object):

Debug info location.

Instr (Pointer/object):

Instruction acting as a location for the new record.

Returns:

None: (undocumented)

C signature

LLVMDbgRecordRef LLVMDIBuilderInsertDbgValueRecordBefore(LLVMDIBuilderRef Builder, LLVMValueRef Val, LLVMMetadataRef VarInfo, LLVMMetadataRef Expr, LLVMMetadataRef DebugLoc, LLVMValueRef Instr)
rocm.bindings.llvm.c.debuginfo.LLVMDIBuilderInsertDbgValueRecordAtEnd(Builder, Val, VarInfo, Expr, DebugLoc, Block)#

Only use in “new debug format” (LLVMIsNewDbgInfoFormat() is true).

See https://llvm.org/docs/RemoveDIsDebugInfo.html:py:obj:c-api-changes

The debug format can be switched later after inserting the records using LLVMSetIsNewDbgInfoFormat, if needed for legacy or transitionary reasons.

Insert a new debug record at the end of the given basic block. If the basic block has a terminator instruction, the record is inserted before that terminator instruction.

Args:
Builder (Pointer/object):

The DIBuilder.

Val (Pointer/object):

The value of the variable.

VarInfo (Pointer/object):

The variable’s debug info descriptor.

Expr (Pointer/object):

A complex location expression for the variable.

DebugLoc (Pointer/object):

Debug info location.

Block (Pointer/object):

Basic block acting as a location for the new record.

Returns:

None: (undocumented)

C signature

LLVMDbgRecordRef LLVMDIBuilderInsertDbgValueRecordAtEnd(LLVMDIBuilderRef Builder, LLVMValueRef Val, LLVMMetadataRef VarInfo, LLVMMetadataRef Expr, LLVMMetadataRef DebugLoc, LLVMBasicBlockRef Block)
rocm.bindings.llvm.c.debuginfo.LLVMDIBuilderCreateAutoVariable(Builder, Scope, Name, NameLen, File, LineNo, Ty, AlwaysPreserve, Flags, MS, AlignInBits)#

Create a new descriptor for a local auto variable.

Args:
Builder (Pointer/object):

The DIBuilder.

Scope (Pointer/object):

The local scope the variable is declared in.

Name (CStr/object):

Variable name.

NameLen (int):

Length of variable name.

File (Pointer/object):

File where this variable is defined.

LineNo (int):

Line number.

Ty (Pointer/object):

Metadata describing the type of the variable.

AlwaysPreserve (int):

If true, this descriptor will survive optimizations.

Flags (LLVMDIFlags):

Flags.

MS (int):

(undocumented)

AlignInBits (int):

Variable alignment.

Returns:

None: (undocumented)

C signature

LLVMMetadataRef LLVMDIBuilderCreateAutoVariable(LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, const char * Name, size_t NameLen, LLVMMetadataRef File, unsigned int LineNo, LLVMMetadataRef Ty, LLVMBool AlwaysPreserve, LLVMDIFlags Flags, LLVMDWARFMemorySpace MS, uint32_t AlignInBits)
rocm.bindings.llvm.c.debuginfo.LLVMDIBuilderCreateParameterVariable(Builder, Scope, Name, NameLen, ArgNo, File, LineNo, Ty, AlwaysPreserve, Flags)#

Create a new descriptor for a function parameter variable.

Args:
Builder (Pointer/object):

The DIBuilder.

Scope (Pointer/object):

The local scope the variable is declared in.

Name (CStr/object):

Variable name.

NameLen (int):

Length of variable name.

ArgNo (int):

Unique argument number for this variable; starts at 1.

File (Pointer/object):

File where this variable is defined.

LineNo (int):

Line number.

Ty (Pointer/object):

Metadata describing the type of the variable.

AlwaysPreserve (int):

If true, this descriptor will survive optimizations.

Flags (LLVMDIFlags):

Flags.

Returns:

None: (undocumented)

C signature

LLVMMetadataRef LLVMDIBuilderCreateParameterVariable(LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, const char * Name, size_t NameLen, unsigned int ArgNo, LLVMMetadataRef File, unsigned int LineNo, LLVMMetadataRef Ty, LLVMBool AlwaysPreserve, LLVMDIFlags Flags)
rocm.bindings.llvm.c.debuginfo.LLVMGetSubprogram(Func)#

Get the metadata of the subprogram attached to a function.

See:

llvm::Function::getSubprogram()

Args:
Func (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMMetadataRef LLVMGetSubprogram(LLVMValueRef Func)
rocm.bindings.llvm.c.debuginfo.LLVMSetSubprogram(Func, SP)#

Set the subprogram attached to a function.

See:

llvm::Function::setSubprogram()

Args:
Func (Pointer/object):

(undocumented)

SP (Pointer/object):

(undocumented)

C signature

void LLVMSetSubprogram(LLVMValueRef Func, LLVMMetadataRef SP)
rocm.bindings.llvm.c.debuginfo.LLVMDISubprogramGetLine(Subprogram)#

Get the line associated with a given subprogram.

See:

DISubprogram::getLine()

Args:
Subprogram (Pointer/object):

The subprogram object.

Returns:

int: (undocumented)

C signature

unsigned int LLVMDISubprogramGetLine(LLVMMetadataRef Subprogram)
rocm.bindings.llvm.c.debuginfo.LLVMDISubprogramReplaceType(Subprogram, SubroutineType)#

Replace the subprogram subroutine type.

See:

DISubprogram::replaceType()

Args:
Subprogram (Pointer/object):

The subprogram object.

SubroutineType (Pointer/object):

The new subroutine type.

C signature

void LLVMDISubprogramReplaceType(LLVMMetadataRef Subprogram, LLVMMetadataRef SubroutineType)
rocm.bindings.llvm.c.debuginfo.LLVMInstructionGetDebugLoc(Inst)#

Get the debug location for the given instruction.

See:

llvm::Instruction::getDebugLoc()

Args:
Inst (Pointer/object):

(undocumented)

Returns:

None: (undocumented)

C signature

LLVMMetadataRef LLVMInstructionGetDebugLoc(LLVMValueRef Inst)
rocm.bindings.llvm.c.debuginfo.LLVMInstructionSetDebugLoc(Inst, Loc)#

Set the debug location for the given instruction.

To clear the location metadata of the given instruction, pass NULL to Loc.

See:

llvm::Instruction::setDebugLoc()

Args:
Inst (Pointer/object):

(undocumented)

Loc (Pointer/object):

(undocumented)

C signature

void LLVMInstructionSetDebugLoc(LLVMValueRef Inst, LLVMMetadataRef Loc)
rocm.bindings.llvm.c.debuginfo.LLVMDIBuilderCreateLabel(Builder, Context, Name, NameLen, File, LineNo, AlwaysPreserve)#

Create a new descriptor for a label

See:

llvm::DIBuilder::createLabel()

Args:
Builder (Pointer/object):

The DIBuilder.

Context (Pointer/object):

(undocumented)

Name (CStr/object):

Variable name.

NameLen (int):

Length of variable name.

File (Pointer/object):

The file to create the label in.

LineNo (int):

Line Number.

AlwaysPreserve (int):

Preserve the label regardless of optimization.

Returns:

None: (undocumented)

C signature

LLVMMetadataRef LLVMDIBuilderCreateLabel(LLVMDIBuilderRef Builder, LLVMMetadataRef Context, const char * Name, size_t NameLen, LLVMMetadataRef File, unsigned int LineNo, LLVMBool AlwaysPreserve)
rocm.bindings.llvm.c.debuginfo.LLVMDIBuilderInsertLabelBefore(Builder, LabelInfo, Location, InsertBefore)#

Insert a new llvm.dbg.label intrinsic call

See:

llvm::DIBuilder::insertLabel()

Args:
Builder (Pointer/object):

The DIBuilder.

LabelInfo (Pointer/object):

The Label’s debug info descriptor

Location (Pointer/object):

The debug info location

InsertBefore (Pointer/object):

Location for the new intrinsic.

Returns:

None: (undocumented)

C signature

LLVMDbgRecordRef LLVMDIBuilderInsertLabelBefore(LLVMDIBuilderRef Builder, LLVMMetadataRef LabelInfo, LLVMMetadataRef Location, LLVMValueRef InsertBefore)
rocm.bindings.llvm.c.debuginfo.LLVMDIBuilderInsertLabelAtEnd(Builder, LabelInfo, Location, InsertAtEnd)#

Insert a new llvm.dbg.label intrinsic call

See:

llvm::DIBuilder::insertLabel()

Args:
Builder (Pointer/object):

The DIBuilder.

LabelInfo (Pointer/object):

The Label’s debug info descriptor

Location (Pointer/object):

The debug info location

InsertAtEnd (Pointer/object):

Location for the new intrinsic.

Returns:

None: (undocumented)

C signature

LLVMDbgRecordRef LLVMDIBuilderInsertLabelAtEnd(LLVMDIBuilderRef Builder, LLVMMetadataRef LabelInfo, LLVMMetadataRef Location, LLVMBasicBlockRef InsertAtEnd)
rocm.bindings.llvm.c.debuginfo.LLVMGetMetadataKind(Metadata)#

Obtain the enumerated type of a Metadata instance.

See:

llvm::Metadata::getMetadataID()

Args:
Metadata (Pointer/object):

(undocumented)

Returns:

int: (undocumented)

C signature

LLVMMetadataKind LLVMGetMetadataKind(LLVMMetadataRef Metadata)