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

Method struct_gep

crates/rustc_codegen_nvvm/src/builder.rs:759–763  ·  view source on GitHub ↗
(&mut self, _: &'ll Type, ptr: &'ll Value, idx: u64)

Source from the content-addressed store, hash-verified

757 }
758
759 fn struct_gep(&mut self, _: &'ll Type, ptr: &'ll Value, idx: u64) -> &'ll Value {
760 trace!("struct gep: {:?}, {:?}", ptr, idx);
761 assert_eq!(idx as c_uint as u64, idx);
762 unsafe { llvm::LLVMBuildStructGEP(self.llbuilder, ptr, idx as c_uint, unnamed()) }
763 }
764
765 /* Casts */
766 fn trunc(&mut self, val: &'ll Value, dest_ty: &'ll Type) -> &'ll Value {

Callers 1

load_operandMethod · 0.80

Calls 1

unnamedFunction · 0.85

Tested by

no test coverage detected