The data layouts of NVVM targets
()
| 17 | /// The data layouts of NVVM targets |
| 18 | /// <https://docs.nvidia.com/cuda/nvvm-ir-spec/index.html#data-layout> |
| 19 | pub 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> |
no test coverage detected