MCPcopy Create free account
hub / github.com/Rust-GPU/rust-cuda / data_layout

Function data_layout

crates/rustc_codegen_nvvm/src/target.rs:19–25  ·  view source on GitHub ↗

The data layouts of NVVM targets

()

Source from the content-addressed store, hash-verified

17/// The data layouts of NVVM targets
18/// <https://docs.nvidia.com/cuda/nvvm-ir-spec/index.html#data-layout>
19pub fn data_layout() -> &'static str {
20 if TARGET_32_BIT.load(Ordering::SeqCst) {
21 "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v16:16:16-v32:32:32-v64:64:64-v128:128:128-n16:32:64"
22 } else {
23 "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v16:16:16-v32:32:32-v64:64:64-v128:128:128-n16:32:64"
24 }
25}
26
27/// The target triples of NVVM targets
28/// <https://docs.nvidia.com/cuda/nvvm-ir-spec/index.html#target-triple>

Callers 2

create_moduleFunction · 0.85
targetFunction · 0.85

Calls 1

loadMethod · 0.80

Tested by

no test coverage detected