Skip to main content

Module llvm_util

Module llvm_util 

Source

Re-exportsΒ§

use std::borrow::Cow; πŸ”’
use std::collections::VecDeque; πŸ”’
use std::ffi::CStr; πŸ”’
use std::ffi::CString; πŸ”’
use std::fmt::Write; πŸ”’
use std::path::Path; πŸ”’
use std::sync::Once; πŸ”’
use std::ptr; πŸ”’
use std::slice; πŸ”’
use std::str; πŸ”’
use libc::c_int; πŸ”’
use rustc_abi::Endian; πŸ”’
use rustc_codegen_ssa::back::versioned_llvm_target; πŸ”’
use rustc_codegen_ssa::base::wants_wasm_eh; πŸ”’
use rustc_codegen_ssa::target_features::internal_target_features; πŸ”’
use rustc_codegen_ssa::TargetConfig; πŸ”’
use rustc_codegen_ssa::target_features; πŸ”’
use rustc_data_structures::fx::FxHashSet; πŸ”’
use rustc_data_structures::small_c_str::SmallCStr; πŸ”’
use rustc_fs_util::path_to_c_string; πŸ”’
use rustc_session::config::NATIVE_CPU; πŸ”’
use rustc_session::config::PrintKind; πŸ”’
use rustc_session::config::PrintRequest; πŸ”’
use rustc_session::EarlySession; πŸ”’
use rustc_session::Session; πŸ”’
use rustc_span::bug; πŸ”’
use rustc_span::sym; πŸ”’
use rustc_target::spec::Arch; πŸ”’
use rustc_target::spec::CfgAbi; πŸ”’
use rustc_target::spec::Env; πŸ”’
use rustc_target::spec::MergeFunctions; πŸ”’
use rustc_target::spec::Os; πŸ”’
use rustc_target::spec::PanicStrategy; πŸ”’
use rustc_target::spec::SmallDataThresholdSupport; πŸ”’
use rustc_target::spec::Target; πŸ”’
use smallvec::SmallVec; πŸ”’
use smallvec::smallvec; πŸ”’
use crate::back::owned_mc_subtarget_info::OwnedMCSubtargetInfo; πŸ”’
use crate::back::write::create_informational_target_machine; πŸ”’
use crate::back::write::llvm_err; πŸ”’
use crate::diagnostics; πŸ”’
use crate::llvm; πŸ”’

StructsΒ§

LLVMFeature πŸ”’

EnumsΒ§

TargetFeatureFoldStrength πŸ”’

StaticsΒ§

INIT πŸ”’

FunctionsΒ§

configure_llvm πŸ”’ ⚠
get_host_cpu_name πŸ”’
Returns the host CPU name, according to LLVM.
get_version πŸ”’
Returns the version of LLVM that we are actually linked to at runtime.
global_llvm_features πŸ”’
The list of LLVM features computed from CLI flags (-Ctarget-cpu, -Ctarget-feature, --target and similar).
handle_native πŸ”’
If the given string is "native", returns the host CPU name according to LLVM. Otherwise, the string is returned as-is.
init πŸ”’
llvm_features_by_flags πŸ”’
The target features for compiler flags other than -Ctarget-features.
llvm_target πŸ”’
The LLVM target triple to use for the session’s target.
llvm_target_features πŸ”’
print πŸ”’
print_passes πŸ”’
print_target_cpus πŸ”’
print_target_features πŸ”’
print_version πŸ”’
require_inited πŸ”’
target_config πŸ”’
Used to generate cfg variables and apply features. Must express features in the way Rust understands them.
target_cpu πŸ”’
target_has_mnemonic πŸ”’
time_trace_profiler_finish πŸ”’
to_llvm_features πŸ”’
Convert a Rust feature name to an LLVM feature name. Returning None means the feature should be skipped, usually because it is not supported by the current LLVM version.
tune_cpu πŸ”’
update_target_reliable_float_cfg πŸ”’
Determine whether or not experimental float types are reliable based on known bugs.