MLIR  17.0.0git
Functions
LLVM.h File Reference
#include "mlir-c/IR.h"
+ Include dependency graph for LLVM.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

 MLIR_DECLARE_CAPI_DIALECT_REGISTRATION (LLVM, llvm)
 
MLIR_CAPI_EXPORTED MlirType mlirLLVMPointerTypeGet (MlirType pointee, unsigned addressSpace)
 Creates an llvm.ptr type. More...
 
MLIR_CAPI_EXPORTED MlirType mlirLLVMVoidTypeGet (MlirContext ctx)
 Creates an llmv.void type. More...
 
MLIR_CAPI_EXPORTED MlirType mlirLLVMArrayTypeGet (MlirType elementType, unsigned numElements)
 Creates an llvm.array type. More...
 
MLIR_CAPI_EXPORTED MlirType mlirLLVMFunctionTypeGet (MlirType resultType, intptr_t nArgumentTypes, MlirType const *argumentTypes, bool isVarArg)
 Creates an llvm.func type. More...
 
MLIR_CAPI_EXPORTED MlirType mlirLLVMStructTypeLiteralGet (MlirContext ctx, intptr_t nFieldTypes, MlirType const *fieldTypes, bool isPacked)
 Creates an LLVM literal (unnamed) struct type. More...
 

Function Documentation

◆ MLIR_DECLARE_CAPI_DIALECT_REGISTRATION()

MLIR_DECLARE_CAPI_DIALECT_REGISTRATION ( LLVM  ,
llvm   
)

◆ mlirLLVMArrayTypeGet()

MLIR_CAPI_EXPORTED MlirType mlirLLVMArrayTypeGet ( MlirType  elementType,
unsigned  numElements 
)

Creates an llvm.array type.

Definition at line 27 of file LLVM.cpp.

References unwrap(), and wrap().

◆ mlirLLVMFunctionTypeGet()

MLIR_CAPI_EXPORTED MlirType mlirLLVMFunctionTypeGet ( MlirType  resultType,
intptr_t  nArgumentTypes,
MlirType const *  argumentTypes,
bool  isVarArg 
)

Creates an llvm.func type.

Definition at line 31 of file LLVM.cpp.

References unwrap(), unwrapList(), and wrap().

◆ mlirLLVMPointerTypeGet()

MLIR_CAPI_EXPORTED MlirType mlirLLVMPointerTypeGet ( MlirType  pointee,
unsigned  addressSpace 
)

Creates an llvm.ptr type.

Definition at line 19 of file LLVM.cpp.

References unwrap(), and wrap().

◆ mlirLLVMStructTypeLiteralGet()

MLIR_CAPI_EXPORTED MlirType mlirLLVMStructTypeLiteralGet ( MlirContext  ctx,
intptr_t  nFieldTypes,
MlirType const *  fieldTypes,
bool  isPacked 
)

Creates an LLVM literal (unnamed) struct type.

Definition at line 39 of file LLVM.cpp.

References mlir::LLVM::LLVMStructType::getLiteral(), unwrap(), unwrapList(), and wrap().

◆ mlirLLVMVoidTypeGet()

MLIR_CAPI_EXPORTED MlirType mlirLLVMVoidTypeGet ( MlirContext  ctx)

Creates an llmv.void type.

Definition at line 23 of file LLVM.cpp.

References unwrap(), and wrap().