rocm.bindings.llvm.c.debuginfo#
2026-09-24
56 min read time
Advanced Micro Devices, Inc.
Attributes#
Classes#
Debug info flags. |
|
Source languages known by DWARF. |
|
The amount of debug information to emit. |
|
The kind of checksum to emit. |
|
Describes the kind of macro declaration used for LLVMDIBuilderCreateMacro. |
Functions#
|
|
The current debug metadata version number. |
|
The version of debug metadata that's present in the provided |
|
|
Strip debug info in the module if it exists. |
Construct a builder for a module, and do not allow for unresolved nodes |
|
Construct a builder for a module and collect unresolved nodes attached to the module in order to resolve cycles during a call to |
|
|
Deallocates the |
|
Construct any deferred debug info descriptors. |
|
Finalize a specific subprogram. |
|
A CompileUnit provides an anchor for all debugging |
|
Create a file descriptor to hold debugging information for a file. |
|
Create a file descriptor to hold debugging information for a file. |
|
Creates a new descriptor for a module with the specified parent scope. |
|
Creates a new descriptor for a namespace with the specified parent scope. |
|
Create a new descriptor for the specified subprogram. |
|
Create a descriptor for a lexical block with the specified parent context. |
|
Create a descriptor for a lexical block with a new file attached. |
Create a descriptor for an imported namespace. |
|
|
Create a descriptor for an imported module that aliases another |
|
Create a descriptor for an imported module. |
|
Create a descriptor for an imported function, type, or variable. |
|
Creates a new DebugLocation that describes a source location. |
|
Get the line number of this debug location. |
|
Get the column number of this debug location. |
|
Get the local scope associated with this debug location. |
|
Get the "inline at" location associated with this debug location. |
|
Get the metadata of the file associated with a given scope. |
|
Get the directory of a given file. |
|
Get the name of a given file. |
|
Get the source of a given file. |
|
Create a type array. |
|
Create subroutine type. |
|
Create debugging information entry for a macro. |
|
Create debugging information temporary entry for a macro file. |
|
Create debugging information entry for an enumerator. |
Create debugging information entry for an enumerator of arbitrary precision. |
|
|
Create debugging information entry for an enumeration. |
|
Create debugging information entry for a union. |
|
Create debugging information entry for an array. |
|
Create debugging information entry for a set. |
|
Create a descriptor for a subrange with dynamic bounds. |
|
Create debugging information entry for a dynamic array. |
|
Replace arrays. |
|
Create debugging information entry for a vector type. |
|
Create a DWARF unspecified type. |
|
Create debugging information entry for a basic |
|
Create debugging information entry for a pointer. |
|
Create debugging information entry for a struct. |
|
Create debugging information entry for a member. |
|
Create debugging information entry for a |
|
Create debugging information entry for a pointer to member. |
|
Create debugging information entry for Objective-C instance variable. |
|
Create debugging information entry for Objective-C property. |
|
Create a uniqued DIType* clone with FlagObjectPointer. |
|
Create debugging information entry for a qualified |
|
Create debugging information entry for a c++ |
|
Create C++11 nullptr type. |
|
Create debugging information entry for a typedef. |
|
Create debugging information entry to establish inheritance relationship |
|
Create a permanent forward-declared type. |
|
Create a temporary forward-declared type. |
|
Create debugging information entry for a bit field member. |
|
Create debugging information entry for a class. |
|
Create a uniqued DIType* clone with FlagArtificial set. |
|
Get the name of this DIType. |
|
Get the size of this DIType in bits. |
|
Get the offset of this DIType in bits. |
|
Get the alignment of this DIType in bits. |
|
Get the source line where this DIType is declared. |
|
Get the flags associated with this DIType. |
|
Create a descriptor for a value range. |
|
Create an array of DI Nodes. |
|
Create a new descriptor for the specified variable which has a complex |
|
Create a new descriptor for the specified variable that does not have an |
|
Create a new descriptor for the specified variable. |
|
Get the dwarf::Tag of a DINode |
Retrieves the |
|
Retrieves the |
|
Get the metadata of the file associated with a given variable. |
|
Get the metadata of the scope associated with a given variable. |
|
Get the source line where this |
|
|
Create a new temporary |
|
Deallocate a temporary node. |
|
Replace all uses of temporary metadata. |
|
Create a new descriptor for the specified global variable that is temporary |
|
Only use in "new debug format" (LLVMIsNewDbgInfoFormat() is true). |
|
Only use in "new debug format" (LLVMIsNewDbgInfoFormat() is true). |
|
Only use in "new debug format" (LLVMIsNewDbgInfoFormat() is true). |
|
Only use in "new debug format" (LLVMIsNewDbgInfoFormat() is true). |
|
Create a new descriptor for a local auto variable. |
|
Create a new descriptor for a function parameter variable. |
|
Get the metadata of the subprogram attached to a function. |
|
Set the subprogram attached to a function. |
|
Get the line associated with a given subprogram. |
|
Replace the subprogram subroutine type. |
Get the debug location for the given instruction. |
|
|
Set the debug location for the given instruction. |
|
Create a new descriptor for a label |
|
Insert a new llvm.dbg.label intrinsic call |
|
Insert a new llvm.dbg.label intrinsic call |
|
Obtain the enumerated type of a Metadata instance. |
Module Contents#
- class rocm.bindings.llvm.c.debuginfo.LLVMDIFlags#
Bases:
enum.IntEnumDebug info flags.
- class rocm.bindings.llvm.c.debuginfo.LLVMDWARFSourceLanguage#
Bases:
enum.IntEnumSource languages known by DWARF.
- class rocm.bindings.llvm.c.debuginfo.LLVMDWARFEmissionKind#
Bases:
enum.IntEnumThe amount of debug information to emit.
- class rocm.bindings.llvm.c.debuginfo.LLVMChecksumKind#
Bases:
enum.IntEnumThe kind of checksum to emit.
- class rocm.bindings.llvm.c.debuginfo.LLVMDWARFMacinfoRecordType#
Bases:
enum.IntEnumDescribes the kind of macro declaration used for LLVMDIBuilderCreateMacro.
- See:
llvm::dwarf::MacinfoRecordType
- Note:
Values are from DW_MACINFO_* constants in the DWARF specification.
- 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.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.
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.
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.C signature
LLVMDIBuilderRef LLVMCreateDIBuilder(LLVMModuleRef M)
- rocm.bindings.llvm.c.debuginfo.LLVMDisposeDIBuilder(Builder)#
Deallocates the
DIBuilderand everything it owns.C signature
void LLVMDisposeDIBuilder(LLVMDIBuilderRef Builder)
- rocm.bindings.llvm.c.debuginfo.LLVMDIBuilderFinalize(Builder)#
Construct any deferred debug info descriptors.
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.
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.
- Builder (
- 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:
- 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.
- Builder (
- 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.
- Builder (
- 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.
- Builder (
- 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.
- Builder (
- 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:
- 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:
- 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:
- 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.
- Builder (
- 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.
- Builder (
- 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.
- Builder (
- 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:
- 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:
- 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:
- 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:
- 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:
- 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.
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.
- File (
- 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.
- File (
- 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.
- File (
- 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:
- 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.
- Builder (
- 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.
- Builder (
- 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
ParentMacroFilerelationship.- Args:
- 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:
- 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:
- 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.
- Builder (
- 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.
- Builder (
- 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:
- 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.
- Builder (
- 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.
- Builder (
- 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.
- Builder (
- 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:
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:
- 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:
- 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:
- 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)
- Builder (
- 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.
- Builder (
- 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.
- Builder (
- 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.
- Builder (
- 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:
- 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.
- Builder (
- 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.
- Builder (
- 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
Implicitis true, then also set FlagArtificial.- Args:
- 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:
- 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:
- 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.
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)
- Builder (
- 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:
- 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.
- Builder (
- 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.
- Builder (
- 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.
- Builder (
- 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.
- Builder (
- 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:
- 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.
- DType (
- 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.
C signature
uint64_t LLVMDITypeGetSizeInBits(LLVMMetadataRef DType)
- rocm.bindings.llvm.c.debuginfo.LLVMDITypeGetOffsetInBits(DType)#
Get the offset of this DIType in bits.
C signature
uint64_t LLVMDITypeGetOffsetInBits(LLVMMetadataRef DType)
- rocm.bindings.llvm.c.debuginfo.LLVMDITypeGetAlignInBits(DType)#
Get the alignment of this DIType in bits.
C signature
uint32_t LLVMDITypeGetAlignInBits(LLVMMetadataRef DType)
- rocm.bindings.llvm.c.debuginfo.LLVMDITypeGetLine(DType)#
Get the source line where this DIType is declared.
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:
- 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:
- 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:
- 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.
- Builder (
- 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:
- 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)
- Builder (
- 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
C signature
uint16_t LLVMGetDINodeTag(LLVMMetadataRef MD)
- rocm.bindings.llvm.c.debuginfo.LLVMDIGlobalVariableExpressionGetVariable(GVE)#
Retrieves the
DIVariableassociated with this global variable expression.- See:
llvm::DIGlobalVariableExpression::getVariable()
- Args:
- Returns:
None: (undocumented)
C signature
LLVMMetadataRef LLVMDIGlobalVariableExpressionGetVariable(LLVMMetadataRef GVE)
- rocm.bindings.llvm.c.debuginfo.LLVMDIGlobalVariableExpressionGetExpression(GVE)#
Retrieves the
DIExpressionassociated with this global variable expression.- See:
llvm::DIGlobalVariableExpression::getExpression()
- Args:
- 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:
- 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:
- Returns:
None: (undocumented)
C signature
LLVMMetadataRef LLVMDIVariableGetScope(LLVMMetadataRef Var)
- rocm.bindings.llvm.c.debuginfo.LLVMDIVariableGetLine(Var)#
Get the source line where this
DIVariableis declared.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 cyclicMDNodestructures.A temporary
MDNodeis not uniqued, may be RAUW’d, and must be manually deleted withLLVMDisposeTemporaryMDNode.- Args:
- 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.C signature
void LLVMDisposeTemporaryMDNode(LLVMMetadataRef TempNode)
- rocm.bindings.llvm.c.debuginfo.LLVMMetadataReplaceAllUsesWith(TempTargetMetadata, Replacement)#
Replace all uses of temporary metadata.
- Args:
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)
- Builder (
- 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-changesThe 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.
- Builder (
- 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-changesThe 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.
- Builder (
- 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-changesThe 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.
- Builder (
- 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-changesThe 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.
- Builder (
- 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.
- Builder (
- 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.
- Builder (
- 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:
- 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:
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:
- 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:
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:
- 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:
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.
- Builder (
- 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:
- 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:
- Returns:
None: (undocumented)
C signature
LLVMDbgRecordRef LLVMDIBuilderInsertLabelAtEnd(LLVMDIBuilderRef Builder, LLVMMetadataRef LabelInfo, LLVMMetadataRef Location, LLVMBasicBlockRef InsertAtEnd)