Expand description
Code that is useful in various codegen modules.
Re-exportsยง
use std::borrow::Borrow;๐use libc::c_uint;๐use rustc_abi::Primitive::Pointer;๐use rustc_abi as abi;๐use rustc_abi::ExternAbi;๐use rustc_abi::HasDataLayout as _;๐use rustc_ast::Mutability;๐use rustc_crate_store::DllImport;๐use rustc_data_structures::stable_hash::StableHash;๐use rustc_data_structures::stable_hash::StableHasher;๐use rustc_hashes::Hash128;๐use rustc_hir::def::DefKind;๐use rustc_hir::def_id::DefId;๐use rustc_middle::mir::interpret::GlobalAlloc;๐use rustc_middle::mir::interpret::PointerArithmetic;๐use rustc_middle::mir::interpret::Scalar;๐use rustc_middle::ty::Instance;๐use rustc_middle::ty::TyCtxt;๐use rustc_session::PointerAuthAddressDiscriminator;๐use rustc_session::PointerAuthSchema;๐use rustc_span::bug;๐use tracing::debug;๐use crate::consts::IsInitOrFini;๐use crate::consts::IsStatic;๐use crate::consts::const_alloc_to_llvm;๐pub(crate) use crate::context::CodegenCx;๐use crate::context::GenericCx;๐use crate::context::SCx;๐use crate::llvm;๐use crate::llvm::BasicBlock;๐use crate::llvm::ConstantInt;๐use crate::llvm::FALSE;๐use crate::llvm::TRUE;๐use crate::llvm::ToLlvmBool;๐use crate::llvm::Type;๐use crate::llvm::TypeKind;๐use crate::llvm::Value;๐use crate::llvm::const_ptr_auth;๐use rustc_codegen_ssa::traits::*;๐
Structsยง
- Funclet ๐
- A structure representing an active landing pad for the duration of a basic block.
Functionsยง
- bytes_
in_ ๐context - get_
dllimport ๐ - hi_
lo_ ๐to_ u128 - maybe_
sign_ ๐fn_ ptr - named_
struct ๐ - null_
terminate_ ๐bytes_ in_ context - struct_
in_ ๐context - try_
as_ ๐const_ integral - val_ty ๐
- Get the LLVM type of a
Value.