Struct llhd::inst::Inst
[−]
[src]
pub struct Inst { /* fields omitted */ }
Methods
impl Inst
[src]
fn new(name: Option<String>, kind: InstKind) -> Inst
[src]
Create a new instruction.
fn as_ref(&self) -> InstRef
[src]
Obtain a reference to this instruction.
fn mnemonic(&self) -> Mnemonic
[src]
Determine the mnemonic for this instruction. The mnemonic is a short sequence of characters that uniquely identifies the instruction in human readable assembly text.
fn kind(&self) -> &InstKind
[src]
Obtain a reference to the data for this instruction. See InstKind
.
Trait Implementations
impl Debug for Inst
[src]
impl Value for Inst
[src]
fn id(&self) -> ValueId
[src]
Get the unique ID of the value.
fn ty(&self) -> Type
[src]
Get the type of the value.
fn name(&self) -> Option<&str>
[src]
Get the optional name of the value.
fn is_global(&self) -> bool
[src]
Whether this value is global or not. Global values are considered during linking, and are visible in a module's symbol table. Local values are not, and are only visible within the surrounding context (module or unit). Read more