Enum llvm_ir::instruction::Instruction [−][src]
pub enum Instruction {
Show variants
Add(Add),
Sub(Sub),
Mul(Mul),
UDiv(UDiv),
SDiv(SDiv),
URem(URem),
SRem(SRem),
And(And),
Or(Or),
Xor(Xor),
Shl(Shl),
LShr(LShr),
AShr(AShr),
FAdd(FAdd),
FSub(FSub),
FMul(FMul),
FDiv(FDiv),
FRem(FRem),
FNeg(FNeg),
ExtractElement(ExtractElement),
InsertElement(InsertElement),
ShuffleVector(ShuffleVector),
ExtractValue(ExtractValue),
InsertValue(InsertValue),
Alloca(Alloca),
Load(Load),
Store(Store),
Fence(Fence),
CmpXchg(CmpXchg),
AtomicRMW(AtomicRMW),
GetElementPtr(GetElementPtr),
Trunc(Trunc),
ZExt(ZExt),
SExt(SExt),
FPTrunc(FPTrunc),
FPExt(FPExt),
FPToUI(FPToUI),
FPToSI(FPToSI),
UIToFP(UIToFP),
SIToFP(SIToFP),
PtrToInt(PtrToInt),
IntToPtr(IntToPtr),
BitCast(BitCast),
AddrSpaceCast(AddrSpaceCast),
ICmp(ICmp),
FCmp(FCmp),
Phi(Phi),
Select(Select),
Freeze(Freeze),
Call(Call),
VAArg(VAArg),
LandingPad(LandingPad),
CatchPad(CatchPad),
CleanupPad(CleanupPad),
}Expand description
Non-terminator instructions.
Variants
Add(Add)Sub(Sub)Mul(Mul)UDiv(UDiv)SDiv(SDiv)URem(URem)SRem(SRem)And(And)Or(Or)Xor(Xor)Shl(Shl)LShr(LShr)AShr(AShr)FAdd(FAdd)FSub(FSub)FMul(FMul)FDiv(FDiv)FRem(FRem)FNeg(FNeg)ExtractElement(ExtractElement)InsertElement(InsertElement)ShuffleVector(ShuffleVector)ExtractValue(ExtractValue)InsertValue(InsertValue)Alloca(Alloca)Load(Load)Store(Store)Fence(Fence)CmpXchg(CmpXchg)AtomicRMW(AtomicRMW)GetElementPtr(GetElementPtr)Trunc(Trunc)ZExt(ZExt)SExt(SExt)FPTrunc(FPTrunc)FPExt(FPExt)FPToUI(FPToUI)FPToSI(FPToSI)UIToFP(UIToFP)SIToFP(SIToFP)PtrToInt(PtrToInt)IntToPtr(IntToPtr)BitCast(BitCast)AddrSpaceCast(AddrSpaceCast)ICmp(ICmp)FCmp(FCmp)Phi(Phi)Select(Select)Freeze(Freeze)Call(Call)VAArg(VAArg)LandingPad(LandingPad)CatchPad(CatchPad)CleanupPad(CleanupPad)Implementations
Determine if the Instruction is one of the ones in
groups::BinaryOp, without actually using
try_into() (which would consume it)
Determine if the Instruction is one of the ones in
groups::UnaryOp, without actually using
try_into() (which would consume it)
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Returns the DebugLoc associated with the given Instruction,
Terminator, GlobalVariable, or Function; or None if it doesn’t
have a DebugLoc. Read more
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
The Type of an Instruction (or any subtype of Instruction) is its result type.
Auto Trait Implementations
impl RefUnwindSafe for Instructionimpl Send for Instructionimpl Sync for Instructionimpl Unpin for Instructionimpl UnwindSafe for InstructionBlanket Implementations
Mutably borrows from an owned value. Read more