Skip to main content

LLVMOpcode

Enum LLVMOpcode 

Source
#[repr(C)]
pub enum LLVMOpcode {
Show 67 variants LLVMRet = 1, LLVMBr = 2, LLVMSwitch = 3, LLVMIndirectBr = 4, LLVMInvoke = 5, LLVMUnreachable = 7, LLVMCallBr = 67, LLVMFNeg = 66, LLVMAdd = 8, LLVMFAdd = 9, LLVMSub = 10, LLVMFSub = 11, LLVMMul = 12, LLVMFMul = 13, LLVMUDiv = 14, LLVMSDiv = 15, LLVMFDiv = 16, LLVMURem = 17, LLVMSRem = 18, LLVMFRem = 19, LLVMShl = 20, LLVMLShr = 21, LLVMAShr = 22, LLVMAnd = 23, LLVMOr = 24, LLVMXor = 25, LLVMAlloca = 26, LLVMLoad = 27, LLVMStore = 28, LLVMGetElementPtr = 29, LLVMTrunc = 30, LLVMZExt = 31, LLVMSExt = 32, LLVMFPToUI = 33, LLVMFPToSI = 34, LLVMUIToFP = 35, LLVMSIToFP = 36, LLVMFPTrunc = 37, LLVMFPExt = 38, LLVMPtrToInt = 39, LLVMIntToPtr = 40, LLVMBitCast = 41, LLVMAddrSpaceCast = 60, LLVMICmp = 42, LLVMFCmp = 43, LLVMPHI = 44, LLVMCall = 45, LLVMSelect = 46, LLVMUserOp1 = 47, LLVMUserOp2 = 48, LLVMVAArg = 49, LLVMExtractElement = 50, LLVMInsertElement = 51, LLVMShuffleVector = 52, LLVMExtractValue = 53, LLVMInsertValue = 54, LLVMFreeze = 68, LLVMFence = 55, LLVMAtomicCmpXchg = 56, LLVMAtomicRMW = 57, LLVMResume = 58, LLVMLandingPad = 59, LLVMCleanupRet = 61, LLVMCatchRet = 62, LLVMCatchPad = 63, LLVMCleanupPad = 64, LLVMCatchSwitch = 65,
}

Variants§

§

LLVMRet = 1

§

LLVMBr = 2

§

LLVMSwitch = 3

§

LLVMIndirectBr = 4

§

LLVMInvoke = 5

§

LLVMUnreachable = 7

§

LLVMCallBr = 67

§

LLVMFNeg = 66

§

LLVMAdd = 8

§

LLVMFAdd = 9

§

LLVMSub = 10

§

LLVMFSub = 11

§

LLVMMul = 12

§

LLVMFMul = 13

§

LLVMUDiv = 14

§

LLVMSDiv = 15

§

LLVMFDiv = 16

§

LLVMURem = 17

§

LLVMSRem = 18

§

LLVMFRem = 19

§

LLVMShl = 20

§

LLVMLShr = 21

§

LLVMAShr = 22

§

LLVMAnd = 23

§

LLVMOr = 24

§

LLVMXor = 25

§

LLVMAlloca = 26

§

LLVMLoad = 27

§

LLVMStore = 28

§

LLVMGetElementPtr = 29

§

LLVMTrunc = 30

§

LLVMZExt = 31

§

LLVMSExt = 32

§

LLVMFPToUI = 33

§

LLVMFPToSI = 34

§

LLVMUIToFP = 35

§

LLVMSIToFP = 36

§

LLVMFPTrunc = 37

§

LLVMFPExt = 38

§

LLVMPtrToInt = 39

§

LLVMIntToPtr = 40

§

LLVMBitCast = 41

§

LLVMAddrSpaceCast = 60

§

LLVMICmp = 42

§

LLVMFCmp = 43

§

LLVMPHI = 44

§

LLVMCall = 45

§

LLVMSelect = 46

§

LLVMUserOp1 = 47

§

LLVMUserOp2 = 48

§

LLVMVAArg = 49

§

LLVMExtractElement = 50

§

LLVMInsertElement = 51

§

LLVMShuffleVector = 52

§

LLVMExtractValue = 53

§

LLVMInsertValue = 54

§

LLVMFreeze = 68

§

LLVMFence = 55

§

LLVMAtomicCmpXchg = 56

§

LLVMAtomicRMW = 57

§

LLVMResume = 58

§

LLVMLandingPad = 59

§

LLVMCleanupRet = 61

§

LLVMCatchRet = 62

§

LLVMCatchPad = 63

§

LLVMCleanupPad = 64

§

LLVMCatchSwitch = 65

Trait Implementations§

Source§

impl Clone for LLVMOpcode

Source§

fn clone(&self) -> LLVMOpcode

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for LLVMOpcode

Source§

impl Debug for LLVMOpcode

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for LLVMOpcode

Source§

fn eq(&self, other: &LLVMOpcode) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for LLVMOpcode

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.