Crate mlir_sys

Source

Structs§

LLVMComdat
LLVMOpaqueAttributeRef
LLVMOpaqueBasicBlock
LLVMOpaqueBinary
LLVMOpaqueBuilder
LLVMOpaqueContext
LLVMOpaqueDIBuilder
LLVMOpaqueDbgRecord
LLVMOpaqueDiagnosticInfo
LLVMOpaqueJITEventListener
LLVMOpaqueMemoryBuffer
LLVMOpaqueMetadata
LLVMOpaqueModule
LLVMOpaqueModuleFlagEntry
LLVMOpaqueModuleProvider
LLVMOpaqueNamedMDNode
LLVMOpaqueOperandBundle
LLVMOpaquePassManager
LLVMOpaqueType
LLVMOpaqueUse
LLVMOpaqueValue
LLVMOpaqueValueMetadataEntry
MlirAffineExpr
MlirAffineMap
MlirAsmState
MlirAttribute
MlirBlock
MlirBytecodeWriterConfig
MlirContext
MlirDiagnostic
An opaque reference to a diagnostic, always owned by the diagnostics engine (context). Must not be stored outside of the diagnostic handler.
MlirDialect
MlirDialectHandle
MlirDialectRegistry
MlirExecutionEngine
MlirExternalPass
MlirExternalPassCallbacks
Structure of external MlirPass callbacks. All callbacks are required to be set unless otherwise specified.
MlirFrozenRewritePatternSet
MlirGreedyRewriteDriverConfig
MlirIdentifier
MlirIntegerSet
MlirLlvmThreadPool
Re-export llvm::ThreadPool so as to avoid including the LLVM C API directly.
MlirLocation
MlirLogicalResult
A logical result value, essentially a boolean with named states. LLVM convention for using boolean values to designate success or failure of an operation is a moving target, so MLIR opted for an explicit class. Instances of MlirLogicalResult must only be inspected using the associated functions.
MlirModule
MlirNamedAttribute
Named MLIR attribute.
MlirOpOperand
MlirOpPassManager
MlirOpPrintingFlags
MlirOperation
MlirOperationState
An auxiliary class for constructing operations.
MlirPDLPatternModule
MlirPass
MlirPassManager
MlirRegion
MlirRewritePatternSet
MlirRewriterBase
MlirStringRef
A pointer to a sized fragment of a string, not necessarily null-terminated. Does not own the underlying string. This is equivalent to llvm::StringRef.
MlirSymbolTable
MlirTransformOptions
MlirType
MlirTypeID
MlirTypeIDAllocator
MlirValue
_OSUnalignedU16
_OSUnalignedU32
_OSUnalignedU64
__darwin_pthread_handler_rec
_opaque_pthread_attr_t
_opaque_pthread_cond_t
_opaque_pthread_condattr_t
_opaque_pthread_mutex_t
_opaque_pthread_mutexattr_t
_opaque_pthread_once_t
_opaque_pthread_rwlock_t
_opaque_pthread_rwlockattr_t
_opaque_pthread_t
fd_set
imaxdiv_t

Constants§

BIG_ENDIAN
BYTE_ORDER
FD_SETSIZE
INT8_MAX
INT8_MIN
INT16_MAX
INT16_MIN
INT32_MAX
INT32_MIN
INT64_MAX
INT64_MIN
INTPTR_MAX
INTPTR_MIN
INT_FAST8_MAX
INT_FAST8_MIN
INT_FAST16_MAX
INT_FAST16_MIN
INT_FAST32_MAX
INT_FAST32_MIN
INT_FAST64_MAX
INT_FAST64_MIN
INT_LEAST8_MAX
INT_LEAST8_MIN
INT_LEAST16_MAX
INT_LEAST16_MIN
INT_LEAST32_MAX
INT_LEAST32_MIN
INT_LEAST64_MAX
INT_LEAST64_MIN
LITTLE_ENDIAN
MAC_OS_VERSION_11_0
MAC_OS_VERSION_11_1
MAC_OS_VERSION_11_3
MAC_OS_VERSION_11_4
MAC_OS_VERSION_11_5
MAC_OS_VERSION_11_6
MAC_OS_VERSION_12_0
MAC_OS_VERSION_12_1
MAC_OS_VERSION_12_2
MAC_OS_VERSION_12_3
MAC_OS_VERSION_12_4
MAC_OS_VERSION_12_5
MAC_OS_VERSION_12_6
MAC_OS_VERSION_12_7
MAC_OS_VERSION_13_0
MAC_OS_VERSION_13_1
MAC_OS_VERSION_13_2
MAC_OS_VERSION_13_3
MAC_OS_VERSION_13_4
MAC_OS_VERSION_13_5
MAC_OS_VERSION_13_6
MAC_OS_VERSION_14_0
MAC_OS_VERSION_14_1
MAC_OS_VERSION_14_2
MAC_OS_VERSION_14_3
MAC_OS_VERSION_14_4
MAC_OS_VERSION_14_5
MAC_OS_X_VERSION_10_0
MAC_OS_X_VERSION_10_1
MAC_OS_X_VERSION_10_2
MAC_OS_X_VERSION_10_3
MAC_OS_X_VERSION_10_4
MAC_OS_X_VERSION_10_5
MAC_OS_X_VERSION_10_6
MAC_OS_X_VERSION_10_7
MAC_OS_X_VERSION_10_8
MAC_OS_X_VERSION_10_9
MAC_OS_X_VERSION_10_10
MAC_OS_X_VERSION_10_11
MAC_OS_X_VERSION_10_12
MAC_OS_X_VERSION_10_13
MAC_OS_X_VERSION_10_14
MAC_OS_X_VERSION_10_15
MAC_OS_X_VERSION_10_16
MAC_OS_X_VERSION_10_10_2
MAC_OS_X_VERSION_10_10_3
MAC_OS_X_VERSION_10_11_2
MAC_OS_X_VERSION_10_11_3
MAC_OS_X_VERSION_10_11_4
MAC_OS_X_VERSION_10_12_1
MAC_OS_X_VERSION_10_12_2
MAC_OS_X_VERSION_10_12_4
MAC_OS_X_VERSION_10_13_1
MAC_OS_X_VERSION_10_13_2
MAC_OS_X_VERSION_10_13_4
MAC_OS_X_VERSION_10_14_1
MAC_OS_X_VERSION_10_14_4
MAC_OS_X_VERSION_10_14_5
MAC_OS_X_VERSION_10_14_6
MAC_OS_X_VERSION_10_15_1
MAC_OS_X_VERSION_10_15_4
MLIR_CAPI_DWARF_ADDRESS_SPACE_NULL
MLIR_ENABLE_EXPENSIVE_PATTERN_API_CHECKS
MLIR_ENABLE_NVPTXCOMPILER
MLIR_ENABLE_PDL_IN_PATTERNMATCH
MLIR_ENABLE_ROCM_CONVERSIONS
MlirDiagnosticSeverity_MlirDiagnosticError
MlirDiagnosticSeverity_MlirDiagnosticNote
MlirDiagnosticSeverity_MlirDiagnosticRemark
MlirDiagnosticSeverity_MlirDiagnosticWarning
MlirLLVMCConv_MlirLLVMCConvAArch64_SVE_VectorCall
MlirLLVMCConv_MlirLLVMCConvAArch64_VectorCall
MlirLLVMCConv_MlirLLVMCConvAMDGPU_CS
MlirLLVMCConv_MlirLLVMCConvAMDGPU_ES
MlirLLVMCConv_MlirLLVMCConvAMDGPU_GS
MlirLLVMCConv_MlirLLVMCConvAMDGPU_Gfx
MlirLLVMCConv_MlirLLVMCConvAMDGPU_HS
MlirLLVMCConv_MlirLLVMCConvAMDGPU_KERNEL
MlirLLVMCConv_MlirLLVMCConvAMDGPU_LS
MlirLLVMCConv_MlirLLVMCConvAMDGPU_VS
MlirLLVMCConv_MlirLLVMCConvARM_AAPCS
MlirLLVMCConv_MlirLLVMCConvARM_AAPCS_VFP
MlirLLVMCConv_MlirLLVMCConvARM_APCS
MlirLLVMCConv_MlirLLVMCConvAVR_BUILTIN
MlirLLVMCConv_MlirLLVMCConvAVR_INTR
MlirLLVMCConv_MlirLLVMCConvAnyReg
MlirLLVMCConv_MlirLLVMCConvC
MlirLLVMCConv_MlirLLVMCConvCFGuard_Check
MlirLLVMCConv_MlirLLVMCConvCXX_FAST_TLS
MlirLLVMCConv_MlirLLVMCConvCold
MlirLLVMCConv_MlirLLVMCConvDUMMY_HHVM
MlirLLVMCConv_MlirLLVMCConvDUMMY_HHVM_C
MlirLLVMCConv_MlirLLVMCConvFast
MlirLLVMCConv_MlirLLVMCConvGHC
MlirLLVMCConv_MlirLLVMCConvHiPE
MlirLLVMCConv_MlirLLVMCConvIntel_OCL_BI
MlirLLVMCConv_MlirLLVMCConvM68k_INTR
MlirLLVMCConv_MlirLLVMCConvMSP430_BUILTIN
MlirLLVMCConv_MlirLLVMCConvMSP430_INTR
MlirLLVMCConv_MlirLLVMCConvPTX_Device
MlirLLVMCConv_MlirLLVMCConvPTX_Kernel
MlirLLVMCConv_MlirLLVMCConvPreserveAll
MlirLLVMCConv_MlirLLVMCConvPreserveMost
MlirLLVMCConv_MlirLLVMCConvSPIR_FUNC
MlirLLVMCConv_MlirLLVMCConvSPIR_KERNEL
MlirLLVMCConv_MlirLLVMCConvSwift
MlirLLVMCConv_MlirLLVMCConvSwiftTail
MlirLLVMCConv_MlirLLVMCConvTail
MlirLLVMCConv_MlirLLVMCConvWASM_EmscriptenInvoke
MlirLLVMCConv_MlirLLVMCConvWin64
MlirLLVMCConv_MlirLLVMCConvX86_64_SysV
MlirLLVMCConv_MlirLLVMCConvX86_FastCall
MlirLLVMCConv_MlirLLVMCConvX86_INTR
MlirLLVMCConv_MlirLLVMCConvX86_RegCall
MlirLLVMCConv_MlirLLVMCConvX86_StdCall
MlirLLVMCConv_MlirLLVMCConvX86_ThisCall
MlirLLVMCConv_MlirLLVMCConvX86_VectorCall
MlirLLVMComdat_MlirLLVMComdatAny
MlirLLVMComdat_MlirLLVMComdatExactMatch
MlirLLVMComdat_MlirLLVMComdatLargest
MlirLLVMComdat_MlirLLVMComdatNoDeduplicate
MlirLLVMComdat_MlirLLVMComdatSameSize
MlirLLVMDIEmissionKind_MlirLLVMDIEmissionKindDebugDirectivesOnly
MlirLLVMDIEmissionKind_MlirLLVMDIEmissionKindFull
MlirLLVMDIEmissionKind_MlirLLVMDIEmissionKindLineTablesOnly
MlirLLVMDIEmissionKind_MlirLLVMDIEmissionKindNone
MlirLLVMDINameTableKind_MlirLLVMDINameTableKindApple
MlirLLVMDINameTableKind_MlirLLVMDINameTableKindDefault
MlirLLVMDINameTableKind_MlirLLVMDINameTableKindGNU
MlirLLVMDINameTableKind_MlirLLVMDINameTableKindNone
MlirLLVMLinkage_MlirLLVMLinkageAppending
MlirLLVMLinkage_MlirLLVMLinkageAvailableExternally
MlirLLVMLinkage_MlirLLVMLinkageCommon
MlirLLVMLinkage_MlirLLVMLinkageExternWeak
MlirLLVMLinkage_MlirLLVMLinkageExternal
MlirLLVMLinkage_MlirLLVMLinkageInternal
MlirLLVMLinkage_MlirLLVMLinkageLinkonce
MlirLLVMLinkage_MlirLLVMLinkageLinkonceODR
MlirLLVMLinkage_MlirLLVMLinkagePrivate
MlirLLVMLinkage_MlirLLVMLinkageWeak
MlirLLVMLinkage_MlirLLVMLinkageWeakODR
MlirLLVMTypeEncoding_MlirLLVMTypeEncodingASCII
MlirLLVMTypeEncoding_MlirLLVMTypeEncodingAddress
MlirLLVMTypeEncoding_MlirLLVMTypeEncodingBoolean
MlirLLVMTypeEncoding_MlirLLVMTypeEncodingComplexFloat
MlirLLVMTypeEncoding_MlirLLVMTypeEncodingDecimalFloat
MlirLLVMTypeEncoding_MlirLLVMTypeEncodingEdited
MlirLLVMTypeEncoding_MlirLLVMTypeEncodingFloatT
MlirLLVMTypeEncoding_MlirLLVMTypeEncodingHiUser
MlirLLVMTypeEncoding_MlirLLVMTypeEncodingImaginaryFloat
MlirLLVMTypeEncoding_MlirLLVMTypeEncodingLoUser
MlirLLVMTypeEncoding_MlirLLVMTypeEncodingNumericString
MlirLLVMTypeEncoding_MlirLLVMTypeEncodingPackedDecimal
MlirLLVMTypeEncoding_MlirLLVMTypeEncodingSigned
MlirLLVMTypeEncoding_MlirLLVMTypeEncodingSignedChar
MlirLLVMTypeEncoding_MlirLLVMTypeEncodingSignedFixed
MlirLLVMTypeEncoding_MlirLLVMTypeEncodingUCS
MlirLLVMTypeEncoding_MlirLLVMTypeEncodingUTF
MlirLLVMTypeEncoding_MlirLLVMTypeEncodingUnsigned
MlirLLVMTypeEncoding_MlirLLVMTypeEncodingUnsignedChar
MlirLLVMTypeEncoding_MlirLLVMTypeEncodingUnsignedFixed
MlirSparseTensorLevelFormat_MLIR_SPARSE_TENSOR_LEVEL_BATCH
MlirSparseTensorLevelFormat_MLIR_SPARSE_TENSOR_LEVEL_COMPRESSED
MlirSparseTensorLevelFormat_MLIR_SPARSE_TENSOR_LEVEL_DENSE
MlirSparseTensorLevelFormat_MLIR_SPARSE_TENSOR_LEVEL_LOOSE_COMPRESSED
MlirSparseTensorLevelFormat_MLIR_SPARSE_TENSOR_LEVEL_N_OUT_OF_M
MlirSparseTensorLevelFormat_MLIR_SPARSE_TENSOR_LEVEL_SINGLETON
MlirSparseTensorLevelPropertyNondefault_MLIR_SPARSE_PROPERTY_NON_ORDERED
MlirSparseTensorLevelPropertyNondefault_MLIR_SPARSE_PROPERTY_NON_UNIQUE
MlirWalkOrder_MlirWalkPostOrder
MlirWalkOrder_MlirWalkPreOrder
MlirWalkResult_MlirWalkResultAdvance
MlirWalkResult_MlirWalkResultInterrupt
MlirWalkResult_MlirWalkResultSkip
NBBY
PDP_ENDIAN
PRIX8
PRIX16
PRIX32
PRIX64
PRIXFAST8
PRIXFAST16
PRIXFAST32
PRIXFAST64
PRIXLEAST8
PRIXLEAST16
PRIXLEAST32
PRIXLEAST64
PRIXMAX
PRIXPTR
PRId8
PRId16
PRId32
PRId64
PRIdFAST8
PRIdFAST16
PRIdFAST32
PRIdFAST64
PRIdLEAST8
PRIdLEAST16
PRIdLEAST32
PRIdLEAST64
PRIdMAX
PRIdPTR
PRIi8
PRIi16
PRIi32
PRIi64
PRIiFAST8
PRIiFAST16
PRIiFAST32
PRIiFAST64
PRIiLEAST8
PRIiLEAST16
PRIiLEAST32
PRIiLEAST64
PRIiMAX
PRIiPTR
PRIo8
PRIo16
PRIo32
PRIo64
PRIoFAST8
PRIoFAST16
PRIoFAST32
PRIoFAST64
PRIoLEAST8
PRIoLEAST16
PRIoLEAST32
PRIoLEAST64
PRIoMAX
PRIoPTR
PRIu8
PRIu16
PRIu32
PRIu64
PRIuFAST8
PRIuFAST16
PRIuFAST32
PRIuFAST64
PRIuLEAST8
PRIuLEAST16
PRIuLEAST32
PRIuLEAST64
PRIuMAX
PRIuPTR
PRIx8
PRIx16
PRIx32
PRIx64
PRIxFAST8
PRIxFAST16
PRIxFAST32
PRIxFAST64
PRIxLEAST8
PRIxLEAST16
PRIxLEAST32
PRIxLEAST64
PRIxMAX
PRIxPTR
RSIZE_MAX
SCNd8
SCNd16
SCNd32
SCNd64
SCNdFAST8
SCNdFAST16
SCNdFAST32
SCNdFAST64
SCNdLEAST8
SCNdLEAST16
SCNdLEAST32
SCNdLEAST64
SCNdMAX
SCNdPTR
SCNi8
SCNi16
SCNi32
SCNi64
SCNiFAST8
SCNiFAST16
SCNiFAST32
SCNiFAST64
SCNiLEAST8
SCNiLEAST16
SCNiLEAST32
SCNiLEAST64
SCNiMAX
SCNiPTR
SCNo8
SCNo16
SCNo32
SCNo64
SCNoFAST8
SCNoFAST16
SCNoFAST32
SCNoFAST64
SCNoLEAST8
SCNoLEAST16
SCNoLEAST32
SCNoLEAST64
SCNoMAX
SCNoPTR
SCNu8
SCNu16
SCNu32
SCNu64
SCNuFAST8
SCNuFAST16
SCNuFAST32
SCNuFAST64
SCNuLEAST8
SCNuLEAST16
SCNuLEAST32
SCNuLEAST64
SCNuMAX
SCNuPTR
SCNx8
SCNx16
SCNx32
SCNx64
SCNxFAST8
SCNxFAST16
SCNxFAST32
SCNxFAST64
SCNxLEAST8
SCNxLEAST16
SCNxLEAST32
SCNxLEAST64
SCNxMAX
SCNxPTR
SIG_ATOMIC_MAX
SIG_ATOMIC_MIN
SIZE_MAX
UINT8_MAX
UINT16_MAX
UINT32_MAX
UINT64_MAX
UINTPTR_MAX
UINT_FAST8_MAX
UINT_FAST16_MAX
UINT_FAST32_MAX
UINT_FAST64_MAX
UINT_LEAST8_MAX
UINT_LEAST16_MAX
UINT_LEAST32_MAX
UINT_LEAST64_MAX
WINT_MAX
WINT_MIN
_DARWIN_FEATURE_64_BIT_INODE
_DARWIN_FEATURE_ONLY_64_BIT_INODE
_DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE
_DARWIN_FEATURE_ONLY_VERS_1050
_DARWIN_FEATURE_UNIX_CONFORMANCE
_FORTIFY_SOURCE
_QUAD_HIGHWORD
_QUAD_LOWWORD
__API_TO_BE_DEPRECATED
__API_TO_BE_DEPRECATED_DRIVERKIT
__API_TO_BE_DEPRECATED_IOS
__API_TO_BE_DEPRECATED_MACCATALYST
__API_TO_BE_DEPRECATED_MACOS
__API_TO_BE_DEPRECATED_TVOS
__API_TO_BE_DEPRECATED_VISIONOS
__API_TO_BE_DEPRECATED_WATCHOS
__BRIDGEOS_2_0
__BRIDGEOS_3_0
__BRIDGEOS_3_1
__BRIDGEOS_3_4
__BRIDGEOS_4_0
__BRIDGEOS_4_1
__BRIDGEOS_5_0
__BRIDGEOS_5_1
__BRIDGEOS_5_3
__BRIDGEOS_6_0
__BRIDGEOS_6_2
__BRIDGEOS_6_4
__BRIDGEOS_6_5
__BRIDGEOS_6_6
__BRIDGEOS_7_0
__BRIDGEOS_7_1
__BRIDGEOS_7_2
__BRIDGEOS_7_3
__BRIDGEOS_7_4
__BRIDGEOS_7_6
__BRIDGEOS_8_0
__BRIDGEOS_8_1
__BRIDGEOS_8_2
__BRIDGEOS_8_3
__BRIDGEOS_8_4
__BRIDGEOS_8_5
__DARWIN_64_BIT_INO_T
__DARWIN_BIG_ENDIAN
__DARWIN_BYTE_ORDER
__DARWIN_C_ANSI
__DARWIN_C_FULL
__DARWIN_C_LEVEL
__DARWIN_FD_SETSIZE
__DARWIN_LITTLE_ENDIAN
__DARWIN_NBBY
__DARWIN_NON_CANCELABLE
__DARWIN_NO_LONG_LONG
__DARWIN_ONLY_64_BIT_INO_T
__DARWIN_ONLY_UNIX_CONFORMANCE
__DARWIN_ONLY_VERS_1050
__DARWIN_PDP_ENDIAN
__DARWIN_SUF_EXTSN
__DARWIN_UNIX03
__DARWIN_VERS_1050
__DARWIN_WCHAR_MIN
__DRIVERKIT_19_0
__DRIVERKIT_20_0
__DRIVERKIT_21_0
__DRIVERKIT_22_0
__DRIVERKIT_22_4
__DRIVERKIT_22_5
__DRIVERKIT_22_6
__DRIVERKIT_23_0
__DRIVERKIT_23_1
__DRIVERKIT_23_2
__DRIVERKIT_23_3
__DRIVERKIT_23_4
__DRIVERKIT_23_5
__ENABLE_LEGACY_MAC_AVAILABILITY
__IPHONE_2_0
__IPHONE_2_1
__IPHONE_2_2
__IPHONE_3_0
__IPHONE_3_1
__IPHONE_3_2
__IPHONE_4_0
__IPHONE_4_1
__IPHONE_4_2
__IPHONE_4_3
__IPHONE_5_0
__IPHONE_5_1
__IPHONE_6_0
__IPHONE_6_1
__IPHONE_7_0
__IPHONE_7_1
__IPHONE_8_0
__IPHONE_8_1
__IPHONE_8_2
__IPHONE_8_3
__IPHONE_8_4
__IPHONE_9_0
__IPHONE_9_1
__IPHONE_9_2
__IPHONE_9_3
__IPHONE_10_0
__IPHONE_10_1
__IPHONE_10_2
__IPHONE_10_3
__IPHONE_11_0
__IPHONE_11_1
__IPHONE_11_2
__IPHONE_11_3
__IPHONE_11_4
__IPHONE_12_0
__IPHONE_12_1
__IPHONE_12_2
__IPHONE_12_3
__IPHONE_12_4
__IPHONE_13_0
__IPHONE_13_1
__IPHONE_13_2
__IPHONE_13_3
__IPHONE_13_4
__IPHONE_13_5
__IPHONE_13_6
__IPHONE_13_7
__IPHONE_14_0
__IPHONE_14_1
__IPHONE_14_2
__IPHONE_14_3
__IPHONE_14_4
__IPHONE_14_5
__IPHONE_14_6
__IPHONE_14_7
__IPHONE_14_8
__IPHONE_15_0
__IPHONE_15_1
__IPHONE_15_2
__IPHONE_15_3
__IPHONE_15_4
__IPHONE_15_5
__IPHONE_15_6
__IPHONE_15_7
__IPHONE_15_8
__IPHONE_16_0
__IPHONE_16_1
__IPHONE_16_2
__IPHONE_16_3
__IPHONE_16_4
__IPHONE_16_5
__IPHONE_16_6
__IPHONE_16_7
__IPHONE_17_0
__IPHONE_17_1
__IPHONE_17_2
__IPHONE_17_3
__IPHONE_17_4
__IPHONE_17_5
__MAC_10_0
__MAC_10_1
__MAC_10_2
__MAC_10_3
__MAC_10_4
__MAC_10_5
__MAC_10_6
__MAC_10_7
__MAC_10_8
__MAC_10_9
__MAC_10_10
__MAC_10_11
__MAC_10_12
__MAC_10_13
__MAC_10_14
__MAC_10_15
__MAC_10_16
__MAC_10_10_2
__MAC_10_10_3
__MAC_10_11_2
__MAC_10_11_3
__MAC_10_11_4
__MAC_10_12_1
__MAC_10_12_2
__MAC_10_12_4
__MAC_10_13_1
__MAC_10_13_2
__MAC_10_13_4
__MAC_10_14_1
__MAC_10_14_4
__MAC_10_14_5
__MAC_10_14_6
__MAC_10_15_1
__MAC_10_15_4
__MAC_11_0
__MAC_11_1
__MAC_11_3
__MAC_11_4
__MAC_11_5
__MAC_11_6
__MAC_12_0
__MAC_12_1
__MAC_12_2
__MAC_12_3
__MAC_12_4
__MAC_12_5
__MAC_12_6
__MAC_12_7
__MAC_13_0
__MAC_13_1
__MAC_13_2
__MAC_13_3
__MAC_13_4
__MAC_13_5
__MAC_13_6
__MAC_14_0
__MAC_14_1
__MAC_14_2
__MAC_14_3
__MAC_14_4
__MAC_14_5
__MAC_OS_X_VERSION_MAX_ALLOWED
__PRI_8_LENGTH_MODIFIER__
__PRI_64_LENGTH_MODIFIER__
__PRI_MAX_LENGTH_MODIFIER__
__PTHREAD_ATTR_SIZE__
__PTHREAD_CONDATTR_SIZE__
__PTHREAD_COND_SIZE__
__PTHREAD_MUTEXATTR_SIZE__
__PTHREAD_MUTEX_SIZE__
__PTHREAD_ONCE_SIZE__
__PTHREAD_RWLOCKATTR_SIZE__
__PTHREAD_RWLOCK_SIZE__
__PTHREAD_SIZE__
__SCN_64_LENGTH_MODIFIER__
__SCN_MAX_LENGTH_MODIFIER__
__STDC_WANT_LIB_EXT1__
__TVOS_9_0
__TVOS_9_1
__TVOS_9_2
__TVOS_10_0
__TVOS_10_0_1
__TVOS_10_1
__TVOS_10_2
__TVOS_11_0
__TVOS_11_1
__TVOS_11_2
__TVOS_11_3
__TVOS_11_4
__TVOS_12_0
__TVOS_12_1
__TVOS_12_2
__TVOS_12_3
__TVOS_12_4
__TVOS_13_0
__TVOS_13_2
__TVOS_13_3
__TVOS_13_4
__TVOS_14_0
__TVOS_14_1
__TVOS_14_2
__TVOS_14_3
__TVOS_14_5
__TVOS_14_6
__TVOS_14_7
__TVOS_15_0
__TVOS_15_1
__TVOS_15_2
__TVOS_15_3
__TVOS_15_4
__TVOS_15_5
__TVOS_15_6
__TVOS_16_0
__TVOS_16_1
__TVOS_16_2
__TVOS_16_3
__TVOS_16_4
__TVOS_16_5
__TVOS_16_6
__TVOS_17_0
__TVOS_17_1
__TVOS_17_2
__TVOS_17_3
__TVOS_17_4
__TVOS_17_5
__VISIONOS_1_0
__VISIONOS_1_1
__VISIONOS_1_2
__WATCHOS_1_0
__WATCHOS_2_0
__WATCHOS_2_1
__WATCHOS_2_2
__WATCHOS_3_0
__WATCHOS_3_1
__WATCHOS_3_2
__WATCHOS_3_1_1
__WATCHOS_4_0
__WATCHOS_4_1
__WATCHOS_4_2
__WATCHOS_4_3
__WATCHOS_5_0
__WATCHOS_5_1
__WATCHOS_5_2
__WATCHOS_5_3
__WATCHOS_6_0
__WATCHOS_6_1
__WATCHOS_6_2
__WATCHOS_7_0
__WATCHOS_7_1
__WATCHOS_7_2
__WATCHOS_7_3
__WATCHOS_7_4
__WATCHOS_7_5
__WATCHOS_7_6
__WATCHOS_8_0
__WATCHOS_8_1
__WATCHOS_8_3
__WATCHOS_8_4
__WATCHOS_8_5
__WATCHOS_8_6
__WATCHOS_8_7
__WATCHOS_8_8
__WATCHOS_9_0
__WATCHOS_9_1
__WATCHOS_9_2
__WATCHOS_9_3
__WATCHOS_9_4
__WATCHOS_9_5
__WATCHOS_9_6
__WATCHOS_10_0
__WATCHOS_10_1
__WATCHOS_10_2
__WATCHOS_10_3
__WATCHOS_10_4
__WATCHOS_10_5
__WORDSIZE
__bool_true_false_are_defined
__has_ptrcheck
__has_safe_buffers
false_
true_

