Skip to main content

Module ops

Module ops 

Source
Expand description

Ops defined in the LLVM dialect

Structs§

AShrOp
Equivalent to LLVM’s AShr opcode.
AddOp
Equivalent to LLVM’s Add opcode.
AddressOfOp
Same as MLIR’s LLVM dialect AddressOfOp. Creates an SSA value containing a pointer to a global value (function, variable etc).
AllocaOp
Equivalent to LLVM’s Alloca opcode.
AndOp
Equivalent to LLVM’s And opcode.
BitcastOp
Equivalent to LLVM’s Bitcast opcode.
BrOp
Equivalent to LLVM’s Unconditional Branch.
CallIntrinsicOp
All LLVM intrinsic calls are represented by this Op. Same as MLIR’s llvm.call_intrinsic.
CallOp
Equivalent to LLVM’s Store opcode.
CondBrOp
Equivalent to LLVM’s Conditional Branch.
ConstantOp
Numeric (integer or floating point) constant. See MLIR’s llvm.mlir.constant.
ExtractElementOp
ExtractElementOp Equivalent to LLVM’s ExtractElement opcode. /// ### Operands
ExtractValueOp
Equivalent to LLVM’s ExtractValue opcode.
FAddOp
Equivalent to LLVM’s fadd instruction.
FCmpOp
Equivalent to LLVM’same fcmp instruction.
FDivOp
Equivalent to LLVM’s fdiv instruction.
FMulOp
Equivalent to LLVM’s fmul instruction.
FNegOp
Floating-point negation Equivalent to LLVM’s fneg instruction.
FPExtOp
Equivalent to LLVM’s FPExt opcode.
FPToSIOp
Equivalent to LLVM’s FPToSI opcode.
FPToUIOp
Equivalent to LLVM’s FPToUI opcode.
FPTruncOp
Equivalent to LLVM’s FPTrunc opcode.
FRemOp
Equivalent to LLVM’s frem instruction.
FSubOp
Equivalent to LLVM’s fsub instruction.
FreezeOp
Freeze value of a type. See MLIR’s llvm.mlir.freeze.
FuncOp
Equivalent to LLVM’s func operation. See llvm.func.
FuncOpTypeErr
GetElementPtrOp
Equivalent to LLVM’s GetElementPtr.
GlobalOp
Same as MLIR’s LLVM dialect GlobalOp It creates a global variable of the specified LLVM IR dialect type. An initializer can be specified either as an attribute or in the operation’s initializer region, ending with a return.
ICmpOp
Equivalent to LLVM’s ICmp opcode.
InsertElementOp
Equivalent to LLVM’s InsertElement opcode.
InsertValueOp
Equivalent to LLVM’s InsertValue opcode.
IntToPtrOp
Equivalent to LLVM’s IntToPtr opcode.
LShrOp
Equivalent to LLVM’s LShr opcode.
LoadOp
Equivalent to LLVM’s Load opcode.
MulOp
Equivalent to LLVM’s Mul opcode.
OrOp
Equivalent to LLVM’s Or opcode.
PoisonOp
Poison value of a type. See MLIR’s llvm.mlir.poison.
PtrToIntOp
Equivalent to LLVM’s PtrToInt opcode.
ReturnOp
Equivalent to LLVM’s return opcode.
SDivOp
Equivalent to LLVM’s SDiv opcode.
SExtOp
Equivalent to LLVM’s sext opcode.
SIToFPOp
Equivalent to LLVM’s SIToFP opcode.
SRemOp
Equivalent to LLVM’s SRem opcode.
SelectOp
Equivalent to LLVM’s Select opcode.
ShlOp
Equivalent to LLVM’s Shl opcode.
ShuffleVectorOp
ShuffleVectorOp Equivalent to LLVM’s ShuffleVector opcode.
StoreOp
Equivalent to LLVM’s Store opcode.
SubOp
Equivalent to LLVM’s Sub opcode.
SwitchCase
One case of a switch statement.
SwitchOp
Equivalent to LLVM’s Switch opcode.
TruncOp
Equivalent to LLVM’s trunc opcode.
UDivOp
Equivalent to LLVM’s UDiv opcode.
UIToFPOp
Equivalent to LLVM’s UIToFP opcode.
URemOp
Equivalent to LLVM’s URem opcode.
UndefOp
Undefined value of a type. See MLIR’s llvm.mlir.undef.
UnreachableOp
Equivalent to LLVM’s unreachable opcode. No operands or results.
UnrelatedAllocInfo
VAArgOp
Equivalent to LLVM’s va_arg operation.
XorOp
Equivalent to LLVM’s Xor opcode.
ZExtOp
Equivalent to LLVM’s zext opcode.
ZeroOp
Same as MLIR’s LLVM dialect ZeroOp It creates a zero-initialized value of the specified LLVM IR dialect type. Results:

Enums§

AllocaOpVerifyErr
CallIntrinsicVerifyErr
ConstantOpVerifyErr
FCmpOpVerifyErr
FNegOpVerifyErr
FloatCastVerifyErr
GepIndex
A way to express whether a GEP index is a constant or an SSA value
GetElementPtrOpErr
GlobalOpVerifyErr
ICmpOpVerifyErr
InsertExtractElementOpVerifyErr
InsertExtractValueErr
IntToPtrOpErr
LoadOpVerifyErr
PtrToIntOpErr
SelectOpVerifyErr
ShuffleVectorOpVerifyErr
StoreOpVerifyErr
SwitchOpVerifyErr
SymbolUserOpVerifyErr
VAArgOpVerifyErr

Statics§

SHUFFLE_VECTOR_UNDEF_MASK_ELEM
The undef mask element used in ShuffleVectorOp masks.