Trait llvm_ir::types::Typed [−][src]
Expand description
The Typed
trait is used for anything that has a Type
.
Required methods
Implementations on Foreign Types
Implementors
The Type
of an Instruction
(or any subtype of Instruction
) is its result type.
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 12 docs on Terminator Instructions