[−][src]Trait rustc_codegen_ssa::traits::type_::BaseTypeMethods

pub trait BaseTypeMethods<'tcx>: Backend<'tcx> {
    pub fn type_i1(&self) -> Self::Type;
pub fn type_i8(&self) -> Self::Type;
pub fn type_i16(&self) -> Self::Type;
pub fn type_i32(&self) -> Self::Type;
pub fn type_i64(&self) -> Self::Type;
pub fn type_i128(&self) -> Self::Type;
pub fn type_isize(&self) -> Self::Type;
pub fn type_f32(&self) -> Self::Type;
pub fn type_f64(&self) -> Self::Type;
pub fn type_func(&self, args: &[Self::Type], ret: Self::Type) -> Self::Type;
pub fn type_struct(&self, els: &[Self::Type], packed: bool) -> Self::Type;
pub fn type_kind(&self, ty: Self::Type) -> TypeKind;
pub fn type_ptr_to(&self, ty: Self::Type) -> Self::Type;
pub fn type_ptr_to_ext(
        &self,
        ty: Self::Type,
        address_space: AddressSpace
    ) -> Self::Type;
pub fn element_type(&self, ty: Self::Type) -> Self::Type;
pub fn vector_length(&self, ty: Self::Type) -> usize;
pub fn float_width(&self, ty: Self::Type) -> usize;
pub fn int_width(&self, ty: Self::Type) -> u64;
pub fn val_ty(&self, v: Self::Value) -> Self::Type; }

Required methods

pub fn type_i1(&self) -> Self::Type[src]

pub fn type_i8(&self) -> Self::Type[src]

pub fn type_i16(&self) -> Self::Type[src]

pub fn type_i32(&self) -> Self::Type[src]

pub fn type_i64(&self) -> Self::Type[src]

pub fn type_i128(&self) -> Self::Type[src]

pub fn type_isize(&self) -> Self::Type[src]

pub fn type_f32(&self) -> Self::Type[src]

pub fn type_f64(&self) -> Self::Type[src]

pub fn type_func(&self, args: &[Self::Type], ret: Self::Type) -> Self::Type[src]

pub fn type_struct(&self, els: &[Self::Type], packed: bool) -> Self::Type[src]

pub fn type_kind(&self, ty: Self::Type) -> TypeKind[src]

pub fn type_ptr_to(&self, ty: Self::Type) -> Self::Type[src]

pub fn type_ptr_to_ext(
    &self,
    ty: Self::Type,
    address_space: AddressSpace
) -> Self::Type
[src]

pub fn element_type(&self, ty: Self::Type) -> Self::Type[src]

pub fn vector_length(&self, ty: Self::Type) -> usize[src]

Returns the number of elements in self if it is a LLVM vector type.

pub fn float_width(&self, ty: Self::Type) -> usize[src]

pub fn int_width(&self, ty: Self::Type) -> u64[src]

Retrieves the bit width of the integer type self.

pub fn val_ty(&self, v: Self::Value) -> Self::Type[src]

Loading content...

Implementors

Loading content...