MCPcopy Create free account
hub / github.com/Rust-GPU/rust-gpu / constant_bool

Method constant_bool

crates/rustc_codegen_spirv/src/codegen_cx/constant.rs:104–107  ·  view source on GitHub ↗
(&self, span: Span, val: bool)

Source from the content-addressed store, hash-verified

102 }
103
104 pub fn constant_bool(&self, span: Span, val: bool) -> SpirvValue {
105 let ty = SpirvType::Bool.def(span, self);
106 self.def_constant(ty, SpirvConst::Bool(val))
107 }
108
109 pub fn constant_composite(&self, ty: Word, fields: impl Iterator<Item = Word>) -> SpirvValue {
110 // FIXME(eddyb) use `AccumulateVec`s just like `rustc` itself does.

Callers 5

const_boolMethod · 0.80
scalar_to_backendMethod · 0.80
notMethod · 0.80
icmpMethod · 0.80
fcmpMethod · 0.80

Calls 2

def_constantMethod · 0.80
defMethod · 0.45

Tested by

no test coverage detected