Functions§

LLVMAddSymbol⚠
This functions permanently adds the symbol \p symbolName with the value \p symbolValue. These symbols are searched before any libraries.
LLVMLoadLibraryPermanently⚠
This function permanently loads the dynamic library at the given path. It is safe to call this function multiple times for the same library.
LLVMParseCommandLineOptions⚠
This function parses the given arguments using the LLVM command line parser. Note that the only stable thing about this function is its signature; you cannot rely on any particular set of command line arguments being interpreted the same way across LLVM versions.
LLVMSearchForAddressOfSymbol⚠
This function will search through all previously loaded dynamic libraries for the symbol \p symbolName. If it is found, the address of that symbol is returned. If not, null is returned.
__darwin_check_fd_set_overflow⚠
imaxabs⚠
imaxdiv⚠
mlirAffineAddExprGet⚠
Creates an affine add expression with ‘lhs’ and ‘rhs’.
mlirAffineBinaryOpExprGetLHS⚠
Returns the left hand side affine expression of the given affine binary operation expression.
mlirAffineBinaryOpExprGetRHS⚠
Returns the right hand side affine expression of the given affine binary operation expression.
mlirAffineCeilDivExprGet⚠
Creates an affine ceildiv expression with ‘lhs’ and ‘rhs’.
mlirAffineConstantExprGet⚠
Creates an affine constant expression with ‘constant’ in the context.
mlirAffineConstantExprGetValue⚠
Returns the value of the given affine constant expression.
mlirAffineDimExprGet⚠
Creates an affine dimension expression with ‘position’ in the context.
mlirAffineDimExprGetPosition⚠
Returns the position of the given affine dimension expression.
mlirAffineExprCompose⚠
Composes the given map with the given expression.
mlirAffineExprDump⚠
Prints the affine expression to the standard error stream.
mlirAffineExprEqual⚠
Returns true if the two affine expressions are equal.
mlirAffineExprGetContext⚠
Gets the context that owns the affine expression.
mlirAffineExprGetLargestKnownDivisor⚠
Returns the greatest known integral divisor of this affine expression. The result is always positive.
mlirAffineExprIsAAdd⚠
Checks whether the given affine expression is an add expression.
mlirAffineExprIsABinary⚠
Checks whether the given affine expression is binary.
mlirAffineExprIsACeilDiv⚠
Checks whether the given affine expression is an ceildiv expression.
mlirAffineExprIsAConstant⚠
Checks whether the given affine expression is a constant expression.
mlirAffineExprIsADim⚠
Checks whether the given affine expression is a dimension expression.
mlirAffineExprIsAFloorDiv⚠
Checks whether the given affine expression is an floordiv expression.
mlirAffineExprIsAMod⚠
Checks whether the given affine expression is an mod expression.
mlirAffineExprIsAMul⚠
Checks whether the given affine expression is an mul expression.
mlirAffineExprIsASymbol⚠
Checks whether the given affine expression is a symbol expression.
mlirAffineExprIsFunctionOfDim⚠
Checks whether the given affine expression involves AffineDimExpr ‘position’.
mlirAffineExprIsMultipleOf⚠
Checks whether the given affine expression is a multiple of ‘factor’.
mlirAffineExprIsPureAffine⚠
Checks whether the given affine expression is a pure affine expression, i.e. mul, floordiv, ceildic, and mod is only allowed w.r.t constants.
mlirAffineExprIsSymbolicOrConstant⚠
Checks whether the given affine expression is made out of only symbols and constants.
mlirAffineExprPrint⚠
Prints an affine expression by sending chunks of the string representation and forwarding userData to callback`. Note that the callback may be called several times with consecutive chunks of the string.
mlirAffineFloorDivExprGet⚠
Creates an affine floordiv expression with ‘lhs’ and ‘rhs’.
mlirAffineMapAttrGet⚠
Creates an affine map attribute wrapping the given map. The attribute belongs to the same context as the affine map.
mlirAffineMapAttrGetTypeID⚠
Returns the typeID of an AffineMap attribute.
mlirAffineMapAttrGetValue⚠
Returns the affine map wrapped in the given affine map attribute.
mlirAffineMapCompressUnusedSymbols⚠
Returns the simplified affine map resulting from dropping the symbols that do not appear in any of the individual maps in affineMaps. Asserts that all maps in affineMaps are normalized to the same number of dims and symbols. Takes a callback populateResult to fill the res container with value m at entry idx. This allows returning without worrying about ownership considerations.
mlirAffineMapConstantGet⚠
Creates a single constant result affine map in the context. The affine map is owned by the context.
mlirAffineMapDump⚠
Prints the affine map to the standard error stream.
mlirAffineMapEmptyGet⚠
Creates a zero result affine map with no dimensions or symbols in the context. The affine map is owned by the context.
mlirAffineMapEqual⚠
Checks if two affine maps are equal.
mlirAffineMapGet⚠
Creates an affine map with results defined by the given list of affine expressions. The map resulting map also has the requested number of input dimensions and symbols, regardless of them being used in the results.
mlirAffineMapGetContext⚠
Gets the context that the given affine map was created with
mlirAffineMapGetMajorSubMap⚠
Returns the affine map consisting of the most major numResults results. Returns the null AffineMap if the numResults is equal to zero. Returns the affineMap if numResults is greater or equals to number of results of the given affine map.
mlirAffineMapGetMinorSubMap⚠
Returns the affine map consisting of the most minor numResults results. Returns the null AffineMap if the numResults is equal to zero. Returns the affineMap if numResults is greater or equals to number of results of the given affine map.
mlirAffineMapGetNumDims⚠
Returns the number of dimensions of the given affine map.
mlirAffineMapGetNumInputs⚠
Returns the number of inputs (dimensions + symbols) of the given affine map.
mlirAffineMapGetNumResults⚠
Returns the number of results of the given affine map.
mlirAffineMapGetNumSymbols⚠
Returns the number of symbols of the given affine map.
mlirAffineMapGetResult⚠
Returns the result at the given position.
mlirAffineMapGetSingleConstantResult⚠
Returns the constant result of the given affine map. The function asserts that the map has a single constant result.
mlirAffineMapGetSubMap⚠
Returns the affine map consisting of the resultPos subset.
mlirAffineMapIsEmpty⚠
Checks whether the given affine map is an empty affine map.
mlirAffineMapIsIdentity⚠
Checks whether the given affine map is an identity affine map. The function asserts that the number of dimensions is greater or equal to the number of results.
mlirAffineMapIsMinorIdentity⚠
Checks whether the given affine map is a minor identity affine map.
mlirAffineMapIsPermutation⚠
Checks whether the given affine map represents a symbol-less permutation map.
mlirAffineMapIsProjectedPermutation⚠
Checks whether the given affine map represents a subset of a symbol-less permutation map.
mlirAffineMapIsSingleConstant⚠
Checks whether the given affine map is a single result constant affine map.
mlirAffineMapMinorIdentityGet⚠
Creates an identity affine map on the most minor dimensions in the context. The affine map is owned by the context. The function asserts that the number of dimensions is greater or equal to the number of results.
mlirAffineMapMultiDimIdentityGet⚠
Creates an affine map with ‘numDims’ identity in the context. The affine map is owned by the context.
mlirAffineMapPermutationGet⚠
Creates an affine map with a permutation expression and its size in the context. The permutation expression is a non-empty vector of integers. The elements of the permutation vector must be continuous from 0 and cannot be repeated (i.e. [1,2,0] is a valid permutation. [2,0] or [1,1,2] is an invalid permutation.) The affine map is owned by the context.
mlirAffineMapPrint⚠
Prints an affine map by sending chunks of the string representation and forwarding userData to callback`. Note that the callback may be called several times with consecutive chunks of the string.
mlirAffineMapReplace⚠
Apply AffineExpr::replace(map) to each of the results and return a new new AffineMap with the new results and the specified number of dims and symbols.
mlirAffineMapZeroResultGet⚠
Creates a zero result affine map of the given dimensions and symbols in the context. The affine map is owned by the context.
mlirAffineModExprGet⚠
Creates an affine mod expression with ‘lhs’ and ‘rhs’.
mlirAffineMulExprGet⚠
Creates an affine mul expression with ‘lhs’ and ‘rhs’.
mlirAffineSymbolExprGet⚠
Creates an affine symbol expression with ‘position’ in the context.
mlirAffineSymbolExprGetPosition⚠
Returns the position of the given affine symbol expression.
mlirAnyQuantizedTypeGet⚠
Creates an instance of AnyQuantizedType with the given parameters in the same context as storageType and returns it. The instance is owned by the context.
mlirApplyPatternsAndFoldGreedily⚠
mlirArrayAttrGet⚠
Creates an array element containing the given list of elements in the given context.
mlirArrayAttrGetElement⚠
Returns pos-th element stored in the given array attribute.
mlirArrayAttrGetNumElements⚠
Returns the number of elements stored in the given array attribute.
mlirArrayAttrGetTypeID⚠
Returns the typeID of an Array attribute.
mlirAsmStateCreateForOperation⚠
Creates new AsmState, as with AsmState the IR should not be mutated in-between using this state. Must be freed with a call to mlirAsmStateDestroy().
mlirAsmStateCreateForValue⚠
Creates new AsmState from value. Must be freed with a call to mlirAsmStateDestroy().
mlirAsmStateDestroy⚠
Destroys printing flags created with mlirAsmStateCreate.
mlirAttributeDump⚠
Prints the attribute to the standard error stream.
mlirAttributeEqual⚠
Checks if two attributes are equal.
mlirAttributeGetContext⚠
Gets the context that an attribute was created with.
mlirAttributeGetDialect⚠
Gets the dialect of the attribute.
mlirAttributeGetNull⚠
Returns an empty attribute.
mlirAttributeGetType⚠
Gets the type of this attribute.
mlirAttributeGetTypeID⚠
Gets the type id of the attribute.
mlirAttributeIsAAffineMap⚠
Checks whether the given attribute is an affine map attribute.
mlirAttributeIsAArray⚠
Checks whether the given attribute is an array attribute.
mlirAttributeIsABool⚠
Checks whether the given attribute is a bool attribute.
mlirAttributeIsADenseBoolArray⚠
Checks whether the given attribute is a dense array attribute.
mlirAttributeIsADenseElements⚠
Checks whether the given attribute is a dense elements attribute.
mlirAttributeIsADenseF32Array⚠
mlirAttributeIsADenseF64Array⚠
mlirAttributeIsADenseFPElements⚠
mlirAttributeIsADenseI8Array⚠
mlirAttributeIsADenseI16Array⚠
mlirAttributeIsADenseI32Array⚠
mlirAttributeIsADenseI64Array⚠
mlirAttributeIsADenseIntElements⚠
mlirAttributeIsADenseResourceElements⚠
mlirAttributeIsADictionary⚠
Checks whether the given attribute is a dictionary attribute.
mlirAttributeIsAElements⚠
Checks whether the given attribute is an elements attribute.
mlirAttributeIsAFlatSymbolRef⚠
Checks whether the given attribute is a flat symbol reference attribute.
mlirAttributeIsAFloat⚠
Checks whether the given attribute is a floating point attribute.
mlirAttributeIsAGPUObjectAttr⚠
mlirAttributeIsAInteger⚠
Checks whether the given attribute is an integer attribute.
mlirAttributeIsAIntegerSet⚠
Checks whether the given attribute is an integer set attribute.
mlirAttributeIsALocation⚠
mlirAttributeIsAOpaque⚠
Checks whether the given attribute is an opaque attribute.
mlirAttributeIsASparseElements⚠
Checks whether the given attribute is a sparse elements attribute.
mlirAttributeIsASparseTensorEncodingAttr⚠
Checks whether the given attribute is a sparse_tensor.encoding attribute.
mlirAttributeIsAStridedLayout⚠
mlirAttributeIsAString⚠
Checks whether the given attribute is a string attribute.
mlirAttributeIsASymbolRef⚠
Checks whether the given attribute is a symbol reference attribute.
mlirAttributeIsAType⚠
Checks whether the given attribute is a type attribute.
mlirAttributeIsAUnit⚠
Checks whether the given attribute is a unit attribute.
mlirAttributeParseGet⚠
Parses an attribute. The attribute is owned by the context.
mlirAttributePrint⚠
Prints an attribute by sending chunks of the string representation and forwarding userData to callback`. Note that the callback may be called several times with consecutive chunks of the string.
mlirBF16TypeGet⚠
Creates a bf16 type in the given context. The type is owned by the context.
mlirBFloat16TypeGetTypeID⚠
Returns the typeID of an BFloat16 type.
mlirBlockAddArgument⚠
Appends an argument of the specified type to the block. Returns the newly added argument.
mlirBlockAppendOwnedOperation⚠
Takes an operation owned by the caller and appends it to the block.
mlirBlockArgumentGetArgNumber⚠
Returns the position of the value in the argument list of its block.
mlirBlockArgumentGetOwner⚠
Returns the block in which this value is defined as an argument. Asserts if the value is not a block argument.
mlirBlockArgumentSetType⚠
Sets the type of the block argument to the given type.
mlirBlockCreate⚠
Creates a new empty block with the given argument types and transfers ownership to the caller.
mlirBlockDestroy⚠
Takes a block owned by the caller and destroys it.
mlirBlockDetach⚠
Detach a block from the owning region and assume ownership.
mlirBlockEqual⚠
Checks whether two blocks handles point to the same block. This does not perform deep comparison.
mlirBlockEraseArgument⚠
Erase the argument at ‘index’ and remove it from the argument list.
mlirBlockGetArgument⚠
Returns pos-th argument of the block.
mlirBlockGetFirstOperation⚠
Returns the first operation in the block.
mlirBlockGetNextInRegion⚠
Returns the block immediately following the given block in its parent region.
mlirBlockGetNumArguments⚠
Returns the number of arguments of the block.
mlirBlockGetParentOperation⚠
Returns the closest surrounding operation that contains this block.
mlirBlockGetParentRegion⚠
Returns the region that contains this block.
mlirBlockGetTerminator⚠
Returns the terminator operation in the block or null if no terminator.
mlirBlockInsertArgument⚠
Inserts an argument of the specified type at a specified index to the block. Returns the newly added argument.
mlirBlockInsertOwnedOperation⚠
Takes an operation owned by the caller and inserts it as pos to the block. This is an expensive operation that scans the block linearly, prefer insertBefore/After instead.
mlirBlockInsertOwnedOperationAfter⚠
Takes an operation owned by the caller and inserts it after the (non-owned) reference operation in the given block. If the reference is null, prepends the operation. Otherwise, the reference must belong to the block.
mlirBlockInsertOwnedOperationBefore⚠
Takes an operation owned by the caller and inserts it before the (non-owned) reference operation in the given block. If the reference is null, appends the operation. Otherwise, the reference must belong to the block.
mlirBlockPrint⚠
Prints a block by sending chunks of the string representation and forwarding userData to callback`. Note that the callback may be called several times with consecutive chunks of the string.
mlirBoolAttrGet⚠
Creates a bool attribute in the given context with the given value.
mlirBoolAttrGetValue⚠
Returns the value stored in the given bool attribute.
mlirBytecodeWriterConfigCreate⚠
Creates new printing flags with defaults, intended for customization. Must be freed with a call to mlirBytecodeWriterConfigDestroy().
mlirBytecodeWriterConfigDesiredEmitVersion⚠
Sets the version to emit in the writer config.
mlirBytecodeWriterConfigDestroy⚠
Destroys printing flags created with mlirBytecodeWriterConfigCreate.
mlirCalibratedQuantizedTypeGet⚠
Creates an instance of CalibratedQuantizedType with the given parameters in the same context as expressedType and returns it. The instance is owned by the context.
mlirCalibratedQuantizedTypeGetMax⚠
Returns the max value of the given calibrated quantized type.
mlirCalibratedQuantizedTypeGetMin⚠
Returns the min value of the given calibrated quantized type.
mlirComplexTypeGet⚠
Creates a complex type with the given element type in the same context as the element type. The type is owned by the context.
mlirComplexTypeGetElementType⚠
Returns the element type of the given complex type.
mlirComplexTypeGetTypeID⚠
Returns the typeID of an Complex type.
mlirContextAppendDialectRegistry⚠
Append the contents of the given dialect registry to the registry associated with the context.
mlirContextAttachDiagnosticHandler⚠
Attaches the diagnostic handler to the context. Handlers are invoked in the reverse order of attachment until one of them processes the diagnostic completely. When a handler is invoked it is passed the userData that was provided when it was attached. If non-NULL, deleteUserData is called once the system no longer needs to call the handler (for instance after the handler is detached or the context is destroyed). Returns an identifier that can be used to detach the handler.
mlirContextCreate⚠
Creates an MLIR context and transfers its ownership to the caller. This sets the default multithreading option (enabled).
mlirContextCreateWithRegistry⚠
Creates an MLIR context, setting the multithreading setting explicitly and pre-loading the dialects from the provided DialectRegistry.
mlirContextCreateWithThreading⚠
Creates an MLIR context with an explicit setting of the multithreading setting and transfers its ownership to the caller.
mlirContextDestroy⚠
Takes an MLIR context owned by the caller and destroys it.
mlirContextDetachDiagnosticHandler⚠
Detaches an attached diagnostic handler from the context given its identifier.
mlirContextEnableMultithreading⚠
Set threading mode (must be set to false to mlir-print-ir-after-all).
mlirContextEqual⚠
Checks if two contexts are equal.
mlirContextGetAllowUnregisteredDialects⚠
Returns whether the context allows unregistered dialects.
mlirContextGetNumLoadedDialects⚠
Returns the number of dialects loaded by the context.
mlirContextGetNumRegisteredDialects⚠
Returns the number of dialects registered with the given context. A registered dialect will be loaded if needed by the parser.
mlirContextGetOrLoadDialect⚠
Gets the dialect instance owned by the given context using the dialect namespace to identify it, loads (i.e., constructs the instance of) the dialect if necessary. If the dialect is not registered with the context, returns null. Use mlirContextLoadDialect to load an unregistered dialect.
mlirContextIsRegisteredOperation⚠
Returns whether the given fully-qualified operation (i.e. ‘dialect.operation’) is registered with the context. This will return true if the dialect is loaded and the operation is registered within the dialect.
mlirContextLoadAllAvailableDialects⚠
Eagerly loads all available dialects registered with a context, making them available for use for IR construction.
mlirContextSetAllowUnregisteredDialects⚠
Sets whether unregistered dialects are allowed in this context.
mlirContextSetThreadPool⚠
Sets the thread pool of the context explicitly, enabling multithreading in the process. This API should be used to avoid re-creating thread pools in long-running applications that perform multiple compilations, see the C++ documentation for MLIRContext for details.
mlirCreateAsyncAsyncFuncToAsyncRuntime⚠
mlirCreateAsyncAsyncParallelFor⚠
mlirCreateAsyncAsyncRuntimePolicyBasedRefCounting⚠
mlirCreateAsyncAsyncRuntimeRefCounting⚠
mlirCreateAsyncAsyncRuntimeRefCountingOpt⚠
mlirCreateAsyncAsyncToAsyncRuntime⚠
mlirCreateConversionArithToAMDGPUConversionPass⚠
mlirCreateConversionArithToArmSMEConversionPass⚠
mlirCreateConversionArithToLLVMConversionPass⚠
mlirCreateConversionConvertAMDGPUToROCDL⚠
mlirCreateConversionConvertAffineForToGPU⚠
mlirCreateConversionConvertAffineToStandard⚠
mlirCreateConversionConvertArithToEmitC⚠
mlirCreateConversionConvertArithToSPIRV⚠
mlirCreateConversionConvertArmNeon2dToIntr⚠
mlirCreateConversionConvertArmSMEToLLVM⚠
mlirCreateConversionConvertArmSMEToSCF⚠
mlirCreateConversionConvertAsyncToLLVMPass⚠
mlirCreateConversionConvertBufferizationToMemRef⚠
mlirCreateConversionConvertComplexToLLVMPass⚠
mlirCreateConversionConvertComplexToLibm⚠
mlirCreateConversionConvertComplexToSPIRVPass⚠
mlirCreateConversionConvertComplexToStandard⚠
mlirCreateConversionConvertControlFlowToLLVMPass⚠
mlirCreateConversionConvertControlFlowToSPIRV⚠
mlirCreateConversionConvertFuncToEmitC⚠
mlirCreateConversionConvertFuncToLLVMPass⚠
mlirCreateConversionConvertFuncToSPIRV⚠
mlirCreateConversionConvertGPUToSPIRV⚠
mlirCreateConversionConvertGpuLaunchFuncToVulkanLaunchFunc⚠
mlirCreateConversionConvertGpuOpsToLLVMSPVOps⚠
mlirCreateConversionConvertGpuOpsToNVVMOps⚠
mlirCreateConversionConvertGpuOpsToROCDLOps⚠
mlirCreateConversionConvertIndexToLLVMPass⚠
mlirCreateConversionConvertIndexToSPIRVPass⚠
mlirCreateConversionConvertLinalgToStandard⚠
mlirCreateConversionConvertMathToFuncs⚠
mlirCreateConversionConvertMathToLLVMPass⚠
mlirCreateConversionConvertMathToLibm⚠
mlirCreateConversionConvertMathToROCDL⚠
mlirCreateConversionConvertMathToSPIRV⚠
mlirCreateConversionConvertMemRefToEmitC⚠
mlirCreateConversionConvertMemRefToSPIRV⚠
mlirCreateConversionConvertNVGPUToNVVMPass⚠
mlirCreateConversionConvertNVVMToLLVMPass⚠
mlirCreateConversionConvertOpenACCToSCF⚠
mlirCreateConversionConvertOpenMPToLLVMPass⚠
mlirCreateConversionConvertPDLToPDLInterp⚠
mlirCreateConversionConvertParallelLoopToGpu⚠
mlirCreateConversionConvertSCFToOpenMPPass⚠
mlirCreateConversionConvertSPIRVToLLVMPass⚠
mlirCreateConversionConvertShapeConstraints⚠
mlirCreateConversionConvertShapeToStandard⚠
mlirCreateConversionConvertTensorToLinalg⚠
mlirCreateConversionConvertTensorToSPIRV⚠
mlirCreateConversionConvertToLLVMPass⚠
mlirCreateConversionConvertToSPIRVPass⚠
mlirCreateConversionConvertVectorToArmSME⚠
mlirCreateConversionConvertVectorToGPU⚠
mlirCreateConversionConvertVectorToLLVMPass⚠
mlirCreateConversionConvertVectorToSCF⚠
mlirCreateConversionConvertVectorToSPIRV⚠
mlirCreateConversionConvertVulkanLaunchFuncToVulkanCallsPass⚠
mlirCreateConversionFinalizeMemRefToLLVMConversionPass⚠
mlirCreateConversionGpuToLLVMConversionPass⚠
mlirCreateConversionLiftControlFlowToSCFPass⚠
mlirCreateConversionLowerHostCodeToLLVMPass⚠
mlirCreateConversionMapMemRefStorageClass⚠
mlirCreateConversionReconcileUnrealizedCasts⚠
mlirCreateConversionSCFToControlFlow⚠
mlirCreateConversionSCFToEmitC⚠
mlirCreateConversionSCFToSPIRV⚠
mlirCreateConversionSetLLVMModuleDataLayoutPass⚠
mlirCreateConversionTosaToArith⚠
mlirCreateConversionTosaToLinalg⚠
mlirCreateConversionTosaToLinalgNamed⚠
mlirCreateConversionTosaToMLProgram⚠
mlirCreateConversionTosaToSCF⚠
mlirCreateConversionTosaToTensor⚠
mlirCreateConversionUBToLLVMConversionPass⚠
mlirCreateConversionUBToSPIRVConversionPass⚠
mlirCreateExternalPass⚠
Creates an external MlirPass that calls the supplied callbacks using the supplied userData. If opName is empty, the pass is a generic operation pass. Otherwise it is an operation pass specific to the specified pass name.
mlirCreateGPUGpuAsyncRegionPass⚠
mlirCreateGPUGpuDecomposeMemrefsPass⚠
mlirCreateGPUGpuEliminateBarriers⚠
mlirCreateGPUGpuKernelOutlining⚠
mlirCreateGPUGpuLaunchSinkIndexComputations⚠
mlirCreateGPUGpuMapParallelLoopsPass⚠
mlirCreateGPUGpuModuleToBinaryPass⚠
mlirCreateGPUGpuNVVMAttachTarget⚠
mlirCreateGPUGpuROCDLAttachTarget⚠
mlirCreateGPUGpuSPIRVAttachTarget⚠
mlirCreateLinalgConvertElementwiseToLinalgPass⚠
mlirCreateLinalgConvertLinalgToAffineLoopsPass⚠
mlirCreateLinalgConvertLinalgToLoopsPass⚠
mlirCreateLinalgConvertLinalgToParallelLoopsPass⚠
mlirCreateLinalgLinalgBlockPackMatmul⚠
mlirCreateLinalgLinalgDetensorizePass⚠
mlirCreateLinalgLinalgElementwiseOpFusionPass⚠
mlirCreateLinalgLinalgFoldUnitExtentDimsPass⚠
mlirCreateLinalgLinalgGeneralizeNamedOpsPass⚠
mlirCreateLinalgLinalgInlineScalarOperandsPass⚠
mlirCreateLinalgLinalgNamedOpConversionPass⚠
mlirCreateLinalgLinalgSpecializeGenericOpsPass⚠
mlirCreateSparseTensorLowerForeachToSCF⚠
mlirCreateSparseTensorLowerSparseIterationToSCF⚠
mlirCreateSparseTensorLowerSparseOpsToForeach⚠
mlirCreateSparseTensorPreSparsificationRewrite⚠
mlirCreateSparseTensorSparseAssembler⚠
mlirCreateSparseTensorSparseBufferRewrite⚠
mlirCreateSparseTensorSparseGPUCodegen⚠
mlirCreateSparseTensorSparseReinterpretMap⚠
mlirCreateSparseTensorSparseSpaceCollapse⚠
mlirCreateSparseTensorSparseTensorCodegen⚠
mlirCreateSparseTensorSparseTensorConversionPass⚠
mlirCreateSparseTensorSparseVectorization⚠
mlirCreateSparseTensorSparsificationAndBufferization⚠
mlirCreateSparseTensorSparsificationPass⚠
mlirCreateSparseTensorStageSparseOperations⚠
mlirCreateSparseTensorStorageSpecifierToLLVM⚠
mlirCreateTransformsCSE⚠
mlirCreateTransformsCanonicalizer⚠
mlirCreateTransformsCompositeFixedPointPass⚠
mlirCreateTransformsControlFlowSink⚠
mlirCreateTransformsGenerateRuntimeVerification⚠
mlirCreateTransformsInliner⚠
mlirCreateTransformsLocationSnapshot⚠
mlirCreateTransformsLoopInvariantCodeMotion⚠
mlirCreateTransformsLoopInvariantSubsetHoisting⚠
mlirCreateTransformsMem2Reg⚠
mlirCreateTransformsPrintIRPass⚠
mlirCreateTransformsPrintOpStats⚠
mlirCreateTransformsRemoveDeadValues⚠
mlirCreateTransformsSCCP⚠
mlirCreateTransformsSROA⚠
mlirCreateTransformsStripDebugInfo⚠
mlirCreateTransformsSymbolDCE⚠
mlirCreateTransformsSymbolPrivatize⚠
mlirCreateTransformsTopologicalSort⚠
mlirCreateTransformsViewOpGraph⚠
mlirDenseArrayAttrGetTypeID⚠
mlirDenseArrayGetNumElements⚠
Get the size of a dense array.
mlirDenseBoolArrayGet⚠
Create a dense array attribute with the given elements.
mlirDenseBoolArrayGetElement⚠
Get an element of a dense array.
mlirDenseBoolResourceElementsAttrGetValue⚠
Returns the pos-th value (flat contiguous indexing) of a specific type contained by the given dense resource elements attribute.
mlirDenseDoubleResourceElementsAttrGetValue⚠
mlirDenseElementsAttrBFloat16Get⚠
mlirDenseElementsAttrBoolGet⚠
Creates a dense elements attribute with the given shaped type from elements of a specific type. Expects the element type of the shaped type to match the data element type.
mlirDenseElementsAttrBoolSplatGet⚠
mlirDenseElementsAttrDoubleGet⚠
mlirDenseElementsAttrDoubleSplatGet⚠
mlirDenseElementsAttrFloat16Get⚠
mlirDenseElementsAttrFloatGet⚠
mlirDenseElementsAttrFloatSplatGet⚠
mlirDenseElementsAttrGet⚠
Creates a dense elements attribute with the given Shaped type and elements in the same context as the type.
mlirDenseElementsAttrGetBoolSplatValue⚠
mlirDenseElementsAttrGetBoolValue⚠
Returns the pos-th value (flat contiguous indexing) of a specific type contained by the given dense elements attribute.
mlirDenseElementsAttrGetDoubleSplatValue⚠
mlirDenseElementsAttrGetDoubleValue⚠
mlirDenseElementsAttrGetFloatSplatValue⚠
mlirDenseElementsAttrGetFloatValue⚠
mlirDenseElementsAttrGetInt8SplatValue⚠
mlirDenseElementsAttrGetInt8Value⚠
mlirDenseElementsAttrGetInt16Value⚠
mlirDenseElementsAttrGetInt32SplatValue⚠
mlirDenseElementsAttrGetInt32Value⚠
mlirDenseElementsAttrGetInt64SplatValue⚠
mlirDenseElementsAttrGetInt64Value⚠
mlirDenseElementsAttrGetRawData⚠
Returns the raw data of the given dense elements attribute.
mlirDenseElementsAttrGetSplatValue⚠
Returns the single replicated value (splat) of a specific type contained by the given dense elements attribute.
mlirDenseElementsAttrGetStringSplatValue⚠
mlirDenseElementsAttrGetStringValue⚠
mlirDenseElementsAttrGetUInt8SplatValue⚠
mlirDenseElementsAttrGetUInt8Value⚠
mlirDenseElementsAttrGetUInt16Value⚠
mlirDenseElementsAttrGetUInt32SplatValue⚠
mlirDenseElementsAttrGetUInt32Value⚠
mlirDenseElementsAttrGetUInt64SplatValue⚠
mlirDenseElementsAttrGetUInt64Value⚠
mlirDenseElementsAttrInt8Get⚠
mlirDenseElementsAttrInt8SplatGet⚠
mlirDenseElementsAttrInt16Get⚠
mlirDenseElementsAttrInt32Get⚠
mlirDenseElementsAttrInt32SplatGet⚠
mlirDenseElementsAttrInt64Get⚠
mlirDenseElementsAttrInt64SplatGet⚠
mlirDenseElementsAttrIsSplat⚠
Checks whether the given dense elements attribute contains a single replicated value (splat).
mlirDenseElementsAttrRawBufferGet⚠
Creates a dense elements attribute with the given Shaped type and elements populated from a packed, row-major opaque buffer of contents.
mlirDenseElementsAttrReshapeGet⚠
Creates a dense elements attribute that has the same data as the given dense elements attribute and a different shaped type. The new type must have the same total number of elements.
mlirDenseElementsAttrSplatGet⚠
Creates a dense elements attribute with the given Shaped type containing a single replicated element (splat).
mlirDenseElementsAttrStringGet⚠
Creates a dense elements attribute with the given shaped type from string elements.
mlirDenseElementsAttrUInt8Get⚠
mlirDenseElementsAttrUInt8SplatGet⚠
mlirDenseElementsAttrUInt16Get⚠
mlirDenseElementsAttrUInt32Get⚠
mlirDenseElementsAttrUInt32SplatGet⚠
mlirDenseElementsAttrUInt64Get⚠
mlirDenseElementsAttrUInt64SplatGet⚠
mlirDenseF32ArrayGet⚠
mlirDenseF32ArrayGetElement⚠
mlirDenseF64ArrayGet⚠
mlirDenseF64ArrayGetElement⚠
mlirDenseFloatResourceElementsAttrGetValue⚠
mlirDenseI8ArrayGet⚠
mlirDenseI8ArrayGetElement⚠
mlirDenseI16ArrayGet⚠
mlirDenseI16ArrayGetElement⚠
mlirDenseI32ArrayGet⚠
mlirDenseI32ArrayGetElement⚠
mlirDenseI64ArrayGet⚠
mlirDenseI64ArrayGetElement⚠
mlirDenseInt8ResourceElementsAttrGetValue⚠
mlirDenseInt16ResourceElementsAttrGetValue⚠
mlirDenseInt32ResourceElementsAttrGetValue⚠
mlirDenseInt64ResourceElementsAttrGetValue⚠
mlirDenseIntOrFPElementsAttrGetTypeID⚠
Returns the typeID of an DenseIntOrFPElements attribute.
mlirDenseUInt8ResourceElementsAttrGetValue⚠
mlirDenseUInt16ResourceElementsAttrGetValue⚠
mlirDenseUInt32ResourceElementsAttrGetValue⚠
mlirDenseUInt64ResourceElementsAttrGetValue⚠
mlirDiagnosticGetLocation⚠
Returns the location at which the diagnostic is reported.
mlirDiagnosticGetNote⚠
Returns pos-th note attached to the diagnostic. Expects pos to be a valid zero-based index into the list of notes.
mlirDiagnosticGetNumNotes⚠
Returns the number of notes attached to the diagnostic.
mlirDiagnosticGetSeverity⚠
Returns the severity of the diagnostic.
mlirDiagnosticPrint⚠
Prints a diagnostic using the provided callback.
mlirDialectEqual⚠
Checks if two dialects that belong to the same context are equal. Dialects from different contexts will not compare equal.
mlirDialectGetContext⚠
Returns the context that owns the dialect.
mlirDialectGetNamespace⚠
Returns the namespace of the given dialect.
mlirDialectHandleGetNamespace⚠
Returns the namespace associated with the provided dialect handle.
mlirDialectHandleInsertDialect⚠
Inserts the dialect associated with the provided dialect handle into the provided dialect registry
mlirDialectHandleLoadDialect⚠
Loads the dialect associated with the provided dialect handle.
mlirDialectHandleRegisterDialect⚠
Registers the dialect associated with the provided dialect handle.
mlirDialectRegistryCreate⚠
Creates a dialect registry and transfers its ownership to the caller.
mlirDialectRegistryDestroy⚠
Takes a dialect registry owned by the caller and destroys it.
mlirDictionaryAttrGet⚠
Creates a dictionary attribute containing the given list of elements in the provided context.
mlirDictionaryAttrGetElement⚠
Returns pos-th element of the given dictionary attribute.
mlirDictionaryAttrGetElementByName⚠
Returns the dictionary attribute element with the given name or NULL if the given name does not exist in the dictionary.
mlirDictionaryAttrGetNumElements⚠
Returns the number of attributes contained in a dictionary attribute.
mlirDictionaryAttrGetTypeID⚠
Returns the typeID of a Dictionary attribute.
mlirDisctinctAttrCreate⚠
Creates a DisctinctAttr with the referenced attribute.
mlirElementsAttrGetNumElements⚠
Gets the total number of elements in the given elements attribute. In order to iterate over the attribute, obtain its type, which must be a statically shaped type and use its sizes to build a multi-dimensional index.
mlirElementsAttrGetValue⚠
Returns the element at the given rank-dimensional index.
mlirElementsAttrIsValidIndex⚠
Checks whether the given rank-dimensional index is valid in the given elements attribute.
mlirEmitError⚠
Emits an error at the given location through the diagnostics engine. Used for testing purposes.
mlirEnableGlobalDebug⚠
Sets the global debugging flag.
mlirExecutionEngineCreate⚠
Creates an ExecutionEngine for the provided ModuleOp. The ModuleOp is expected to be “translatable” to LLVM IR (only contains operations in dialects that implement the LLVMTranslationDialectInterface). The module ownership stays with the client and can be destroyed as soon as the call returns. optLevel is the optimization level to be used for transformation and code generation. LLVM passes at optLevel are run before code generation. The number and array of paths corresponding to shared libraries that will be loaded are specified via numPaths and sharedLibPaths respectively. TODO: figure out other options.
mlirExecutionEngineDestroy⚠
Destroy an ExecutionEngine instance.
mlirExecutionEngineDumpToObjectFile⚠
Dump as an object in fileName.
mlirExecutionEngineInvokePacked⚠
Invoke a native function in the execution engine by name with the arguments and result of the invoked function passed as an array of pointers. The function must have been tagged with the llvm.emit_c_interface attribute. Returns a failure if the execution fails for any reason (the function name can’t be resolved for instance).
mlirExecutionEngineLookup⚠
Lookup a native function in the execution engine by name, returns nullptr if the name can’t be looked-up.
mlirExecutionEngineLookupPacked⚠
Lookup the wrapper of the native function in the execution engine with the given name, returns nullptr if the function can’t be looked-up.
mlirExecutionEngineRegisterSymbol⚠
Register a symbol with the jit: this symbol will be accessible to the jitted code.
mlirExternalPassSignalFailure⚠
This signals that the pass has failed. This is only valid to call during the run callback of MlirExternalPassCallbacks. See Pass::signalPassFailure().
mlirF16TypeGet⚠
Creates an f16 type in the given context. The type is owned by the context.
mlirF32TypeGet⚠
Creates an f32 type in the given context. The type is owned by the context.
mlirF64TypeGet⚠
Creates a f64 type in the given context. The type is owned by the context.
mlirFlatSymbolRefAttrGet⚠
Creates a flat symbol reference attribute in the given context referencing a symbol identified by the given string.
mlirFlatSymbolRefAttrGetValue⚠
Returns the referenced symbol as a string reference. The data remains live as long as the context in which the attribute lives.
mlirFloat8E4M3B11FNUZTypeGet⚠
Creates an f8E4M3B11FNUZ type in the given context. The type is owned by the context.
mlirFloat8E4M3B11FNUZTypeGetTypeID⚠
Returns the typeID of an Float8E4M3B11FNUZ type.
mlirFloat8E4M3FNTypeGet⚠
Creates an f8E4M3FN type in the given context. The type is owned by the context.
mlirFloat8E4M3FNTypeGetTypeID⚠
Returns the typeID of an Float8E4M3FN type.
mlirFloat8E4M3FNUZTypeGet⚠
Creates an f8E4M3FNUZ type in the given context. The type is owned by the context.
mlirFloat8E4M3FNUZTypeGetTypeID⚠
Returns the typeID of an Float8E4M3FNUZ type.
mlirFloat8E4M3TypeGet⚠
Creates an f8E4M3 type in the given context. The type is owned by the context.
mlirFloat8E4M3TypeGetTypeID⚠
Returns the typeID of an Float8E4M3 type.
mlirFloat8E5M2FNUZTypeGet⚠
Creates an f8E5M2FNUZ type in the given context. The type is owned by the context.
mlirFloat8E5M2FNUZTypeGetTypeID⚠
Returns the typeID of an Float8E5M2FNUZ type.
mlirFloat8E5M2TypeGet⚠
Creates an f8E5M2 type in the given context. The type is owned by the context.
mlirFloat8E5M2TypeGetTypeID⚠
Returns the typeID of an Float8E5M2 type.
mlirFloat16TypeGetTypeID⚠
Returns the typeID of an Float16 type.
mlirFloat32TypeGetTypeID⚠
Returns the typeID of an Float32 type.
mlirFloat64TypeGetTypeID⚠
Returns the typeID of an Float64 type.
mlirFloatAttrDoubleGet⚠
Creates a floating point attribute in the given context with the given double value and double-precision FP semantics.
mlirFloatAttrDoubleGetChecked⚠
Same as “mlirFloatAttrDoubleGet”, but if the type is not valid for a construction of a FloatAttr, returns a null MlirAttribute.
mlirFloatAttrGetTypeID⚠
Returns the typeID of a Float attribute.
mlirFloatAttrGetValueDouble⚠
Returns the value stored in the given floating point attribute, interpreting the value as double.
mlirFloatTF32TypeGetTypeID⚠
Returns the typeID of a TF32 type.
mlirFloatTypeGetWidth⚠
Returns the bitwidth of a floating-point type.
mlirFreezeRewritePattern⚠
FrozenRewritePatternSet API
mlirFrozenRewritePatternSetDestroy⚠
mlirFuncSetArgAttr⚠
Sets the argument attribute ‘name’ of an argument at index ‘pos’. Asserts that the operation is a FuncOp.
mlirFunctionTypeGet⚠
Creates a function type, mapping a list of input types to result types.
mlirFunctionTypeGetInput⚠
Returns the pos-th input type.
mlirFunctionTypeGetNumInputs⚠
Returns the number of input types.
mlirFunctionTypeGetNumResults⚠
Returns the number of result types.
mlirFunctionTypeGetResult⚠
Returns the pos-th result type.
mlirFunctionTypeGetTypeID⚠
Returns the typeID of an Function type.
mlirGPUAsyncTokenTypeGet⚠
mlirGPUObjectAttrGet⚠
mlirGPUObjectAttrGetFormat⚠
mlirGPUObjectAttrGetObject⚠
mlirGPUObjectAttrGetProperties⚠
mlirGPUObjectAttrGetTarget⚠
mlirGPUObjectAttrHasProperties⚠
mlirGetDialectHandle__amdgpu__⚠
mlirGetDialectHandle__arith__⚠
mlirGetDialectHandle__async__⚠
mlirGetDialectHandle__cf__⚠
mlirGetDialectHandle__func__⚠
mlirGetDialectHandle__gpu__⚠
mlirGetDialectHandle__irdl__⚠
mlirGetDialectHandle__linalg__⚠
mlirGetDialectHandle__llvm__⚠
mlirGetDialectHandle__math__⚠
mlirGetDialectHandle__memref__⚠
mlirGetDialectHandle__ml_program__⚠
mlirGetDialectHandle__nvgpu__⚠
mlirGetDialectHandle__omp__⚠
mlirGetDialectHandle__pdl__⚠
mlirGetDialectHandle__quant__⚠
mlirGetDialectHandle__rocdl__⚠
mlirGetDialectHandle__scf__⚠
mlirGetDialectHandle__shape__⚠
mlirGetDialectHandle__sparse_tensor__⚠
mlirGetDialectHandle__spirv__⚠
mlirGetDialectHandle__tensor__⚠
mlirGetDialectHandle__transform__⚠
mlirGetDialectHandle__vector__⚠
mlirIRRewriterCreate⚠
Create an IRRewriter and transfer ownership to the caller.
mlirIRRewriterCreateFromOp⚠
Create an IRRewriter and transfer ownership to the caller. Additionally set the insertion point before the operation.
mlirIRRewriterDestroy⚠
Takes an IRRewriter owned by the caller and destroys it. It is the responsibility of the user to only pass an IRRewriter class.
mlirIdentifierEqual⚠
Checks whether two identifiers are the same.
mlirIdentifierGet⚠
Gets an identifier with the given string value.
mlirIdentifierGetContext⚠
Returns the context associated with this identifier
mlirIdentifierStr⚠
Gets the string value of the identifier.
mlirIndexTypeGet⚠
Creates an index type in the given context. The type is owned by the context.
mlirIndexTypeGetTypeID⚠
Returns the typeID of an Index type.
mlirInferShapedTypeOpInterfaceInferReturnTypes⚠
Infers the return shaped type components of the operation. Calls callback with the types of inferred arguments on success. Returns failure otherwise.
mlirInferShapedTypeOpInterfaceTypeID⚠
Returns the interface TypeID of the InferShapedTypeOpInterface.
mlirInferTypeOpInterfaceInferReturnTypes⚠
Infers the return types of the operation identified by its canonical given the arguments that will be supplied to its generic builder. Calls callback with the types of inferred arguments, potentially several times, on success. Returns failure otherwise.
mlirInferTypeOpInterfaceTypeID⚠
Returns the interface TypeID of the InferTypeOpInterface.
mlirIntegerAttrGet⚠
Creates an integer attribute of the given type with the given integer value.
mlirIntegerAttrGetTypeID⚠
Returns the typeID of an Integer attribute.
mlirIntegerAttrGetValueInt⚠
Returns the value stored in the given integer attribute, assuming the value is of signless type and fits into a signed 64-bit integer.
mlirIntegerAttrGetValueSInt⚠
Returns the value stored in the given integer attribute, assuming the value is of signed type and fits into a signed 64-bit integer.
mlirIntegerAttrGetValueUInt⚠
Returns the value stored in the given integer attribute, assuming the value is of unsigned type and fits into an unsigned 64-bit integer.
mlirIntegerSetAttrGetTypeID⚠
Returns the typeID of an IntegerSet attribute.
mlirIntegerSetDump⚠
Prints an integer set to the standard error stream.
mlirIntegerSetEmptyGet⚠
Gets or creates a new canonically empty integer set with the give number of dimensions and symbols in the given context.
mlirIntegerSetEqual⚠
Checks if two integer set objects are equal. This is a “shallow” comparison of two objects. Only the sets with some small number of constraints are uniqued and compare equal here. Set objects that represent the same integer set with different constraints may be considered non-equal by this check. Set difference followed by an (expensive) emptiness check should be used to check equivalence of the underlying integer sets.
mlirIntegerSetGet⚠
Gets or creates a new integer set in the given context. The set is defined by a list of affine constraints, with the given number of input dimensions and symbols, which are treated as either equalities (eqFlags is 1) or inequalities (eqFlags is 0). Both constraints and eqFlags are expected to point to at least numConstraint consecutive values.
mlirIntegerSetGetConstraint⚠
Returns pos-th constraint of the set.
mlirIntegerSetGetContext⚠
Gets the context in which the given integer set lives.
mlirIntegerSetGetNumConstraints⚠
Returns the number of constraints (equalities + inequalities) in the given set.
mlirIntegerSetGetNumDims⚠
Returns the number of dimensions in the given set.
mlirIntegerSetGetNumEqualities⚠
Returns the number of equalities in the given set.
mlirIntegerSetGetNumInequalities⚠
Returns the number of inequalities in the given set.
mlirIntegerSetGetNumInputs⚠
Returns the number of inputs (dimensions + symbols) in the given set.
mlirIntegerSetGetNumSymbols⚠
Returns the number of symbols in the given set.
mlirIntegerSetIsCanonicalEmpty⚠
Checks whether the given set is a canonical empty set, e.g., the set returned by mlirIntegerSetEmptyGet.
mlirIntegerSetIsConstraintEq⚠
Returns true of the pos-th constraint of the set is an equality constraint, false otherwise.
mlirIntegerSetPrint⚠
Prints an integer set by sending chunks of the string representation and forwarding userData to callback`. Note that the callback may be called several times with consecutive chunks of the string.
mlirIntegerSetReplaceGet⚠
Gets or creates a new integer set in which the values and dimensions of the given set are replaced with the given affine expressions. dimReplacements and symbolReplacements are expected to point to at least as many consecutive expressions as the given set has dimensions and symbols, respectively. The new set will have numResultDims and numResultSymbols dimensions and symbols, respectively.
mlirIntegerTypeGet⚠
Creates a signless integer type of the given bitwidth in the context. The type is owned by the context.
mlirIntegerTypeGetTypeID⚠
Returns the typeID of an Integer type.
mlirIntegerTypeGetWidth⚠
Returns the bitwidth of an integer type.
mlirIntegerTypeIsSigned⚠
Checks whether the given integer type is signed.
mlirIntegerTypeIsSignless⚠
Checks whether the given integer type is signless.
mlirIntegerTypeIsUnsigned⚠
Checks whether the given integer type is unsigned.
mlirIntegerTypeSignedGet⚠
Creates a signed integer type of the given bitwidth in the context. The type is owned by the context.
mlirIntegerTypeUnsignedGet⚠
Creates an unsigned integer type of the given bitwidth in the context. The type is owned by the context.
mlirIsCurrentDebugType⚠
Checks if type is set as the current debug type.
mlirIsGlobalDebugEnabled⚠
Retuns true if the global debugging flag is set, false otherwise.
mlirLLVMArrayTypeGet⚠
Creates an llvm.array type.
mlirLLVMCConvAttrGet⚠
Creates a LLVM CConv attribute.
mlirLLVMComdatAttrGet⚠
Creates a LLVM Comdat attribute.
mlirLLVMDIBasicTypeAttrGet⚠
Creates a LLVM DIBasicType attribute.
mlirLLVMDICompileUnitAttrGet⚠
Creates a LLVM DICompileUnit attribute.
mlirLLVMDICompositeTypeAttrGet⚠
Creates a LLVM DICompositeType attribute.
mlirLLVMDIDerivedTypeAttrGet⚠
Creates a LLVM DIDerivedType attribute. Note that dwarfAddressSpace is an optional field, where MLIR_CAPI_DWARF_ADDRESS_SPACE_NULL indicates null and non-negative values indicate a value present.
mlirLLVMDIDerivedTypeAttrGetBaseType⚠
Gets the base type from a LLVM DIDerivedType attribute.
mlirLLVMDIExpressionAttrGet⚠
Creates a LLVM DIExpression attribute.
mlirLLVMDIExpressionElemAttrGet⚠
Creates a LLVM DIExpressionElem attribute.
mlirLLVMDIFileAttrGet⚠
Creates a LLVM DIFileAttr attribute.
mlirLLVMDIFlagsAttrGet⚠
Creates a LLVM DIFlags attribute.
mlirLLVMDILexicalBlockAttrGet⚠
Creates a LLVM DILexicalBlock attribute.
mlirLLVMDILexicalBlockFileAttrGet⚠
Creates a LLVM DILexicalBlockFile attribute.
mlirLLVMDILocalVariableAttrGet⚠
Creates a LLVM DILocalVariableAttr attribute.
mlirLLVMDIModuleAttrGet⚠
Creates a LLVM DIModuleAttr attribute.
mlirLLVMDIModuleAttrGetScope⚠
Gets the scope of this DIModuleAttr.
mlirLLVMDINullTypeAttrGet⚠
Creates a LLVM DINullType attribute.
mlirLLVMDIStringTypeAttrGet⚠
mlirLLVMDISubprogramAttrGet⚠
Creates a LLVM DISubprogramAttr attribute.
mlirLLVMDISubprogramAttrGetCompileUnit⚠
Gets the compile unit from this DISubprogram.
mlirLLVMDISubprogramAttrGetFile⚠
Gets the file from this DISubprogramAttr.
mlirLLVMDISubprogramAttrGetLine⚠
Gets the line from this DISubprogramAttr.
mlirLLVMDISubprogramAttrGetScope⚠
Gets the scope from this DISubprogramAttr.
mlirLLVMDISubprogramAttrGetScopeLine⚠
Gets the scope line from this DISubprogram.
mlirLLVMDISubprogramAttrGetType⚠
Gets the type from this DISubprogramAttr.
mlirLLVMDISubroutineTypeAttrGet⚠
Creates a LLVM DISubroutineTypeAttr attribute.
mlirLLVMFunctionTypeGet⚠
Creates an llvm.func type.
mlirLLVMLinkageAttrGet⚠
Creates a LLVM Linkage attribute.
mlirLLVMPointerTypeGet⚠
Creates an llvm.ptr type.
mlirLLVMPointerTypeGetAddressSpace⚠
Returns address space of llvm.ptr
mlirLLVMStructTypeGetElementType⚠
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.
mlirLLVMStructTypeGetIdentifier⚠
Returns the identifier of the identified struct. Asserts that the struct is identified, i.e., not literal.
mlirLLVMStructTypeGetNumElementTypes⚠
Returns the number of fields in the struct. Asserts if the struct is opaque or not yet initialized.
mlirLLVMStructTypeIdentifiedGet⚠
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.
mlirLLVMStructTypeIdentifiedNewGet⚠
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.
mlirLLVMStructTypeIsLiteral⚠
Returns true if the type is a literal (unnamed) LLVM struct type.
mlirLLVMStructTypeIsOpaque⚠
Returns true is the struct is explicitly opaque (will not have a body) or uninitialized (will eventually have a body).
mlirLLVMStructTypeIsPacked⚠
Returns true if the struct is packed.
mlirLLVMStructTypeLiteralGet⚠
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.
mlirLLVMStructTypeLiteralGetChecked⚠
Creates an LLVM literal (unnamed) struct type if possible. Emits a diagnostic at the given location and returns null otherwise.
mlirLLVMStructTypeOpaqueGet⚠
mlirLLVMStructTypeSetBody⚠
Sets the body of the identified struct if it hasn’t been set yet. Returns whether the operation was successful.
mlirLLVMVoidTypeGet⚠
Creates an llmv.void type.
mlirLinalgFillBuiltinNamedOpRegion⚠
Apply the special region builder for the builtin named Linalg op. Assert that mlirOp is a builtin named Linalg op.
mlirLlvmThreadPoolCreate⚠
Create an LLVM thread pool. This is reexported here to avoid directly pulling in the LLVM headers directly.
mlirLlvmThreadPoolDestroy⚠
Destroy an LLVM thread pool.
mlirLoadIRDLDialects⚠
Loads all IRDL dialects in the provided module, registering the dialects in the module’s associated context.
mlirLocationCallSiteGet⚠
Creates a call site location with a callee and a caller.
mlirLocationEqual⚠
Checks if two locations are equal.
mlirLocationFileLineColGet⚠
Creates an File/Line/Column location owned by the given context.
mlirLocationFromAttribute⚠
Creates a location from a location attribute.
mlirLocationFusedGet⚠
Creates a fused location with an array of locations and metadata.
mlirLocationGetAttribute⚠
Returns the underlying location attribute of this location.
mlirLocationGetContext⚠
Gets the context that a location was created with.
mlirLocationNameGet⚠
Creates a name location owned by the given context. Providing null location for childLoc is allowed and if childLoc is null location, then the behavior is the same as having unknown child location.
mlirLocationPrint⚠
Prints a location by sending chunks of the string representation and forwarding userData to callback`. Note that the callback may be called several times with consecutive chunks of the string.
mlirLocationUnknownGet⚠
Creates a location with unknown position owned by the given context.
mlirMemRefTypeContiguousGet⚠
Creates a MemRef type with the given rank, shape, memory space and element type in the same context as the element type. The type has no affine maps, i.e. represents a default row-major contiguous memref. The type is owned by the context.
mlirMemRefTypeContiguousGetChecked⚠
Same as “mlirMemRefTypeContiguousGet” but returns a nullptr wrapping MlirType on illegal arguments, emitting appropriate diagnostics.
mlirMemRefTypeGet⚠
Creates a MemRef type with the given rank and shape, a potentially empty list of affine layout maps, the given memory space and element type, in the same context as element type. The type is owned by the context.
mlirMemRefTypeGetAffineMap⚠
Returns the affine map of the given MemRef type.
mlirMemRefTypeGetChecked⚠
Same as “mlirMemRefTypeGet” but returns a nullptr-wrapping MlirType o illegal arguments, emitting appropriate diagnostics.
mlirMemRefTypeGetLayout⚠
Returns the layout of the given MemRef type.
mlirMemRefTypeGetMemorySpace⚠
Returns the memory space of the given MemRef type.
mlirMemRefTypeGetStridesAndOffset⚠
Returns the strides of the MemRef if the layout map is in strided form. Both strides and offset are out params. strides must point to pre-allocated memory of length equal to the rank of the memref.
mlirMemRefTypeGetTypeID⚠
Returns the typeID of an MemRef type.
mlirMergeSymbolsIntoFromClone⚠
Merge the symbols from other into target, potentially renaming them to avoid conflicts. Private symbols may be renamed during the merge, public symbols must have at most one declaration. A name conflict in public symbols is reported as an error before returning a failure.
mlirModuleCreateEmpty⚠
Creates a new, empty module and transfers ownership to the caller.
mlirModuleCreateParse⚠
Parses a module from the string and transfers ownership to the caller.
mlirModuleDestroy⚠
Takes a module owned by the caller and deletes it.
mlirModuleFromOperation⚠
Views the generic operation as a module. The returned module is null when the input operation was not a ModuleOp.
mlirModuleGetBody⚠
Gets the body of the module, i.e. the only block it contains.
mlirModuleGetContext⚠
Gets the context that a module was created with.
mlirModuleGetOperation⚠
Views the module as a generic operation.
mlirNVGPUTensorMapDescriptorTypeGet⚠
mlirNamedAttributeGet⚠
Associates an attribute with the name. Takes ownership of neither.
mlirNoneTypeGet⚠
Creates a None type in the given context. The type is owned by the context.
mlirNoneTypeGetTypeID⚠
Returns the typeID of an None type.
mlirOpOperandGetNextUse⚠
Returns an op operand representing the next use of the value, or a null op operand if there is no next use.
mlirOpOperandGetOperandNumber⚠
Returns the operand number of an op operand.
mlirOpOperandGetOwner⚠
Returns the owner operation of an op operand.
mlirOpOperandGetValue⚠
Returns the value of an op operand.
mlirOpOperandIsNull⚠
Returns whether the op operand is null.
mlirOpPassManagerAddOwnedPass⚠
Add a pass and transfer ownership to the provided mlirOpPassManager. If the pass is not a generic operation pass or matching the type of the provided PassManager, a new OpPassManager is implicitly nested under the provided PassManager.
mlirOpPassManagerAddPipeline⚠
Parse a sequence of textual MLIR pass pipeline elements and add them to the provided OpPassManager. If parsing fails an error message is reported using the provided callback.
mlirOpPassManagerGetNestedUnder⚠
Nest an OpPassManager under the provided OpPassManager, the nested passmanager will only run on operations matching the provided name. The returned OpPassManager will be destroyed when the parent is destroyed.
mlirOpPrintingFlagsAssumeVerified⚠
Do not verify the operation when using custom operation printers.
mlirOpPrintingFlagsCreate⚠
Creates new printing flags with defaults, intended for customization. Must be freed with a call to mlirOpPrintingFlagsDestroy().
mlirOpPrintingFlagsDestroy⚠
Destroys printing flags created with mlirOpPrintingFlagsCreate.
mlirOpPrintingFlagsElideLargeElementsAttrs⚠
Enables the elision of large elements attributes by printing a lexically valid but otherwise meaningless form instead of the element data. The largeElementLimit is used to configure what is considered to be a “large” ElementsAttr by providing an upper limit to the number of elements.
mlirOpPrintingFlagsElideLargeResourceString⚠
Enables the elision of large resources strings by omitting them from the dialect_resources section. The largeResourceLimit is used to configure what is considered to be a “large” resource by providing an upper limit to the string size.
mlirOpPrintingFlagsEnableDebugInfo⚠
Enable or disable printing of debug information (based on enable). If ‘prettyForm’ is set to true, debug information is printed in a more readable ‘pretty’ form. Note: The IR generated with ‘prettyForm’ is not parsable.
mlirOpPrintingFlagsPrintGenericOpForm⚠
Always print operations in the generic form.
mlirOpPrintingFlagsSkipRegions⚠
Skip printing regions.
mlirOpPrintingFlagsUseLocalScope⚠
Use local scope when printing the operation. This allows for using the printer in a more localized and thread-safe setting, but may not necessarily be identical to what the IR will look like when dumping the full module.
mlirOpResultGetOwner⚠
Returns an operation that produced this value as its result. Asserts if the value is not an op result.
mlirOpResultGetResultNumber⚠
Returns the position of the value in the list of results of the operation that produced it.
mlirOpaqueAttrGet⚠
Creates an opaque attribute in the given context associated with the dialect identified by its namespace. The attribute contains opaque byte data of the specified length (data need not be null-terminated).
mlirOpaqueAttrGetData⚠
Returns the raw data as a string reference. The data remains live as long as the context in which the attribute lives.
mlirOpaqueAttrGetDialectNamespace⚠
Returns the namespace of the dialect with which the given opaque attribute is associated. The namespace string is owned by the context.
mlirOpaqueAttrGetTypeID⚠
Returns the typeID of an Opaque attribute.
mlirOpaqueTypeGet⚠
Creates an opaque type in the given context associated with the dialect identified by its namespace. The type contains opaque byte data of the specified length (data need not be null-terminated).
mlirOpaqueTypeGetData⚠
Returns the raw data as a string reference. The data remains live as long as the context in which the type lives.
mlirOpaqueTypeGetDialectNamespace⚠
Returns the namespace of the dialect with which the given opaque type is associated. The namespace string is owned by the context.
mlirOpaqueTypeGetTypeID⚠
Returns the typeID of an Opaque type.
mlirOperationClone⚠
Creates a deep copy of an operation. The operation is not inserted and ownership is transferred to the caller.
mlirOperationCreate⚠
Creates an operation and transfers ownership to the caller. Note that caller owned child objects are transferred in this call and must not be further used. Particularly, this applies to any regions added to the state (the implementation may invalidate any such pointers).
mlirOperationCreateParse⚠
Parses an operation, giving ownership to the caller. If parsing fails a null operation will be returned, and an error diagnostic emitted.
mlirOperationDestroy⚠
Takes an operation owned by the caller and destroys it.
mlirOperationDump⚠
Prints an operation to stderr.
mlirOperationEqual⚠
Checks whether two operation handles point to the same operation. This does not perform deep comparison.
mlirOperationGetAttribute⚠
Return pos-th attribute of the operation. Deprecated, please use mlirOperationGetInherentAttribute or mlirOperationGetDiscardableAttribute.
mlirOperationGetAttributeByName⚠
Returns an attribute attached to the operation given its name. Deprecated, please use mlirOperationGetInherentAttributeByName or mlirOperationGetDiscardableAttributeByName.
mlirOperationGetBlock⚠
Gets the block that owns this operation, returning null if the operation is not owned.
mlirOperationGetContext⚠
Gets the context this operation is associated with
mlirOperationGetDiscardableAttribute⚠
Return pos-th discardable attribute of the operation.
mlirOperationGetDiscardableAttributeByName⚠
Returns a discardable attribute attached to the operation given its name.
mlirOperationGetFirstRegion⚠
Returns first region attached to the operation.
mlirOperationGetInherentAttributeByName⚠
Returns an inherent attribute attached to the operation given its name.
mlirOperationGetLocation⚠
Gets the location of the operation.
mlirOperationGetName⚠
Gets the name of the operation as an identifier.
mlirOperationGetNextInBlock⚠
Returns an operation immediately following the given operation it its enclosing block.
mlirOperationGetNumAttributes⚠
Returns the number of attributes attached to the operation. Deprecated, please use mlirOperationGetNumInherentAttributes or mlirOperationGetNumDiscardableAttributes.
mlirOperationGetNumDiscardableAttributes⚠
Returns the number of discardable attributes attached to the operation.
mlirOperationGetNumOperands⚠
Returns the number of operands of the operation.
mlirOperationGetNumRegions⚠
Returns the number of regions attached to the given operation.
mlirOperationGetNumResults⚠
Returns the number of results of the operation.
mlirOperationGetNumSuccessors⚠
Returns the number of successor blocks of the operation.
mlirOperationGetOperand⚠
Returns pos-th operand of the operation.
mlirOperationGetParentOperation⚠
Gets the operation that owns this operation, returning null if the operation is not owned.
mlirOperationGetRegion⚠
Returns pos-th region attached to the operation.
mlirOperationGetResult⚠
Returns pos-th result of the operation.
mlirOperationGetSuccessor⚠
Returns pos-th successor of the operation.
mlirOperationGetTypeID⚠
Gets the type id of the operation. Returns null if the operation does not have a registered operation description.
mlirOperationHasInherentAttributeByName⚠
Returns true if this operation defines an inherent attribute with this name. Note: the attribute can be optional, so mlirOperationGetInherentAttributeByName can still return a null attribute.
mlirOperationImplementsInterface⚠
Returns true if the given operation implements an interface identified by its TypeID.
mlirOperationImplementsInterfaceStatic⚠
Returns true if the operation identified by its canonical string name implements the interface identified by its TypeID in the given context. Note that interfaces may be attached to operations in some contexts and not others.
mlirOperationMoveAfter⚠
Moves the given operation immediately after the other operation in its parent block. The given operation may be owned by the caller or by its current block. The other operation must belong to a block. In any case, the ownership is transferred to the block of the other operation.
mlirOperationMoveBefore⚠
Moves the given operation immediately before the other operation in its parent block. The given operation may be owner by the caller or by its current block. The other operation must belong to a block. In any case, the ownership is transferred to the block of the other operation.
mlirOperationPrint⚠
Prints an operation by sending chunks of the string representation and forwarding userData to callback`. Note that the callback may be called several times with consecutive chunks of the string.
mlirOperationPrintWithFlags⚠
Same as mlirOperationPrint but accepts flags controlling the printing behavior.
mlirOperationPrintWithState⚠
Same as mlirOperationPrint but accepts AsmState controlling the printing behavior as well as caching computed names.
mlirOperationRemoveAttributeByName⚠
Removes an attribute by name. Returns false if the attribute was not found and true if removed. Deprecated, please use mlirOperationRemoveInherentAttributeByName or mlirOperationRemoveDiscardableAttributeByName.
mlirOperationRemoveDiscardableAttributeByName⚠
Removes a discardable attribute by name. Returns false if the attribute was not found and true if removed.
mlirOperationRemoveFromParent⚠
Removes the given operation from its parent block. The operation is not destroyed. The ownership of the operation is transferred to the caller.
mlirOperationSetAttributeByName⚠
Sets an attribute by name, replacing the existing if it exists or adding a new one otherwise. Deprecated, please use mlirOperationSetInherentAttributeByName or mlirOperationSetDiscardableAttributeByName.
mlirOperationSetDiscardableAttributeByName⚠
Sets a discardable attribute by name, replacing the existing if it exists or adding a new one otherwise. The new attr Attribute is not allowed to be null, use mlirOperationRemoveDiscardableAttributeByName to remove an Attribute instead.
mlirOperationSetInherentAttributeByName⚠
Sets an inherent attribute by name, replacing the existing if it exists. This has no effect if “name” does not match an inherent attribute.
mlirOperationSetOperand⚠
Sets the pos-th operand of the operation.
mlirOperationSetOperands⚠
Replaces the operands of the operation.
mlirOperationSetSuccessor⚠
Set pos-th successor of the operation.
mlirOperationStateAddAttributes⚠
mlirOperationStateAddOperands⚠
mlirOperationStateAddOwnedRegions⚠
mlirOperationStateAddResults⚠
Adds a list of components to the operation state.
mlirOperationStateAddSuccessors⚠
mlirOperationStateEnableResultTypeInference⚠
Enables result type inference for the operation under construction. If enabled, then the caller must not have called mlirOperationStateAddResults(). Note that if enabled, the mlirOperationCreate() call is failable: it will return a null operation on inference failure and will emit diagnostics.
mlirOperationStateGet⚠
Constructs an operation state from a name and a location.
mlirOperationVerify⚠
Verify the operation and return true if it passes, false if it fails.
mlirOperationWalk⚠
Walks operation op in walkOrder and calls callback on that operation. *userData is passed to the callback as well and can be used to tunnel some context or other data into the callback.
mlirOperationWriteBytecode⚠
Same as mlirOperationPrint but writing the bytecode format.
mlirOperationWriteBytecodeWithConfig⚠
Same as mlirOperationWriteBytecode but with writer config and returns failure only if desired bytecode could not be honored.
mlirPDLAttributeTypeGet⚠
mlirPDLOperationTypeGet⚠
mlirPDLPatternModuleDestroy⚠
mlirPDLPatternModuleFromModule⚠
mlirPDLRangeTypeGet⚠
mlirPDLRangeTypeGetElementType⚠
mlirPDLTypeTypeGet⚠
mlirPDLValueTypeGet⚠
mlirParsePassPipeline⚠
Parse a textual MLIR pass pipeline and assign it to the provided OpPassManager. If parsing fails an error message is reported using the provided callback.
mlirPassManagerAddOwnedPass⚠
Add a pass and transfer ownership to the provided top-level mlirPassManager. If the pass is not a generic operation pass or a ModulePass, a new OpPassManager is implicitly nested under the provided PassManager.
mlirPassManagerCreate⚠
Create a new top-level PassManager with the default anchor.
mlirPassManagerCreateOnOperation⚠
Create a new top-level PassManager anchored on anchorOp.
mlirPassManagerDestroy⚠
Destroy the provided PassManager.
mlirPassManagerEnableIRPrinting⚠
Enable mlir-print-ir-after-all.
mlirPassManagerEnableVerifier⚠
Enable / disable verify-each.
mlirPassManagerGetAsOpPassManager⚠
Cast a top-level PassManager to a generic OpPassManager.
mlirPassManagerGetNestedUnder⚠
Nest an OpPassManager under the top-level PassManager, the nested passmanager will only run on operations matching the provided name. The returned OpPassManager will be destroyed when the parent is destroyed. To further nest more OpPassManager under the newly returned one, see mlirOpPassManagerNest below.
mlirPassManagerRunOnOp⚠
Run the provided passManager on the given op.
mlirPrintPassPipeline⚠
Print a textual MLIR pass pipeline by sending chunks of the string representation and forwarding userData to callback`. Note that the callback may be called several times with consecutive chunks of the string.
mlirQuantizedTypeCastExpressedToStorageType⚠
Casts from a type based on the expressed type of the given quantized type to equivalent type based on storage type of the same quantized type.
mlirQuantizedTypeCastFromExpressedType⚠
Casts from a type based on the expressed type of the given type to a corresponding type based on the given type. Returns a null type if the cast is not valid.
mlirQuantizedTypeCastFromStorageType⚠
Casts from a type based on the storage type of the given type to a corresponding type based on the given type. Returns a null type if the cast is not valid.
mlirQuantizedTypeCastToExpressedType⚠
Casts from a type based on a quantized type to a corresponding typed based on the expressed type. Returns a null type if the cast is not valid.
mlirQuantizedTypeCastToStorageType⚠
Casts from a type based on a quantized type to a corresponding typed based on the storage type. Returns a null type if the cast is not valid.
mlirQuantizedTypeGetDefaultMaximumForInteger⚠
Returns the maximum possible value stored by a quantized type.
mlirQuantizedTypeGetDefaultMinimumForInteger⚠
Returns the minimum possible value stored by a quantized type.
mlirQuantizedTypeGetExpressedType⚠
Gets the original type approximated by the given quantized type.
mlirQuantizedTypeGetFlags⚠
Gets the flags associated with the given quantized type.
mlirQuantizedTypeGetQuantizedElementType⚠
Returns the element type of the given quantized type as another quantized type.
mlirQuantizedTypeGetSignedFlag⚠
Returns the bit flag used to indicate signedness of a quantized type.
mlirQuantizedTypeGetStorageType⚠
Returns the underlying type used to store the values.
mlirQuantizedTypeGetStorageTypeIntegralWidth⚠
Returns the integral bitwidth that the storage type of the given quantized type can represent exactly.
mlirQuantizedTypeGetStorageTypeMax⚠
Returns the maximum value that the storage type of the given quantized type can take.
mlirQuantizedTypeGetStorageTypeMin⚠
Returns the minimum value that the storage type of the given quantized type can take.
mlirQuantizedTypeIsCompatibleExpressedType⚠
Returns true if the candidate type is compatible with the given quantized type.
mlirQuantizedTypeIsSigned⚠
Returns true if the given type is signed, false otherwise.
mlirRankedTensorTypeGet⚠
Creates a tensor type of a fixed rank with the given shape, element type, and optional encoding in the same context as the element type. The type is owned by the context. Tensor types without any specific encoding field should assign mlirAttributeGetNull() to this parameter.
mlirRankedTensorTypeGetChecked⚠
Same as “mlirRankedTensorTypeGet” but returns a nullptr wrapping MlirType on illegal arguments, emitting appropriate diagnostics.
mlirRankedTensorTypeGetEncoding⚠
Gets the ‘encoding’ attribute from the ranked tensor type, returning a null attribute if none.
mlirRankedTensorTypeGetTypeID⚠
Returns the typeID of an RankedTensor type.
mlirRegionAppendOwnedBlock⚠
Takes a block owned by the caller and appends it to the given region.
mlirRegionCreate⚠
Creates a new empty region and transfers ownership to the caller.
mlirRegionDestroy⚠
Takes a region owned by the caller and destroys it.
mlirRegionEqual⚠
Checks whether two region handles point to the same region. This does not perform deep comparison.
mlirRegionGetFirstBlock⚠
Gets the first block in the region.
mlirRegionGetNextInOperation⚠
Returns the region immediately following the given region in its parent operation.
mlirRegionInsertOwnedBlock⚠
Takes a block owned by the caller and inserts it at pos to the given region. This is an expensive operation that linearly scans the region, prefer insertAfter/Before instead.
mlirRegionInsertOwnedBlockAfter⚠
Takes a block owned by the caller and inserts it after the (non-owned) reference block in the given region. The reference block must belong to the region. If the reference block is null, prepends the block to the region.
mlirRegionInsertOwnedBlockBefore⚠
Takes a block owned by the caller and inserts it before the (non-owned) reference block in the given region. The reference block must belong to the region. If the reference block is null, appends the block to the region.
mlirRegionTakeBody⚠
Moves the entire content of the source region to the target region.
mlirRegisterAllDialects⚠
Appends all upstream dialects and extensions to the dialect registry.
mlirRegisterAllLLVMTranslations⚠
Register all translations to LLVM IR for dialects that can support it.
mlirRegisterAllPasses⚠
Register all compiler passes of MLIR.
mlirRegisterAsyncAsyncFuncToAsyncRuntime⚠
mlirRegisterAsyncAsyncParallelFor⚠
mlirRegisterAsyncAsyncRuntimePolicyBasedRefCounting⚠
mlirRegisterAsyncAsyncRuntimeRefCounting⚠
mlirRegisterAsyncAsyncRuntimeRefCountingOpt⚠
mlirRegisterAsyncAsyncToAsyncRuntime⚠
mlirRegisterAsyncPasses⚠
mlirRegisterConversionArithToAMDGPUConversionPass⚠
mlirRegisterConversionArithToArmSMEConversionPass⚠
mlirRegisterConversionArithToLLVMConversionPass⚠
mlirRegisterConversionConvertAMDGPUToROCDL⚠
mlirRegisterConversionConvertAffineForToGPU⚠
mlirRegisterConversionConvertAffineToStandard⚠
mlirRegisterConversionConvertArithToEmitC⚠
mlirRegisterConversionConvertArithToSPIRV⚠
mlirRegisterConversionConvertArmNeon2dToIntr⚠
mlirRegisterConversionConvertArmSMEToLLVM⚠
mlirRegisterConversionConvertArmSMEToSCF⚠
mlirRegisterConversionConvertAsyncToLLVMPass⚠
mlirRegisterConversionConvertBufferizationToMemRef⚠
mlirRegisterConversionConvertComplexToLLVMPass⚠
mlirRegisterConversionConvertComplexToLibm⚠
mlirRegisterConversionConvertComplexToSPIRVPass⚠
mlirRegisterConversionConvertComplexToStandard⚠
mlirRegisterConversionConvertControlFlowToLLVMPass⚠
mlirRegisterConversionConvertControlFlowToSPIRV⚠
mlirRegisterConversionConvertFuncToEmitC⚠
mlirRegisterConversionConvertFuncToLLVMPass⚠
mlirRegisterConversionConvertFuncToSPIRV⚠
mlirRegisterConversionConvertGPUToSPIRV⚠
mlirRegisterConversionConvertGpuLaunchFuncToVulkanLaunchFunc⚠
mlirRegisterConversionConvertGpuOpsToLLVMSPVOps⚠
mlirRegisterConversionConvertGpuOpsToNVVMOps⚠
mlirRegisterConversionConvertGpuOpsToROCDLOps⚠
mlirRegisterConversionConvertIndexToLLVMPass⚠
mlirRegisterConversionConvertIndexToSPIRVPass⚠
mlirRegisterConversionConvertLinalgToStandard⚠
mlirRegisterConversionConvertMathToFuncs⚠
mlirRegisterConversionConvertMathToLLVMPass⚠
mlirRegisterConversionConvertMathToLibm⚠
mlirRegisterConversionConvertMathToROCDL⚠
mlirRegisterConversionConvertMathToSPIRV⚠
mlirRegisterConversionConvertMemRefToEmitC⚠
mlirRegisterConversionConvertMemRefToSPIRV⚠
mlirRegisterConversionConvertNVGPUToNVVMPass⚠
mlirRegisterConversionConvertNVVMToLLVMPass⚠
mlirRegisterConversionConvertOpenACCToSCF⚠
mlirRegisterConversionConvertOpenMPToLLVMPass⚠
mlirRegisterConversionConvertPDLToPDLInterp⚠
mlirRegisterConversionConvertParallelLoopToGpu⚠
mlirRegisterConversionConvertSCFToOpenMPPass⚠
mlirRegisterConversionConvertSPIRVToLLVMPass⚠
mlirRegisterConversionConvertShapeConstraints⚠
mlirRegisterConversionConvertShapeToStandard⚠
mlirRegisterConversionConvertTensorToLinalg⚠
mlirRegisterConversionConvertTensorToSPIRV⚠
mlirRegisterConversionConvertToLLVMPass⚠
mlirRegisterConversionConvertToSPIRVPass⚠
mlirRegisterConversionConvertVectorToArmSME⚠
mlirRegisterConversionConvertVectorToGPU⚠
mlirRegisterConversionConvertVectorToLLVMPass⚠
mlirRegisterConversionConvertVectorToSCF⚠
mlirRegisterConversionConvertVectorToSPIRV⚠
mlirRegisterConversionConvertVulkanLaunchFuncToVulkanCallsPass⚠
mlirRegisterConversionFinalizeMemRefToLLVMConversionPass⚠
mlirRegisterConversionGpuToLLVMConversionPass⚠
mlirRegisterConversionLiftControlFlowToSCFPass⚠
mlirRegisterConversionLowerHostCodeToLLVMPass⚠
mlirRegisterConversionMapMemRefStorageClass⚠
mlirRegisterConversionPasses⚠
mlirRegisterConversionReconcileUnrealizedCasts⚠
mlirRegisterConversionSCFToControlFlow⚠
mlirRegisterConversionSCFToEmitC⚠
mlirRegisterConversionSCFToSPIRV⚠
mlirRegisterConversionSetLLVMModuleDataLayoutPass⚠
mlirRegisterConversionTosaToArith⚠
mlirRegisterConversionTosaToLinalg⚠
mlirRegisterConversionTosaToLinalgNamed⚠
mlirRegisterConversionTosaToMLProgram⚠
mlirRegisterConversionTosaToSCF⚠
mlirRegisterConversionTosaToTensor⚠
mlirRegisterConversionUBToLLVMConversionPass⚠
mlirRegisterConversionUBToSPIRVConversionPass⚠
mlirRegisterGPUGpuAsyncRegionPass⚠
mlirRegisterGPUGpuDecomposeMemrefsPass⚠
mlirRegisterGPUGpuEliminateBarriers⚠
mlirRegisterGPUGpuKernelOutlining⚠
mlirRegisterGPUGpuLaunchSinkIndexComputations⚠
mlirRegisterGPUGpuMapParallelLoopsPass⚠
mlirRegisterGPUGpuModuleToBinaryPass⚠
mlirRegisterGPUGpuNVVMAttachTarget⚠
mlirRegisterGPUGpuROCDLAttachTarget⚠
mlirRegisterGPUGpuSPIRVAttachTarget⚠
mlirRegisterGPUPasses⚠
mlirRegisterLinalgConvertElementwiseToLinalgPass⚠
mlirRegisterLinalgConvertLinalgToAffineLoopsPass⚠
mlirRegisterLinalgConvertLinalgToLoopsPass⚠
mlirRegisterLinalgConvertLinalgToParallelLoopsPass⚠
mlirRegisterLinalgLinalgBlockPackMatmul⚠
mlirRegisterLinalgLinalgDetensorizePass⚠
mlirRegisterLinalgLinalgElementwiseOpFusionPass⚠
mlirRegisterLinalgLinalgFoldUnitExtentDimsPass⚠
mlirRegisterLinalgLinalgGeneralizeNamedOpsPass⚠
mlirRegisterLinalgLinalgInlineScalarOperandsPass⚠
mlirRegisterLinalgLinalgNamedOpConversionPass⚠
mlirRegisterLinalgLinalgSpecializeGenericOpsPass⚠
mlirRegisterLinalgPasses⚠
mlirRegisterSparseTensorLowerForeachToSCF⚠
mlirRegisterSparseTensorLowerSparseIterationToSCF⚠
mlirRegisterSparseTensorLowerSparseOpsToForeach⚠
mlirRegisterSparseTensorPasses⚠
mlirRegisterSparseTensorPreSparsificationRewrite⚠
mlirRegisterSparseTensorSparseAssembler⚠
mlirRegisterSparseTensorSparseBufferRewrite⚠
mlirRegisterSparseTensorSparseGPUCodegen⚠
mlirRegisterSparseTensorSparseReinterpretMap⚠
mlirRegisterSparseTensorSparseSpaceCollapse⚠
mlirRegisterSparseTensorSparseTensorCodegen⚠
mlirRegisterSparseTensorSparseTensorConversionPass⚠
mlirRegisterSparseTensorSparseVectorization⚠
mlirRegisterSparseTensorSparsificationAndBufferization⚠
mlirRegisterSparseTensorSparsificationPass⚠
mlirRegisterSparseTensorStageSparseOperations⚠
mlirRegisterSparseTensorStorageSpecifierToLLVM⚠
mlirRegisterTransformsCSE⚠
mlirRegisterTransformsCanonicalizer⚠
mlirRegisterTransformsCompositeFixedPointPass⚠
mlirRegisterTransformsControlFlowSink⚠
mlirRegisterTransformsGenerateRuntimeVerification⚠
mlirRegisterTransformsInliner⚠
mlirRegisterTransformsLocationSnapshot⚠
mlirRegisterTransformsLoopInvariantCodeMotion⚠
mlirRegisterTransformsLoopInvariantSubsetHoisting⚠
mlirRegisterTransformsMem2Reg⚠
mlirRegisterTransformsPasses⚠
mlirRegisterTransformsPrintIRPass⚠
mlirRegisterTransformsPrintOpStats⚠
mlirRegisterTransformsRemoveDeadValues⚠
mlirRegisterTransformsSCCP⚠
mlirRegisterTransformsSROA⚠
mlirRegisterTransformsStripDebugInfo⚠
mlirRegisterTransformsSymbolDCE⚠
mlirRegisterTransformsSymbolPrivatize⚠
mlirRegisterTransformsTopologicalSort⚠
mlirRegisterTransformsViewOpGraph⚠
mlirRewritePatternSetFromPDLPatternModule⚠
mlirRewriterBaseCancelOpModification⚠
This method cancels a pending in-place modification. This can only be called on operations that were provided to a call to startOpModification.
mlirRewriterBaseClearInsertionPoint⚠
Reset the insertion point to no location. Creating an operation without a set insertion point is an error, but this can still be useful when the current insertion point a builder refers to is being removed.
mlirRewriterBaseClone⚠
Creates a deep copy of the specified operation.
mlirRewriterBaseCloneRegionBefore⚠
Clone the blocks that belong to “region” before the given position in another region “parent”.
mlirRewriterBaseCloneWithoutRegions⚠
Creates a deep copy of this operation but keep the operation regions empty.
mlirRewriterBaseCreateBlockBefore⚠
Add new block with ‘argTypes’ arguments and set the insertion point to the end of it. The block is placed before ‘insertBefore’. locs contains the locations of the inserted arguments, and should match the size of argTypes.
mlirRewriterBaseEraseBlock⚠
Erases a block along with all operations inside it.
mlirRewriterBaseEraseOp⚠
Erases an operation that is known to have no uses.
mlirRewriterBaseFinalizeOpModification⚠
This method is used to signal the end of an in-place modification of the given operation. This can only be called on operations that were provided to a call to startOpModification.
mlirRewriterBaseGetBlock⚠
Returns the current block of the rewriter.
mlirRewriterBaseGetContext⚠
Get the MLIR context referenced by the rewriter.
mlirRewriterBaseGetInsertionBlock⚠
Return the block the current insertion point belongs to. Note that the insertion point is not necessarily the end of the block.
mlirRewriterBaseInlineBlockBefore⚠
Inline the operations of block ‘source’ before the operation ‘op’. The source block will be deleted and must have no uses. ‘argValues’ is used to replace the block arguments of ‘source’
mlirRewriterBaseInlineRegionBefore⚠
Move the blocks that belong to “region” before the given position in another region “parent”. The two regions must be different. The caller is responsible for creating or updating the operation transferring flow of control to the region and passing it the correct block arguments.
mlirRewriterBaseInsert⚠
Insert the given operation at the current insertion point and return it.
mlirRewriterBaseMergeBlocks⚠
Inline the operations of block ‘source’ into the end of block ‘dest’. The source block will be deleted and must have no uses. ‘argValues’ is used to replace the block arguments of ‘source’
mlirRewriterBaseMoveBlockBefore⚠
Unlink this block and insert it right before existingBlock.
mlirRewriterBaseMoveOpAfter⚠
Unlink this operation from its current block and insert it right after existingOp which may be in the same or another block in the same function.
mlirRewriterBaseMoveOpBefore⚠
Unlink this operation from its current block and insert it right before existingOp which may be in the same or another block in the same function.
mlirRewriterBaseReplaceAllOpUsesWithOperation⚠
Find uses of from and replace them with to. Also notify the listener about every in-place op modification (for every use that was replaced) and that the from operation is about to be replaced.
mlirRewriterBaseReplaceAllOpUsesWithValueRange⚠
Find uses of from and replace them with to. Also notify the listener about every in-place op modification (for every use that was replaced) and that the from operation is about to be replaced.
mlirRewriterBaseReplaceAllUsesExcept⚠
Find uses of from and replace them with to except if the user is exceptedUser. Also notify the listener about every in-place op modification (for every use that was replaced).
mlirRewriterBaseReplaceAllUsesWith⚠
Find uses of from and replace them with to. Also notify the listener about every in-place op modification (for every use that was replaced).
mlirRewriterBaseReplaceAllValueRangeUsesWith⚠
Find uses of from and replace them with to. Also notify the listener about every in-place op modification (for every use that was replaced).
mlirRewriterBaseReplaceOpUsesWithinBlock⚠
Find uses of from within block and replace them with to. Also notify the listener about every in-place op modification (for every use that was replaced). The optional allUsesReplaced flag is set to “true” if all uses were replaced.
mlirRewriterBaseReplaceOpWithOperation⚠
Replace the results of the given (original) operation with the specified new op (replacement). The result types of the two ops must match. The original op is erased.
mlirRewriterBaseReplaceOpWithValues⚠
Replace the results of the given (original) operation with the specified list of values (replacements). The result types of the given op and the replacements must match. The original op is erased.
mlirRewriterBaseSetInsertionPointAfter⚠
Sets the insertion point to the node after the specified operation, which will cause subsequent insertions to go right after it.
mlirRewriterBaseSetInsertionPointAfterValue⚠
Sets the insertion point to the node after the specified value. If value has a defining operation, sets the insertion point to the node after such defining operation. This will cause subsequent insertions to go right after it. Otherwise, value is a BlockArgument. Sets the insertion point to the start of its block.
mlirRewriterBaseSetInsertionPointBefore⚠
Sets the insertion point to the specified operation, which will cause subsequent insertions to go right before it.
mlirRewriterBaseSetInsertionPointToEnd⚠
Sets the insertion point to the end of the specified block.
mlirRewriterBaseSetInsertionPointToStart⚠
Sets the insertion point to the start of the specified block.
mlirRewriterBaseStartOpModification⚠
This method is used to notify the rewriter that an in-place operation modification is about to happen. A call to this function must be followed by a call to either finalizeOpModification or cancelOpModification. This is a minor efficiency win (it avoids creating a new operation and removing the old one) but also often allows simpler code in the client.
mlirSetGlobalDebugType⚠
Sets the current debug type, similarly to -debug-only=type in the command-line tools. Note that global debug should be enabled for any output to be produced.
mlirSetGlobalDebugTypes⚠
Sets multiple current debug types, similarly to `-debug-only=type1,type2“ in the command-line tools. Note that global debug should be enabled for any output to be produced.
mlirShapedTypeGetDimSize⚠
Returns the dim-th dimension of the given ranked shaped type.
mlirShapedTypeGetDynamicSize⚠
Returns the value indicating a dynamic size in a shaped type. Prefer mlirShapedTypeIsDynamicSize to direct comparisons with this value.
mlirShapedTypeGetDynamicStrideOrOffset⚠
Returns the value indicating a dynamic stride or offset in a shaped type. Prefer mlirShapedTypeGetDynamicStrideOrOffset to direct comparisons with this value.
mlirShapedTypeGetElementType⚠
Returns the element type of the shaped type.
mlirShapedTypeGetRank⚠
Returns the rank of the given ranked shaped type.
mlirShapedTypeHasRank⚠
Checks whether the given shaped type is ranked.
mlirShapedTypeHasStaticShape⚠
Checks whether the given shaped type has a static shape.
mlirShapedTypeIsDynamicDim⚠
Checks wither the dim-th dimension of the given shaped type is dynamic.
mlirShapedTypeIsDynamicSize⚠
Checks whether the given value is used as a placeholder for dynamic sizes in shaped types.
mlirShapedTypeIsDynamicStrideOrOffset⚠
Checks whether the given value is used as a placeholder for dynamic strides and offsets in shaped types.
mlirSparseElementsAttrGetIndices⚠
Returns the dense elements attribute containing 64-bit integer indices of non-null elements in the given sparse elements attribute.
mlirSparseElementsAttrGetTypeID⚠
Returns the typeID of a SparseElements attribute.
mlirSparseElementsAttrGetValues⚠
Returns the dense elements attribute containing the non-null elements in the given sparse elements attribute.
mlirSparseElementsAttribute⚠
Creates a sparse elements attribute of the given shape from a list of indices and a list of associated values. Both lists are expected to be dense elements attributes with the same number of elements. The list of indices is expected to contain 64-bit integers. The attribute is created in the same context as the type.
mlirSparseTensorEncodingAttrBuildLvlType⚠
mlirSparseTensorEncodingAttrGet⚠
Creates a sparse_tensor.encoding attribute with the given parameters.
mlirSparseTensorEncodingAttrGetCrdWidth⚠
Returns the coordinate bitwidth of the sparse_tensor.encoding attribute.
mlirSparseTensorEncodingAttrGetDimToLvl⚠
Returns the dimension-to-level mapping of the sparse_tensor.encoding attribute.
mlirSparseTensorEncodingAttrGetExplicitVal⚠
Returns the explicit value of the sparse_tensor.encoding attribute.
mlirSparseTensorEncodingAttrGetImplicitVal⚠
Returns the implicit value of the sparse_tensor.encoding attribute.
mlirSparseTensorEncodingAttrGetLvlFmt⚠
Returns a specified level-format of the sparse_tensor.encoding attribute.
mlirSparseTensorEncodingAttrGetLvlToDim⚠
Returns the level-to-dimension mapping of the sparse_tensor.encoding attribute.
mlirSparseTensorEncodingAttrGetLvlType⚠
Returns a specified level-type of the sparse_tensor.encoding attribute.
mlirSparseTensorEncodingAttrGetPosWidth⚠
Returns the position bitwidth of the sparse_tensor.encoding attribute.
mlirSparseTensorEncodingAttrGetStructuredM⚠
mlirSparseTensorEncodingAttrGetStructuredN⚠
mlirSparseTensorEncodingGetLvlRank⚠
Returns the level-rank of the sparse_tensor.encoding attribute.
mlirStridedLayoutAttrGet⚠
mlirStridedLayoutAttrGetNumStrides⚠
mlirStridedLayoutAttrGetOffset⚠
mlirStridedLayoutAttrGetStride⚠
mlirStridedLayoutAttrGetTypeID⚠
Returns the typeID of a StridedLayout attribute.
mlirStringAttrGet⚠
Creates a string attribute in the given context containing the given string.
mlirStringAttrGetTypeID⚠
Returns the typeID of a String attribute.
mlirStringAttrGetValue⚠
Returns the attribute values as a string reference. The data remains live as long as the context in which the attribute lives.
mlirStringAttrTypedGet⚠
Creates a string attribute in the given context containing the given string. Additionally, the attribute has the given type.
mlirStringRefCreateFromCString⚠
Constructs a string reference from a null-terminated C string. Prefer mlirStringRefCreate if the length of the string is known.
mlirStringRefEqual⚠
Returns true if two string references are equal, false otherwise.
mlirSymbolRefAttrGet⚠
Creates a symbol reference attribute in the given context referencing a symbol identified by the given string inside a list of nested references. Each of the references in the list must not be nested.
mlirSymbolRefAttrGetLeafReference⚠
Returns the string reference to the leaf referenced symbol. The data remains live as long as the context in which the attribute lives.
mlirSymbolRefAttrGetNestedReference⚠
Returns pos-th reference nested in the given symbol reference attribute.
mlirSymbolRefAttrGetNumNestedReferences⚠
Returns the number of references nested in the given symbol reference attribute.
mlirSymbolRefAttrGetRootReference⚠
Returns the string reference to the root referenced symbol. The data remains live as long as the context in which the attribute lives.
mlirSymbolRefAttrGetTypeID⚠
Returns the typeID of an SymbolRef attribute.
mlirSymbolTableCreate⚠
Creates a symbol table for the given operation. If the operation does not have the SymbolTable trait, returns a null symbol table.
mlirSymbolTableDestroy⚠
Destroys the symbol table created with mlirSymbolTableCreate. This does not affect the operations in the table.
mlirSymbolTableErase⚠
Removes the given operation from the symbol table and erases it.
mlirSymbolTableGetSymbolAttributeName⚠
Returns the name of the attribute used to store symbol names compatible with symbol tables.
mlirSymbolTableGetVisibilityAttributeName⚠
Returns the name of the attribute used to store symbol visibility.
mlirSymbolTableInsert⚠
Inserts the given operation into the given symbol table. The operation must have the symbol trait. If the symbol table already has a symbol with the same name, renames the symbol being inserted to ensure name uniqueness. Note that this does not move the operation itself into the block of the symbol table operation, this should be done separately. Returns the name of the symbol after insertion.
mlirSymbolTableLookup⚠
Looks up a symbol with the given name in the given symbol table and returns the operation that corresponds to the symbol. If the symbol cannot be found, returns a null operation.
mlirSymbolTableReplaceAllSymbolUses⚠
Attempt to replace all uses that are nested within the given operation of the given symbol ‘oldSymbol’ with the provided ‘newSymbol’. This does not traverse into nested symbol tables. Will fail atomically if there are any unknown operations that may be potential symbol tables.
mlirSymbolTableWalkSymbolTables⚠
Walks all symbol table operations nested within, and including, op. For each symbol table operation, the provided callback is invoked with the op and a boolean signifying if the symbols within that symbol table can be treated as if all uses within the IR are visible to the caller. allSymUsesVisible identifies whether all of the symbol uses of symbols within op are visible.
mlirTF32TypeGet⚠
Creates a TF32 type in the given context. The type is owned by the context.
mlirTransformAnyOpTypeGet⚠
mlirTransformAnyOpTypeGetTypeID⚠
mlirTransformAnyParamTypeGet⚠
mlirTransformAnyParamTypeGetTypeID⚠
mlirTransformAnyValueTypeGet⚠
mlirTransformAnyValueTypeGetTypeID⚠
mlirTransformApplyNamedSequence⚠
Applies the transformation script starting at the given transform root operation to the given payload operation. The module containing the transform root as well as the transform options should be provided. The transform operation must implement TransformOpInterface and the module must be a ModuleOp. Returns the status of the application.
mlirTransformOperationTypeGet⚠
mlirTransformOperationTypeGetOperationName⚠
mlirTransformOperationTypeGetTypeID⚠
mlirTransformOptionsCreate⚠
Creates a default-initialized transform options object.
mlirTransformOptionsDestroy⚠
Destroys a transform options object previously created by mlirTransformOptionsCreate.
mlirTransformOptionsEnableExpensiveChecks⚠
Enables or disables expensive checks in transform options.
mlirTransformOptionsEnforceSingleTopLevelTransformOp⚠
Enables or disables the enforcement of the top-level transform op being single in transform options.
mlirTransformOptionsGetEnforceSingleTopLevelTransformOp⚠
Returns true if the enforcement of the top-level transform op being single is enabled in transform options.
mlirTransformOptionsGetExpensiveChecksEnabled⚠
Returns true if expensive checks are enabled in transform options.
mlirTransformParamTypeGet⚠
mlirTransformParamTypeGetType⚠
mlirTransformParamTypeGetTypeID⚠
mlirTranslateModuleToLLVMIR⚠
Translate operation that satisfies LLVM dialect module requirements into an LLVM IR module living in the given context. This translates operations from any dilalect that has a registered implementation of LLVMTranslationDialectInterface.
mlirTupleTypeGet⚠
Creates a tuple type that consists of the given list of elemental types. The type is owned by the context.
mlirTupleTypeGetNumTypes⚠
Returns the number of types contained in a tuple.
mlirTupleTypeGetType⚠
Returns the pos-th type in the tuple type.
mlirTupleTypeGetTypeID⚠
Returns the typeID of an Tuple type.
mlirTypeAttrGet⚠
Creates a type attribute wrapping the given type in the same context as the type.
mlirTypeAttrGetTypeID⚠
Returns the typeID of a Type attribute.
mlirTypeAttrGetValue⚠
Returns the type stored in the given type attribute.
mlirTypeDump⚠
Prints the type to the standard error stream.
mlirTypeEqual⚠
Checks if two types are equal.
mlirTypeGetContext⚠
Gets the context that a type was created with.
mlirTypeGetDialect⚠
Gets the dialect a type belongs to.
mlirTypeGetTypeID⚠
Gets the type ID of the type.
mlirTypeIDAllocatorAllocateTypeID⚠
Allocates a type id that is valid for the lifetime of the allocator
mlirTypeIDAllocatorCreate⚠
Creates a type id allocator for dynamic type id creation
mlirTypeIDAllocatorDestroy⚠
Deallocates the allocator and all allocated type ids
mlirTypeIDCreate⚠
ptr must be 8 byte aligned and unique to a type valid for the duration of the returned type id’s usage
mlirTypeIDEqual⚠
Checks if two type ids are equal.
mlirTypeIDHashValue⚠
Returns the hash value of the type id.
mlirTypeIsAAnyQuantizedType⚠
Returns true if the given type is an AnyQuantizedType.
mlirTypeIsABF16⚠
Checks whether the given type is a bf16 type.
mlirTypeIsACalibratedQuantizedType⚠
Returns true if the given type is a CalibratedQuantizedType.
mlirTypeIsAComplex⚠
Checks whether the given type is a Complex type.
mlirTypeIsAF16⚠
Checks whether the given type is an f16 type.
mlirTypeIsAF32⚠
Checks whether the given type is an f32 type.
mlirTypeIsAF64⚠
Checks whether the given type is an f64 type.
mlirTypeIsAFloat⚠
Checks whether the given type is a floating-point type.
mlirTypeIsAFloat8E4M3⚠
Checks whether the given type is an f8E4M3 type.
mlirTypeIsAFloat8E4M3B11FNUZ⚠
Checks whether the given type is an f8E4M3B11FNUZ type.
mlirTypeIsAFloat8E4M3FN⚠
Checks whether the given type is an f8E4M3FN type.
mlirTypeIsAFloat8E4M3FNUZ⚠
Checks whether the given type is an f8E4M3FNUZ type.
mlirTypeIsAFloat8E5M2⚠
Checks whether the given type is an f8E5M2 type.
mlirTypeIsAFloat8E5M2FNUZ⚠
Checks whether the given type is an f8E5M2FNUZ type.
mlirTypeIsAFunction⚠
Checks whether the given type is a function type.
mlirTypeIsAGPUAsyncTokenType⚠
mlirTypeIsAIndex⚠
Checks whether the given type is an index type.
mlirTypeIsAInteger⚠
Checks whether the given type is an integer type.
mlirTypeIsALLVMPointerType⚠
Returns true if the type is an LLVM dialect pointer type.
mlirTypeIsALLVMStructType⚠
Returns true if the type is an LLVM dialect struct type.
mlirTypeIsAMemRef⚠
Checks whether the given type is a MemRef type.
mlirTypeIsANVGPUTensorMapDescriptorType⚠
mlirTypeIsANone⚠
Checks whether the given type is a None type.
mlirTypeIsAOpaque⚠
Checks whether the given type is an opaque type.
mlirTypeIsAPDLAttributeType⚠
mlirTypeIsAPDLOperationType⚠
mlirTypeIsAPDLRangeType⚠
mlirTypeIsAPDLType⚠
mlirTypeIsAPDLTypeType⚠
mlirTypeIsAPDLValueType⚠
mlirTypeIsAQuantizedType⚠
Returns true if the given type is a quantization dialect type.
mlirTypeIsARankedTensor⚠
Checks whether the given type is a ranked tensor type.
mlirTypeIsAShaped⚠
Checks whether the given type is a Shaped type.
mlirTypeIsATF32⚠
Checks whether the given type is an TF32 type.
mlirTypeIsATensor⚠
Checks whether the given type is a Tensor type.
mlirTypeIsATransformAnyOpType⚠
mlirTypeIsATransformAnyParamType⚠
mlirTypeIsATransformAnyValueType⚠
mlirTypeIsATransformOperationType⚠
mlirTypeIsATransformParamType⚠
mlirTypeIsATuple⚠
Checks whether the given type is a tuple type.
mlirTypeIsAUniformQuantizedPerAxisType⚠
Returns true if the given type is a UniformQuantizedPerAxisType.
mlirTypeIsAUniformQuantizedType⚠
Returns true if the given type is a UniformQuantizedType.
mlirTypeIsAUnrankedMemRef⚠
Checks whether the given type is an UnrankedMemRef type.
mlirTypeIsAUnrankedTensor⚠
Checks whether the given type is an unranked tensor type.
mlirTypeIsAVector⚠
Checks whether the given type is a Vector type.
mlirTypeParseGet⚠
Parses a type. The type is owned by the context.
mlirTypePrint⚠
Prints a location by sending chunks of the string representation and forwarding userData to callback`. Note that the callback may be called several times with consecutive chunks of the string.
mlirUniformQuantizedPerAxisTypeGet⚠
Creates an instance of UniformQuantizedPerAxisType with the given parameters in the same context as storageType and returns it. scales and zeroPoints point to nDims number of elements. The instance is owned by the context.
mlirUniformQuantizedPerAxisTypeGetNumDims⚠
Returns the number of axes in the given quantized per-axis type.
mlirUniformQuantizedPerAxisTypeGetQuantizedDimension⚠
Returns the index of the quantized dimension in the given quantized per-axis type.
mlirUniformQuantizedPerAxisTypeGetScale⚠
Returns pos-th scale of the given quantized per-axis type.
mlirUniformQuantizedPerAxisTypeGetZeroPoint⚠
Returns pos-th zero point of the given quantized per-axis type.
mlirUniformQuantizedPerAxisTypeIsFixedPoint⚠
Returns true if the given uniform quantized per-axis type is fixed-point.
mlirUniformQuantizedTypeGet⚠
Creates an instance of UniformQuantizedType with the given parameters in the same context as storageType and returns it. The instance is owned by the context.
mlirUniformQuantizedTypeGetScale⚠
Returns the scale of the given uniform quantized type.
mlirUniformQuantizedTypeGetZeroPoint⚠
Returns the zero point of the given uniform quantized type.
mlirUniformQuantizedTypeIsFixedPoint⚠
Returns true if the given uniform quantized type is fixed-point.
mlirUnitAttrGet⚠
Creates a unit attribute in the given context.
mlirUnitAttrGetTypeID⚠
Returns the typeID of a Unit attribute.
mlirUnmanagedDenseBoolResourceElementsAttrGet⚠
mlirUnmanagedDenseDoubleResourceElementsAttrGet⚠
mlirUnmanagedDenseFloatResourceElementsAttrGet⚠
mlirUnmanagedDenseInt8ResourceElementsAttrGet⚠
mlirUnmanagedDenseInt16ResourceElementsAttrGet⚠
mlirUnmanagedDenseInt32ResourceElementsAttrGet⚠
mlirUnmanagedDenseInt64ResourceElementsAttrGet⚠
mlirUnmanagedDenseResourceElementsAttrGet⚠
Unlike the typed accessors below, constructs the attribute with a raw data buffer and no type/alignment checking. Use a more strongly typed accessor if possible. If dataIsMutable is false, then an immutable AsmResourceBlob will be created and that passed data contents will be treated as const. If the deleter is non NULL, then it will be called when the data buffer can no longer be accessed (passing userData to it).
mlirUnmanagedDenseUInt8ResourceElementsAttrGet⚠
mlirUnmanagedDenseUInt16ResourceElementsAttrGet⚠
mlirUnmanagedDenseUInt32ResourceElementsAttrGet⚠
mlirUnmanagedDenseUInt64ResourceElementsAttrGet⚠
mlirUnrankedMemRefTypeGet⚠
Creates an Unranked MemRef type with the given element type and in the given memory space. The type is owned by the context of element type.
mlirUnrankedMemRefTypeGetChecked⚠
Same as “mlirUnrankedMemRefTypeGet” but returns a nullptr wrapping MlirType on illegal arguments, emitting appropriate diagnostics.
mlirUnrankedMemRefTypeGetTypeID⚠
Returns the typeID of an UnrankedMemRef type.
mlirUnrankedMemrefGetMemorySpace⚠
Returns the memory spcae of the given Unranked MemRef type.
mlirUnrankedTensorTypeGet⚠
Creates an unranked tensor type with the given element type in the same context as the element type. The type is owned by the context.
mlirUnrankedTensorTypeGetChecked⚠
Same as “mlirUnrankedTensorTypeGet” but returns a nullptr wrapping MlirType on illegal arguments, emitting appropriate diagnostics.
mlirUnrankedTensorTypeGetTypeID⚠
Returns the typeID of an UnrankedTensor type.
mlirValueDump⚠
Prints the value to the standard error stream.
mlirValueEqual⚠
Returns 1 if two values are equal, 0 otherwise.
mlirValueGetFirstUse⚠
Returns an op operand representing the first use of the value, or a null op operand if there are no uses.
mlirValueGetType⚠
Returns the type of the value.
mlirValueIsABlockArgument⚠
Returns 1 if the value is a block argument, 0 otherwise.
mlirValueIsAOpResult⚠
Returns 1 if the value is an operation result, 0 otherwise.
mlirValuePrint⚠
Prints a value by sending chunks of the string representation and forwarding userData to callback`. Note that the callback may be called several times with consecutive chunks of the string.
mlirValuePrintAsOperand⚠
Prints a value as an operand (i.e., the ValueID).
mlirValueReplaceAllUsesOfWith⚠
Replace all uses of ‘of’ value with the ‘with’ value, updating anything in the IR that uses ‘of’ to use the other value instead. When this returns there are zero uses of ‘of’.
mlirValueSetType⚠
Set the type of the value.
mlirVectorTypeGet⚠
Creates a vector type of the shape identified by its rank and dimensions, with the given element type in the same context as the element type. The type is owned by the context.
mlirVectorTypeGetChecked⚠
Same as “mlirVectorTypeGet” but returns a nullptr wrapping MlirType on illegal arguments, emitting appropriate diagnostics.
mlirVectorTypeGetScalable⚠
Creates a scalable vector type with the shape identified by its rank and dimensions. A subset of dimensions may be marked as scalable via the corresponding flag list, which is expected to have as many entries as the rank of the vector. The vector is created in the same context as the element type.
mlirVectorTypeGetScalableChecked⚠
Same as “mlirVectorTypeGetScalable” but returns a nullptr wrapping MlirType on illegal arguments, emitting appropriate diagnostics.
mlirVectorTypeGetTypeID⚠
Returns the typeID of an Vector type.
mlirVectorTypeIsDimScalable⚠
Checks whether the “dim”-th dimension of the given vector is scalable.
mlirVectorTypeIsScalable⚠
Checks whether the given vector type is scalable, i.e., has at least one scalable dimension.
strtoimax⚠
strtoumax⚠
wcstoimax⚠
wcstoumax⚠

Type Aliases§

LLVMAttributeRef
Used to represent an attributes.
LLVMBasicBlockRef
Represents a basic block of instructions in LLVM IR.
LLVMBinaryRef
@see llvm::object::Binary
LLVMBool
@defgroup LLVMCSupportTypes Types and Enumerations
LLVMBuilderRef
Represents an LLVM basic block builder.
LLVMComdatRef
@see llvm::Comdat
LLVMContextRef
The top-level container for all LLVM global data. See the LLVMContext class.
LLVMDIBuilderRef
Represents an LLVM debug info builder.
LLVMDbgRecordRef
@see llvm::DbgRecord
LLVMDiagnosticInfoRef
@see llvm::DiagnosticInfo
LLVMJITEventListenerRef
@see llvm::JITEventListener
LLVMMemoryBufferRef
Used to pass regions of memory through LLVM interfaces.
LLVMMetadataRef
Represents an LLVM Metadata.
LLVMModuleFlagEntry
@see llvm::Module::ModuleFlagEntry
LLVMModuleProviderRef
Interface used to provide a module to JIT or interpreter. This is now just a synonym for llvm::Module, but we have to keep using the different type to keep binary compatibility.
LLVMModuleRef
The top-level container for all other LLVM Intermediate Representation (IR) objects.
LLVMNamedMDNodeRef
Represents an LLVM Named Metadata Node.
LLVMOperandBundleRef
@see llvm::OperandBundleDef
LLVMPassManagerRef
@see llvm::PassManagerBase
LLVMTypeRef
Each value in the LLVM IR has a type, an LLVMTypeRef.
LLVMUseRef
Used to get the users and usees of a Value.
LLVMValueMetadataEntry
Represents an entry in a Global Object’s metadata attachments.
LLVMValueRef
Represents an individual value in LLVM IR.
MlirDiagnosticHandler
Diagnostic handler type. Accepts a reference to a diagnostic, which is only guaranteed to be live during the call. The handler is passed the userData that was provided when the handler was attached to a context. If the handler processed the diagnostic completely, it is expected to return success. Otherwise, it is expected to return failure to indicate that other handlers should attempt to process the diagnostic.
MlirDiagnosticHandlerID
Opaque identifier of a diagnostic handler, useful to detach a handler.
MlirDiagnosticSeverity
Severity of a diagnostic.
MlirLLVMCConv
MlirLLVMComdat
MlirLLVMDIEmissionKind
MlirLLVMDINameTableKind
MlirLLVMLinkage
MlirLLVMTypeEncoding
MlirOperationWalkCallback
Operation walker type. The handler is passed an (opaque) reference to an operation and a pointer to a userData.
MlirShapedTypeComponentsCallback
These callbacks are used to return multiple shaped type components from functions while transferring ownership to the caller. The first argument is the has rank boolean followed by the the rank and a pointer to the shape (if applicable). The next argument is the element type, then the attribute. The last argument is an opaque pointer forwarded to the callback by the caller. This callback will be called potentially multiple times for each shaped type components.
MlirSparseTensorLevelFormat
MlirSparseTensorLevelPropertyNondefault
MlirSparseTensorLevelType
Dimension level types (and properties) that define sparse tensors. See the documentation in SparseTensorAttrDefs.td for their meaning.
MlirStringCallback
A callback for returning string references.
MlirTypesCallback
These callbacks are used to return multiple types from functions while transferring ownership to the caller. The first argument is the number of consecutive elements pointed to by the second argument. The third argument is an opaque pointer forwarded to the callback by the caller.
MlirWalkOrder
Traversal order for operation walk.
MlirWalkResult
Operation walk result.
__builtin_va_list
__darwin_blkcnt_t
__darwin_blksize_t
__darwin_clock_t
__darwin_ct_rune_t
__darwin_dev_t
__darwin_fsblkcnt_t
__darwin_fsfilcnt_t
__darwin_gid_t
__darwin_id_t
__darwin_ino64_t
__darwin_ino_t
__darwin_intptr_t
__darwin_mach_port_name_t
__darwin_mach_port_t
__darwin_mbstate_t
__darwin_mode_t
__darwin_natural_t
__darwin_nl_item
__darwin_off_t
__darwin_pid_t
__darwin_pthread_attr_t
__darwin_pthread_cond_t
__darwin_pthread_condattr_t
__darwin_pthread_key_t
__darwin_pthread_mutex_t
__darwin_pthread_mutexattr_t
__darwin_pthread_once_t
__darwin_pthread_rwlock_t
__darwin_pthread_rwlockattr_t
__darwin_pthread_t
__darwin_ptrdiff_t
__darwin_rune_t
__darwin_sigset_t
__darwin_size_t
__darwin_socklen_t
__darwin_ssize_t
__darwin_suseconds_t
__darwin_time_t
__darwin_uid_t
__darwin_useconds_t
__darwin_uuid_string_t
__darwin_uuid_t
__darwin_va_list
__darwin_wchar_t
__darwin_wctrans_t
__darwin_wctype_t
__darwin_wint_t
__int8_t
__int16_t
__int32_t
__int64_t
__uint8_t
__uint16_t
__uint32_t
__uint64_t
blkcnt_t
blksize_t
caddr_t
clock_t
daddr_t
dev_t
errno_t
fd_mask
fixpt_t
fsblkcnt_t
fsfilcnt_t
gid_t
id_t
in_addr_t
in_port_t
ino64_t
ino_t
int_fast8_t
int_fast16_t
int_fast32_t
int_fast64_t
int_least8_t
int_least16_t
int_least32_t
int_least64_t
intmax_t
key_t
max_align_t
mode_t
nlink_t
off_t
pid_t
pthread_attr_t
pthread_cond_t
pthread_condattr_t
pthread_key_t
pthread_mutex_t
pthread_mutexattr_t
pthread_once_t
pthread_rwlock_t
pthread_rwlockattr_t
pthread_t
qaddr_t
quad_t
register_t
rsize_t
segsz_t
suseconds_t
swblk_t
syscall_arg_t
time_t
u_char
u_int
u_int8_t
u_int16_t
u_int32_t
u_int64_t
u_long
u_quad_t
u_short
uid_t
uint
uint_fast8_t
uint_fast16_t
uint_fast32_t
uint_fast64_t
uint_least8_t
uint_least16_t
uint_least32_t
uint_least64_t
uintmax_t
useconds_t
user_addr_t
user_long_t
user_off_t
user_size_t
user_ssize_t
user_time_t
user_ulong_t
ushort
wchar_t

Unions§

__mbstate_t