[−][src]Trait rustc_codegen_ssa::traits::consts::ConstMethods
Required methods
pub fn const_null(&self, t: Self::Type) -> Self::Value[src]
pub fn const_undef(&self, t: Self::Type) -> Self::Value[src]
pub fn const_int(&self, t: Self::Type, i: i64) -> Self::Value[src]
pub fn const_uint(&self, t: Self::Type, i: u64) -> Self::Value[src]
pub fn const_uint_big(&self, t: Self::Type, u: u128) -> Self::Value[src]
pub fn const_bool(&self, val: bool) -> Self::Value[src]
pub fn const_i32(&self, i: i32) -> Self::Value[src]
pub fn const_u32(&self, i: u32) -> Self::Value[src]
pub fn const_u64(&self, i: u64) -> Self::Value[src]
pub fn const_usize(&self, i: u64) -> Self::Value[src]
pub fn const_u8(&self, i: u8) -> Self::Value[src]
pub fn const_real(&self, t: Self::Type, val: f64) -> Self::Value[src]
pub fn const_str(&self, s: Symbol) -> (Self::Value, Self::Value)[src]
pub fn const_struct(&self, elts: &[Self::Value], packed: bool) -> Self::Value[src]
pub fn const_to_opt_uint(&self, v: Self::Value) -> Option<u64>[src]
pub fn const_to_opt_u128(&self, v: Self::Value, sign_ext: bool) -> Option<u128>[src]
pub fn scalar_to_backend(
&self,
cv: Scalar,
layout: &Scalar,
llty: Self::Type
) -> Self::Value[src]
&self,
cv: Scalar,
layout: &Scalar,
llty: Self::Type
) -> Self::Value
pub fn from_const_alloc(
&self,
layout: TyAndLayout<'tcx>,
alloc: &Allocation,
offset: Size
) -> PlaceRef<'tcx, Self::Value>[src]
&self,
layout: TyAndLayout<'tcx>,
alloc: &Allocation,
offset: Size
) -> PlaceRef<'tcx, Self::Value>