Trait llvm_ir::types::Typed

source ·
pub trait Typed {
    // Required method
    fn get_type(&self, types: &Types) -> TypeRef;
}
Expand description

The Typed trait is used for anything that has a Type.

Required Methods§

source

fn get_type(&self, types: &Types) -> TypeRef

Implementations on Foreign Types§

source§

impl<A, B> Typed for Either<A, B>
where A: Typed, B: Typed,

source§

fn get_type(&self, types: &Types) -> TypeRef

Implementors§

source§

impl Typed for Constant

source§

impl Typed for Float

source§

impl Typed for Instruction

The Type of an Instruction (or any subtype of Instruction) is its result type.

source§

impl Typed for BinaryOp

source§

impl Typed for UnaryOp

source§

impl Typed for Operand

source§

impl Typed for Terminator

The Type of a Terminator is its result type. For most terminators, this is VoidType. For instance, a Ret instruction has void type even if the function returns a non-void value; we do not store the result of a Ret instruction using something like %3 = ret i32 %2. See LLVM 14 docs on Terminator Instructions

source§

impl Typed for FPType

source§

impl Typed for Type

source§

impl Typed for llvm_ir::constant::AShr

source§

impl Typed for llvm_ir::constant::Add

source§

impl Typed for llvm_ir::constant::AddrSpaceCast

source§

impl Typed for llvm_ir::constant::And

source§

impl Typed for llvm_ir::constant::BitCast

source§

impl Typed for ConstantRef

source§

impl Typed for llvm_ir::constant::ExtractElement

source§

impl Typed for llvm_ir::constant::ExtractValue

source§

impl Typed for llvm_ir::constant::FAdd

source§

impl Typed for llvm_ir::constant::FCmp

source§

impl Typed for llvm_ir::constant::FDiv

source§

impl Typed for llvm_ir::constant::FMul

source§

impl Typed for llvm_ir::constant::FPExt

source§

impl Typed for llvm_ir::constant::FPToSI

source§

impl Typed for llvm_ir::constant::FPToUI

source§

impl Typed for llvm_ir::constant::FPTrunc

source§

impl Typed for llvm_ir::constant::FRem

source§

impl Typed for llvm_ir::constant::FSub

source§

impl Typed for llvm_ir::constant::GetElementPtr

source§

impl Typed for llvm_ir::constant::ICmp

source§

impl Typed for llvm_ir::constant::InsertElement

source§

impl Typed for llvm_ir::constant::InsertValue

source§

impl Typed for llvm_ir::constant::IntToPtr

source§

impl Typed for llvm_ir::constant::LShr

source§

impl Typed for llvm_ir::constant::Mul

source§

impl Typed for llvm_ir::constant::Or

source§

impl Typed for llvm_ir::constant::PtrToInt

source§

impl Typed for llvm_ir::constant::SDiv

source§

impl Typed for llvm_ir::constant::SExt

source§

impl Typed for llvm_ir::constant::SIToFP

source§

impl Typed for llvm_ir::constant::SRem

source§

impl Typed for llvm_ir::constant::Select

source§

impl Typed for llvm_ir::constant::Shl

source§

impl Typed for llvm_ir::constant::ShuffleVector

source§

impl Typed for llvm_ir::constant::Sub

source§

impl Typed for llvm_ir::constant::Trunc

source§

impl Typed for llvm_ir::constant::UDiv

source§

impl Typed for llvm_ir::constant::UIToFP

source§

impl Typed for llvm_ir::constant::URem

source§

impl Typed for llvm_ir::constant::Xor

source§

impl Typed for llvm_ir::constant::ZExt

source§

impl Typed for Function

source§

impl Typed for Parameter

source§

impl Typed for llvm_ir::instruction::AShr

source§

impl Typed for llvm_ir::instruction::Add

source§

impl Typed for llvm_ir::instruction::AddrSpaceCast

source§

impl Typed for Alloca

source§

impl Typed for llvm_ir::instruction::And

source§

impl Typed for AtomicRMW

source§

impl Typed for llvm_ir::instruction::BitCast

source§

impl Typed for Call

source§

impl Typed for CatchPad

source§

impl Typed for CleanupPad

source§

impl Typed for CmpXchg

source§

impl Typed for llvm_ir::instruction::ExtractElement

source§

impl Typed for llvm_ir::instruction::ExtractValue

source§

impl Typed for llvm_ir::instruction::FAdd

source§

impl Typed for llvm_ir::instruction::FCmp

source§

impl Typed for llvm_ir::instruction::FDiv

source§

impl Typed for llvm_ir::instruction::FMul

source§

impl Typed for FNeg

source§

impl Typed for llvm_ir::instruction::FPExt

source§

impl Typed for llvm_ir::instruction::FPToSI

source§

impl Typed for llvm_ir::instruction::FPToUI

source§

impl Typed for llvm_ir::instruction::FPTrunc

source§

impl Typed for llvm_ir::instruction::FRem

source§

impl Typed for llvm_ir::instruction::FSub

source§

impl Typed for Fence

source§

impl Typed for Freeze

source§

impl Typed for llvm_ir::instruction::GetElementPtr

source§

impl Typed for llvm_ir::instruction::ICmp

source§

impl Typed for InlineAssembly

source§

impl Typed for llvm_ir::instruction::InsertElement

source§

impl Typed for llvm_ir::instruction::InsertValue

source§

impl Typed for llvm_ir::instruction::IntToPtr

source§

impl Typed for llvm_ir::instruction::LShr

source§

impl Typed for LandingPad

source§

impl Typed for Load

source§

impl Typed for llvm_ir::instruction::Mul

source§

impl Typed for llvm_ir::instruction::Or

source§

impl Typed for Phi

source§

impl Typed for llvm_ir::instruction::PtrToInt

source§

impl Typed for llvm_ir::instruction::SDiv

source§

impl Typed for llvm_ir::instruction::SExt

source§

impl Typed for llvm_ir::instruction::SIToFP

source§

impl Typed for llvm_ir::instruction::SRem

source§

impl Typed for llvm_ir::instruction::Select

source§

impl Typed for llvm_ir::instruction::Shl

source§

impl Typed for llvm_ir::instruction::ShuffleVector

source§

impl Typed for Store

source§

impl Typed for llvm_ir::instruction::Sub

source§

impl Typed for llvm_ir::instruction::Trunc

source§

impl Typed for llvm_ir::instruction::UDiv

source§

impl Typed for llvm_ir::instruction::UIToFP

source§

impl Typed for llvm_ir::instruction::URem

source§

impl Typed for VAArg

source§

impl Typed for llvm_ir::instruction::Xor

source§

impl Typed for llvm_ir::instruction::ZExt

source§

impl Typed for GlobalAlias

source§

impl Typed for GlobalIFunc

source§

impl Typed for GlobalVariable

source§

impl Typed for Br

source§

impl Typed for CallBr

source§

impl Typed for CatchRet

source§

impl Typed for CatchSwitch

source§

impl Typed for CleanupRet

source§

impl Typed for CondBr

source§

impl Typed for IndirectBr

source§

impl Typed for Invoke

source§

impl Typed for Resume

source§

impl Typed for Ret

source§

impl Typed for Switch

source§

impl Typed for Unreachable

source§

impl Typed for TypeRef