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

Method extract_value

crates/rustc_codegen_nvvm/src/builder.rs:979–983  ·  view source on GitHub ↗
(&mut self, agg_val: &'ll Value, idx: u64)

Source from the content-addressed store, hash-verified

977 }
978
979 fn extract_value(&mut self, agg_val: &'ll Value, idx: u64) -> &'ll Value {
980 trace!("extract value {:?}, {:?}", agg_val, idx);
981 assert_eq!(idx as c_uint as u64, idx);
982 unsafe { llvm::LLVMBuildExtractValue(self.llbuilder, agg_val, idx as c_uint, unnamed()) }
983 }
984
985 fn insert_value(&mut self, agg_val: &'ll Value, elt: &'ll Value, idx: u64) -> &'ll Value {
986 trace!("insert value {:?}, {:?}", agg_val, idx);

Callers 3

codegen_inline_asmMethod · 0.80
checked_binopMethod · 0.80

Calls 1

unnamedFunction · 0.85

Tested by

no test coverage detected