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

Method from_immediate

crates/rustc_codegen_nvvm/src/builder.rs:433–439  ·  view source on GitHub ↗
(&mut self, val: Self::Value)

Source from the content-addressed store, hash-verified

431 }
432
433 fn from_immediate(&mut self, val: Self::Value) -> Self::Value {
434 if self.cx().val_ty(val) == self.cx().type_i1() {
435 self.zext(val, self.cx().type_i8())
436 } else {
437 val
438 }
439 }
440 fn to_immediate_scalar(&mut self, val: Self::Value, scalar: abi::Scalar) -> Self::Value {
441 if scalar.is_bool() {
442 return self.trunc(val, self.cx().type_i1());

Callers

nothing calls this directly

Calls 5

val_tyMethod · 0.80
cxMethod · 0.80
type_i1Method · 0.80
zextMethod · 0.80
type_i8Method · 0.80

Tested by

no test coverage detected