Trait llvm::Compile [] [src]

pub trait Compile<'a> {
    fn compile(self, context: &'a Context) -> &'a Value;
    fn get_type(context: &'a Context) -> &'a Type;
}

A type that can be represented as a constant in LLVM IR.

Required Methods

fn compile(self, context: &'a Context) -> &'a Value

Compile this value into a constant in the context given.

fn get_type(context: &'a Context) -> &'a Type

Get the type descriptor for this type in the context given.

Implementors