Expand description
Set and unset common attributes on LLVM values.
Re-exportsยง
use rustc_attr_ir::InlineAttr;๐use rustc_attr_ir::InstructionSetAttr;๐use rustc_attr_ir::InstrumentFnAttr;๐use rustc_attr_ir::OptimizeAttr;๐use rustc_attr_ir::RtsanSetting;๐use rustc_attr_ir::find_attr;๐use rustc_hir::def_id::DefId;๐use rustc_middle::middle::codegen_fn_attrs::CodegenFnAttrFlags;๐use rustc_middle::middle::codegen_fn_attrs::CodegenFnAttrs;๐use rustc_middle::middle::codegen_fn_attrs::PatchableFunctionEntry;๐use rustc_middle::middle::codegen_fn_attrs::SanitizerFnAttrs;๐use rustc_middle::middle::codegen_fn_attrs::TargetFeature;๐use rustc_middle::ty;๐use rustc_middle::ty::Instance;๐use rustc_middle::ty::TyCtxt;๐use rustc_sanitizers::ignorelist::SanitizerIgnoreList;๐use rustc_session::Session;๐use rustc_session::config::BranchProtection;๐use rustc_session::config::FunctionReturn;๐use rustc_session::config::InstrumentMcount;๐use rustc_session::config::InstrumentMcountOpts;๐use rustc_session::config::OptLevel;๐use rustc_session::config::PAuthKey;๐use rustc_session::config::PacRet;๐use rustc_span::sym;๐use rustc_symbol_mangling::mangle_internal_symbol;๐use rustc_target::spec::Arch;๐use rustc_target::spec::FramePointer;๐use rustc_target::spec::SanitizerSet;๐use rustc_target::spec::StackProbeType;๐use rustc_target::spec::StackProtector;๐use smallvec::SmallVec;๐use crate::context::SimpleCx;๐use crate::diagnostics::PackedStackBackchainNeedsSoftfloat;๐use crate::diagnostics::SanitizerMemtagRequiresMte;๐use crate::llvm::AttributePlace::Function;๐use crate::llvm;๐use crate::llvm::AllocKindFlags;๐use crate::llvm::Attribute;๐use crate::llvm::AttributeKind;๐use crate::llvm::AttributePlace;๐use crate::llvm::MemoryEffects;๐use crate::llvm::Value;๐use crate::attributes;๐use crate::llvm_util;๐
Functionsยง
- apply_
to_ ๐callsite - apply_
to_ ๐llfn - create_
alloc_ ๐family_ attr - default_
optimisation_ ๐attrs - Get the default optimizations attrs for a function.
- frame_
pointer ๐ - frame_
pointer_ ๐type_ attr - function_
return_ ๐attr - has_
string_ ๐attr - inline_
attr ๐ - Get LLVM attribute for the provided inline heuristic.
- instrument_
function_ ๐attr - Tell LLVM what instrument function to insert.
- llfn_
attrs_ ๐from_ instance - Helper for
FnAbiLlvmExt::apply_attrs_llfn: Composite function which sets LLVM attributes for function depending on its AST (#[attribute]) attributes. - nojumptables_
attr ๐ - non_
lazy_ ๐bind_ attr - Get the
NonLazyBindLLVM attribute, if the codegen options allow skipping the PLT. - packed_
stack_ ๐attr - patchable_
function_ ๐entry_ attrs - probestack_
attr ๐ - remove_
string_ ๐attr_ from_ llfn - sanitize_
attrs ๐ - Get LLVM sanitize attributes.
- stackprotector_
attr ๐ - target_
cpu_ ๐attr - target_
features_ ๐attr - Get the
target-featuresLLVM attribute. - tune_
cpu_ ๐attr - uwtable_
attr ๐ - Tell LLVM to emit or not emit the information necessary to unwind the stack for the function.
- wasm_
import_ ๐module