Enum cranelift_codegen::machinst::vcode::VCodeConstantData [−][src]
pub enum VCodeConstantData {
Pool(Constant, ConstantData),
WellKnown(&'static [u8]),
Generated(ConstantData),
}Identify the different types of constant that can be inserted into VCodeConstants. Tracking these separately instead of as raw byte buffers allows us to avoid some duplication.
Variants
Pool(Constant, ConstantData)A constant already present in the Cranelift IR ConstantPool.
WellKnown(&'static [u8])A reference to a well-known constant value that is statically encoded within the compiler.
Generated(ConstantData)A constant value generated during lowering; the value may depend on the instruction context which makes it difficult to de-duplicate–if possible, use other variants.
Implementations
impl VCodeConstantData[src]
impl VCodeConstantData[src]