|
MLIR 22.0.0git
|
#include "mlir-c/Dialect/LLVM.h"#include "mlir-c/IR.h"#include "mlir-c/Support.h"#include "mlir/CAPI/Registration.h"#include "mlir/CAPI/Wrap.h"#include "mlir/Dialect/LLVMIR/LLVMAttrs.h"#include "mlir/Dialect/LLVMIR/LLVMDialect.h"#include "mlir/Dialect/LLVMIR/LLVMTypes.h"#include "llvm-c/Core.h"#include "llvm/ADT/SmallVector.h"#include "llvm/ADT/SmallVectorExtras.h"Go to the source code of this file.
Functions | |
| MlirType | mlirLLVMPointerTypeGet (MlirContext ctx, unsigned addressSpace) |
| Creates an llvm.ptr type. | |
| bool | mlirTypeIsALLVMPointerType (MlirType type) |
| Returns true if the type is an LLVM dialect pointer type. | |
| unsigned | mlirLLVMPointerTypeGetAddressSpace (MlirType pointerType) |
| Returns address space of llvm.ptr. | |
| MlirType | mlirLLVMVoidTypeGet (MlirContext ctx) |
| Creates an llmv.void type. | |
| MlirType | mlirLLVMArrayTypeGet (MlirType elementType, unsigned numElements) |
| Creates an llvm.array type. | |
| MlirType | mlirLLVMArrayTypeGetElementType (MlirType type) |
| Returns the element type of the llvm.array type. | |
| MlirType | mlirLLVMFunctionTypeGet (MlirType resultType, intptr_t nArgumentTypes, MlirType const *argumentTypes, bool isVarArg) |
| Creates an llvm.func type. | |
| intptr_t | mlirLLVMFunctionTypeGetNumInputs (MlirType type) |
| Returns the number of input types. | |
| MlirType | mlirLLVMFunctionTypeGetInput (MlirType type, intptr_t pos) |
| Returns the pos-th input type. | |
| MlirType | mlirLLVMFunctionTypeGetReturnType (MlirType type) |
| Returns the return type of the function type. | |
| bool | mlirTypeIsALLVMStructType (MlirType type) |
| Returns true if the type is an LLVM dialect struct type. | |
| bool | mlirLLVMStructTypeIsLiteral (MlirType type) |
| Returns true if the type is a literal (unnamed) LLVM struct type. | |
| intptr_t | mlirLLVMStructTypeGetNumElementTypes (MlirType type) |
| Returns the number of fields in the struct. | |
| MlirType | mlirLLVMStructTypeGetElementType (MlirType type, intptr_t position) |
| Returns the positions-th field of the struct. | |
| bool | mlirLLVMStructTypeIsPacked (MlirType type) |
| Returns true if the struct is packed. | |
| MlirStringRef | mlirLLVMStructTypeGetIdentifier (MlirType type) |
| Returns the identifier of the identified struct. | |
| bool | mlirLLVMStructTypeIsOpaque (MlirType type) |
| Returns true is the struct is explicitly opaque (will not have a body) or uninitialized (will eventually have a body). | |
| MlirType | mlirLLVMStructTypeLiteralGet (MlirContext ctx, intptr_t nFieldTypes, MlirType const *fieldTypes, bool isPacked) |
| Creates an LLVM literal (unnamed) struct type. | |
| MlirType | mlirLLVMStructTypeLiteralGetChecked (MlirLocation loc, intptr_t nFieldTypes, MlirType const *fieldTypes, bool isPacked) |
| Creates an LLVM literal (unnamed) struct type if possible. | |
| MlirType | mlirLLVMStructTypeOpaqueGet (MlirContext ctx, MlirStringRef name) |
| MlirType | mlirLLVMStructTypeIdentifiedGet (MlirContext ctx, MlirStringRef name) |
| Creates an LLVM identified struct type with no body. | |
| MlirType | mlirLLVMStructTypeIdentifiedNewGet (MlirContext ctx, MlirStringRef name, intptr_t nFieldTypes, MlirType const *fieldTypes, bool isPacked) |
| Creates an LLVM identified struct type with no body and a name starting with the given prefix. | |
| MlirLogicalResult | mlirLLVMStructTypeSetBody (MlirType structType, intptr_t nFieldTypes, MlirType const *fieldTypes, bool isPacked) |
| Sets the body of the identified struct if it hasn't been set yet. | |
| MlirAttribute | mlirLLVMDIExpressionElemAttrGet (MlirContext ctx, unsigned int opcode, intptr_t nArguments, uint64_t const *arguments) |
| Creates a LLVM DIExpressionElem attribute. | |
| MlirAttribute | mlirLLVMDIExpressionAttrGet (MlirContext ctx, intptr_t nOperations, MlirAttribute const *operations) |
| Creates a LLVM DIExpression attribute. | |
| MlirAttribute | mlirLLVMDINullTypeAttrGet (MlirContext ctx) |
| Creates a LLVM DINullType attribute. | |
| MlirAttribute | mlirLLVMDIBasicTypeAttrGet (MlirContext ctx, unsigned int tag, MlirAttribute name, uint64_t sizeInBits, MlirLLVMTypeEncoding encoding) |
| Creates a LLVM DIBasicType attribute. | |
| MlirAttribute | mlirLLVMDICompositeTypeAttrGetRecSelf (MlirAttribute recId) |
| Creates a self-referencing LLVM DICompositeType attribute. | |
| MlirAttribute | mlirLLVMDICompositeTypeAttrGet (MlirContext ctx, MlirAttribute recId, bool isRecSelf, unsigned int tag, MlirAttribute name, MlirAttribute file, uint32_t line, MlirAttribute scope, MlirAttribute baseType, int64_t flags, uint64_t sizeInBits, uint64_t alignInBits, intptr_t nElements, MlirAttribute const *elements, MlirAttribute dataLocation, MlirAttribute rank, MlirAttribute allocated, MlirAttribute associated) |
| Creates a LLVM DICompositeType attribute. | |
| MlirAttribute | mlirLLVMDIDerivedTypeAttrGet (MlirContext ctx, unsigned int tag, MlirAttribute name, MlirAttribute baseType, uint64_t sizeInBits, uint32_t alignInBits, uint64_t offsetInBits, int64_t dwarfAddressSpace, MlirAttribute extraData) |
| Creates a LLVM DIDerivedType attribute. | |
| MlirAttribute | mlirLLVMDIStringTypeAttrGet (MlirContext ctx, unsigned int tag, MlirAttribute name, uint64_t sizeInBits, uint32_t alignInBits, MlirAttribute stringLength, MlirAttribute stringLengthExp, MlirAttribute stringLocationExp, MlirLLVMTypeEncoding encoding) |
| MlirAttribute | mlirLLVMDIDerivedTypeAttrGetBaseType (MlirAttribute diDerivedType) |
| Gets the base type from a LLVM DIDerivedType attribute. | |
| MlirAttribute | mlirLLVMCConvAttrGet (MlirContext ctx, MlirLLVMCConv cconv) |
| Creates a LLVM CConv attribute. | |
| MlirAttribute | mlirLLVMComdatAttrGet (MlirContext ctx, MlirLLVMComdat comdat) |
| Creates a LLVM Comdat attribute. | |
| MlirAttribute | mlirLLVMLinkageAttrGet (MlirContext ctx, MlirLLVMLinkage linkage) |
| Creates a LLVM Linkage attribute. | |
| MlirAttribute | mlirLLVMDIFileAttrGet (MlirContext ctx, MlirAttribute name, MlirAttribute directory) |
| Creates a LLVM DIFileAttr attribute. | |
| MlirAttribute | mlirLLVMDICompileUnitAttrGet (MlirContext ctx, MlirAttribute id, unsigned int sourceLanguage, MlirAttribute file, MlirAttribute producer, bool isOptimized, MlirLLVMDIEmissionKind emissionKind, MlirLLVMDINameTableKind nameTableKind, MlirAttribute splitDebugFilename) |
| Creates a LLVM DICompileUnit attribute. | |
| MlirAttribute | mlirLLVMDIFlagsAttrGet (MlirContext ctx, uint64_t value) |
| Creates a LLVM DIFlags attribute. | |
| MlirAttribute | mlirLLVMDILexicalBlockAttrGet (MlirContext ctx, MlirAttribute scope, MlirAttribute file, unsigned int line, unsigned int column) |
| Creates a LLVM DILexicalBlock attribute. | |
| MlirAttribute | mlirLLVMDILexicalBlockFileAttrGet (MlirContext ctx, MlirAttribute scope, MlirAttribute file, unsigned int discriminator) |
| Creates a LLVM DILexicalBlockFile attribute. | |
| MlirAttribute | mlirLLVMDILocalVariableAttrGet (MlirContext ctx, MlirAttribute scope, MlirAttribute name, MlirAttribute diFile, unsigned int line, unsigned int arg, unsigned int alignInBits, MlirAttribute diType, int64_t flags) |
| Creates a LLVM DILocalVariableAttr attribute. | |
| MlirAttribute | mlirLLVMDISubroutineTypeAttrGet (MlirContext ctx, unsigned int callingConvention, intptr_t nTypes, MlirAttribute const *types) |
| Creates a LLVM DISubroutineTypeAttr attribute. | |
| MlirAttribute | mlirLLVMDISubprogramAttrGetRecSelf (MlirAttribute recId) |
| Creates a self-referencing LLVM DISubprogramAttr attribute. | |
| MlirAttribute | mlirLLVMDISubprogramAttrGet (MlirContext ctx, MlirAttribute recId, bool isRecSelf, MlirAttribute id, MlirAttribute compileUnit, MlirAttribute scope, MlirAttribute name, MlirAttribute linkageName, MlirAttribute file, unsigned int line, unsigned int scopeLine, uint64_t subprogramFlags, MlirAttribute type, intptr_t nRetainedNodes, MlirAttribute const *retainedNodes, intptr_t nAnnotations, MlirAttribute const *annotations) |
| Creates a LLVM DISubprogramAttr attribute. | |
| MlirAttribute | mlirLLVMDISubprogramAttrGetScope (MlirAttribute diSubprogram) |
| Gets the scope from this DISubprogramAttr. | |
| unsigned int | mlirLLVMDISubprogramAttrGetLine (MlirAttribute diSubprogram) |
| Gets the line from this DISubprogramAttr. | |
| unsigned int | mlirLLVMDISubprogramAttrGetScopeLine (MlirAttribute diSubprogram) |
| Gets the scope line from this DISubprogram. | |
| MlirAttribute | mlirLLVMDISubprogramAttrGetCompileUnit (MlirAttribute diSubprogram) |
| Gets the compile unit from this DISubprogram. | |
| MlirAttribute | mlirLLVMDISubprogramAttrGetFile (MlirAttribute diSubprogram) |
| Gets the file from this DISubprogramAttr. | |
| MlirAttribute | mlirLLVMDISubprogramAttrGetType (MlirAttribute diSubprogram) |
| Gets the type from this DISubprogramAttr. | |
| MlirAttribute | mlirLLVMDIModuleAttrGet (MlirContext ctx, MlirAttribute file, MlirAttribute scope, MlirAttribute name, MlirAttribute configMacros, MlirAttribute includePath, MlirAttribute apinotes, unsigned int line, bool isDecl) |
| Creates a LLVM DIModuleAttr attribute. | |
| MlirAttribute | mlirLLVMDIModuleAttrGetScope (MlirAttribute diModule) |
| Gets the scope of this DIModuleAttr. | |
| MlirAttribute | mlirLLVMDIImportedEntityAttrGet (MlirContext ctx, unsigned int tag, MlirAttribute scope, MlirAttribute entity, MlirAttribute file, unsigned int line, MlirAttribute name, intptr_t nElements, MlirAttribute const *elements) |
| Creates a LLVM DIImportedEntityAttr attribute. | |
| MlirAttribute | mlirLLVMDIAnnotationAttrGet (MlirContext ctx, MlirAttribute name, MlirAttribute value) |
| Creates a LLVM DIAnnotation attribute. | |
| MlirType mlirLLVMArrayTypeGet | ( | MlirType | elementType, |
| unsigned | numElements ) |
| MlirType mlirLLVMArrayTypeGetElementType | ( | MlirType | type | ) |
Returns the element type of the llvm.array type.
Definition at line 46 of file LLVM.cpp.
References getElementType(), unwrap(), and wrap().
| MlirAttribute mlirLLVMCConvAttrGet | ( | MlirContext | ctx, |
| MlirLLVMCConv | cconv ) |
| MlirAttribute mlirLLVMComdatAttrGet | ( | MlirContext | ctx, |
| MlirLLVMComdat | comdat ) |
| MlirAttribute mlirLLVMDIAnnotationAttrGet | ( | MlirContext | ctx, |
| MlirAttribute | name, | ||
| MlirAttribute | value ) |
| MlirAttribute mlirLLVMDIBasicTypeAttrGet | ( | MlirContext | ctx, |
| unsigned int | tag, | ||
| MlirAttribute | name, | ||
| uint64_t | sizeInBits, | ||
| MlirLLVMTypeEncoding | encoding ) |
| MlirAttribute mlirLLVMDICompileUnitAttrGet | ( | MlirContext | ctx, |
| MlirAttribute | id, | ||
| unsigned int | sourceLanguage, | ||
| MlirAttribute | file, | ||
| MlirAttribute | producer, | ||
| bool | isOptimized, | ||
| MlirLLVMDIEmissionKind | emissionKind, | ||
| MlirLLVMDINameTableKind | nameTableKind, | ||
| MlirAttribute | splitDebugFilename ) |
| MlirAttribute mlirLLVMDICompositeTypeAttrGet | ( | MlirContext | ctx, |
| MlirAttribute | recId, | ||
| bool | isRecSelf, | ||
| unsigned int | tag, | ||
| MlirAttribute | name, | ||
| MlirAttribute | file, | ||
| uint32_t | line, | ||
| MlirAttribute | scope, | ||
| MlirAttribute | baseType, | ||
| int64_t | flags, | ||
| uint64_t | sizeInBits, | ||
| uint64_t | alignInBits, | ||
| intptr_t | nElements, | ||
| MlirAttribute const * | elements, | ||
| MlirAttribute | dataLocation, | ||
| MlirAttribute | rank, | ||
| MlirAttribute | allocated, | ||
| MlirAttribute | associated ) |
Creates a LLVM DICompositeType attribute.
Definition at line 184 of file LLVM.cpp.
References unwrap(), unwrapList(), and wrap().
| MlirAttribute mlirLLVMDICompositeTypeAttrGetRecSelf | ( | MlirAttribute | recId | ) |
| MlirAttribute mlirLLVMDIDerivedTypeAttrGetBaseType | ( | MlirAttribute | diDerivedType | ) |
| MlirAttribute mlirLLVMDIExpressionAttrGet | ( | MlirContext | ctx, |
| intptr_t | nOperations, | ||
| MlirAttribute const * | operations ) |
Creates a LLVM DIExpression attribute.
Definition at line 155 of file LLVM.cpp.
References unwrap(), unwrapList(), and wrap().
| MlirAttribute mlirLLVMDIExpressionElemAttrGet | ( | MlirContext | ctx, |
| unsigned int | opcode, | ||
| intptr_t | nArguments, | ||
| uint64_t const * | arguments ) |
| MlirAttribute mlirLLVMDIFileAttrGet | ( | MlirContext | ctx, |
| MlirAttribute | name, | ||
| MlirAttribute | directory ) |
| MlirAttribute mlirLLVMDIFlagsAttrGet | ( | MlirContext | ctx, |
| uint64_t | value ) |
| MlirAttribute mlirLLVMDIImportedEntityAttrGet | ( | MlirContext | ctx, |
| unsigned int | tag, | ||
| MlirAttribute | scope, | ||
| MlirAttribute | entity, | ||
| MlirAttribute | file, | ||
| unsigned int | line, | ||
| MlirAttribute | name, | ||
| intptr_t | nElements, | ||
| MlirAttribute const * | elements ) |
Creates a LLVM DIImportedEntityAttr attribute.
Definition at line 389 of file LLVM.cpp.
References unwrap(), unwrapList(), and wrap().
| MlirAttribute mlirLLVMDILexicalBlockFileAttrGet | ( | MlirContext | ctx, |
| MlirAttribute | scope, | ||
| MlirAttribute | file, | ||
| unsigned int | discriminator ) |
| MlirAttribute mlirLLVMDIModuleAttrGetScope | ( | MlirAttribute | diModule | ) |
| MlirAttribute mlirLLVMDINullTypeAttrGet | ( | MlirContext | ctx | ) |
| MlirAttribute mlirLLVMDIStringTypeAttrGet | ( | MlirContext | ctx, |
| unsigned int | tag, | ||
| MlirAttribute | name, | ||
| uint64_t | sizeInBits, | ||
| uint32_t | alignInBits, | ||
| MlirAttribute | stringLength, | ||
| MlirAttribute | stringLengthExp, | ||
| MlirAttribute | stringLocationExp, | ||
| MlirLLVMTypeEncoding | encoding ) |
| MlirAttribute mlirLLVMDISubprogramAttrGet | ( | MlirContext | ctx, |
| MlirAttribute | recId, | ||
| bool | isRecSelf, | ||
| MlirAttribute | id, | ||
| MlirAttribute | compileUnit, | ||
| MlirAttribute | scope, | ||
| MlirAttribute | name, | ||
| MlirAttribute | linkageName, | ||
| MlirAttribute | file, | ||
| unsigned int | line, | ||
| unsigned int | scopeLine, | ||
| uint64_t | subprogramFlags, | ||
| MlirAttribute | type, | ||
| intptr_t | nRetainedNodes, | ||
| MlirAttribute const * | retainedNodes, | ||
| intptr_t | nAnnotations, | ||
| MlirAttribute const * | annotations ) |
Creates a LLVM DISubprogramAttr attribute.
Definition at line 317 of file LLVM.cpp.
References unwrap(), unwrapList(), and wrap().
| MlirAttribute mlirLLVMDISubprogramAttrGetCompileUnit | ( | MlirAttribute | diSubprogram | ) |
| MlirAttribute mlirLLVMDISubprogramAttrGetFile | ( | MlirAttribute | diSubprogram | ) |
| unsigned int mlirLLVMDISubprogramAttrGetLine | ( | MlirAttribute | diSubprogram | ) |
| MlirAttribute mlirLLVMDISubprogramAttrGetRecSelf | ( | MlirAttribute | recId | ) |
| MlirAttribute mlirLLVMDISubprogramAttrGetScope | ( | MlirAttribute | diSubprogram | ) |
| unsigned int mlirLLVMDISubprogramAttrGetScopeLine | ( | MlirAttribute | diSubprogram | ) |
| MlirAttribute mlirLLVMDISubprogramAttrGetType | ( | MlirAttribute | diSubprogram | ) |
Gets the type from this DISubprogramAttr.
Definition at line 367 of file LLVM.cpp.
References mlir::getType(), unwrap(), and wrap().
| MlirAttribute mlirLLVMDISubroutineTypeAttrGet | ( | MlirContext | ctx, |
| unsigned int | callingConvention, | ||
| intptr_t | nTypes, | ||
| MlirAttribute const * | types ) |
Creates a LLVM DISubroutineTypeAttr attribute.
Definition at line 300 of file LLVM.cpp.
References unwrap(), unwrapList(), and wrap().
| MlirType mlirLLVMFunctionTypeGet | ( | MlirType | resultType, |
| intptr_t | nArgumentTypes, | ||
| MlirType const * | argumentTypes, | ||
| bool | isVarArg ) |
Creates an llvm.func type.
Definition at line 50 of file LLVM.cpp.
References unwrap(), unwrapList(), and wrap().
| MlirType mlirLLVMFunctionTypeGetInput | ( | MlirType | type, |
| intptr_t | pos ) |
| intptr_t mlirLLVMFunctionTypeGetNumInputs | ( | MlirType | type | ) |
| MlirType mlirLLVMFunctionTypeGetReturnType | ( | MlirType | type | ) |
| MlirAttribute mlirLLVMLinkageAttrGet | ( | MlirContext | ctx, |
| MlirLLVMLinkage | linkage ) |
| MlirType mlirLLVMPointerTypeGet | ( | MlirContext | ctx, |
| unsigned | addressSpace ) |
Creates an llvm.ptr type.
Definition at line 26 of file LLVM.cpp.
References mlirLLVMPointerTypeGet(), unwrap(), and wrap().
Referenced by mlirLLVMPointerTypeGet(), and populateDialectLLVMSubmodule().
| unsigned mlirLLVMPointerTypeGetAddressSpace | ( | MlirType | pointerType | ) |
Returns address space of llvm.ptr.
Definition at line 34 of file LLVM.cpp.
References unwrap().
Referenced by populateDialectLLVMSubmodule().
| MlirType mlirLLVMStructTypeGetElementType | ( | MlirType | type, |
| intptr_t | position ) |
Returns the positions-th field of the struct.
Asserts if the struct is opaque, not yet initialized or if the position is out of range.
Definition at line 84 of file LLVM.cpp.
References unwrap(), and wrap().
Referenced by populateDialectLLVMSubmodule().
| MlirStringRef mlirLLVMStructTypeGetIdentifier | ( | MlirType | type | ) |
Returns the identifier of the identified struct.
Asserts that the struct is identified, i.e., not literal.
Definition at line 92 of file LLVM.cpp.
References unwrap(), and wrap().
Referenced by populateDialectLLVMSubmodule().
| intptr_t mlirLLVMStructTypeGetNumElementTypes | ( | MlirType | type | ) |
Returns the number of fields in the struct.
Asserts if the struct is opaque or not yet initialized.
Definition at line 80 of file LLVM.cpp.
References unwrap().
Referenced by populateDialectLLVMSubmodule().
| MlirType mlirLLVMStructTypeIdentifiedGet | ( | MlirContext | ctx, |
| MlirStringRef | name ) |
Creates an LLVM identified struct type with no body.
If a struct type with this name already exists in the context, returns that type. Use mlirLLVMStructTypeIdentifiedNewGet to create a fresh struct type, potentially renaming it. The body should be set separatelty by calling mlirLLVMStructTypeSetBody, if it isn't set already.
Definition at line 123 of file LLVM.cpp.
References unwrap(), and wrap().
Referenced by populateDialectLLVMSubmodule().
| MlirType mlirLLVMStructTypeIdentifiedNewGet | ( | MlirContext | ctx, |
| MlirStringRef | name, | ||
| intptr_t | nFieldTypes, | ||
| MlirType const * | fieldTypes, | ||
| bool | isPacked ) |
Creates an LLVM identified struct type with no body and a name starting with the given prefix.
If a struct with the exact name as the given prefix already exists, appends an unspecified suffix to the name so that the name is unique in context.
Definition at line 127 of file LLVM.cpp.
References unwrap(), unwrapList(), and wrap().
Referenced by populateDialectLLVMSubmodule().
| bool mlirLLVMStructTypeIsLiteral | ( | MlirType | type | ) |
Returns true if the type is a literal (unnamed) LLVM struct type.
Definition at line 76 of file LLVM.cpp.
References unwrap().
Referenced by populateDialectLLVMSubmodule().
| bool mlirLLVMStructTypeIsOpaque | ( | MlirType | type | ) |
Returns true is the struct is explicitly opaque (will not have a body) or uninitialized (will eventually have a body).
Definition at line 96 of file LLVM.cpp.
References unwrap().
Referenced by populateDialectLLVMSubmodule().
| bool mlirLLVMStructTypeIsPacked | ( | MlirType | type | ) |
Returns true if the struct is packed.
Definition at line 88 of file LLVM.cpp.
References unwrap().
Referenced by populateDialectLLVMSubmodule().
| MlirType mlirLLVMStructTypeLiteralGet | ( | MlirContext | ctx, |
| intptr_t | nFieldTypes, | ||
| MlirType const * | fieldTypes, | ||
| bool | isPacked ) |
Creates an LLVM literal (unnamed) struct type.
This may assert if the fields have types not compatible with the LLVM dialect. For a graceful failure, use the checked version.
Definition at line 100 of file LLVM.cpp.
References unwrap(), unwrapList(), and wrap().
Referenced by populateDialectLLVMSubmodule().
| MlirType mlirLLVMStructTypeLiteralGetChecked | ( | MlirLocation | loc, |
| intptr_t | nFieldTypes, | ||
| MlirType const * | fieldTypes, | ||
| bool | isPacked ) |
Creates an LLVM literal (unnamed) struct type if possible.
Emits a diagnostic at the given location and returns null otherwise.
Definition at line 109 of file LLVM.cpp.
References mlir::emitError(), unwrap(), unwrapList(), and wrap().
Referenced by populateDialectLLVMSubmodule().
| MlirType mlirLLVMStructTypeOpaqueGet | ( | MlirContext | ctx, |
| MlirStringRef | name ) |
Definition at line 119 of file LLVM.cpp.
References unwrap(), and wrap().
Referenced by populateDialectLLVMSubmodule().
| MlirLogicalResult mlirLLVMStructTypeSetBody | ( | MlirType | structType, |
| intptr_t | nFieldTypes, | ||
| MlirType const * | fieldTypes, | ||
| bool | isPacked ) |
Sets the body of the identified struct if it hasn't been set yet.
Returns whether the operation was successful.
Definition at line 137 of file LLVM.cpp.
References unwrap(), unwrapList(), and wrap().
Referenced by populateDialectLLVMSubmodule().
| MlirType mlirLLVMVoidTypeGet | ( | MlirContext | ctx | ) |
| bool mlirTypeIsALLVMPointerType | ( | MlirType | type | ) |
Returns true if the type is an LLVM dialect pointer type.
Definition at line 30 of file LLVM.cpp.
References unwrap().
Referenced by populateDialectLLVMSubmodule().
| bool mlirTypeIsALLVMStructType | ( | MlirType | type | ) |
Returns true if the type is an LLVM dialect struct type.
Definition at line 72 of file LLVM.cpp.
References unwrap().
Referenced by populateDialectLLVMSubmodule().