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

Method check_store

crates/rustc_codegen_nvvm/src/builder.rs:1185–1197  ·  view source on GitHub ↗
(&mut self, val: &'ll Value, ptr: &'ll Value)

Source from the content-addressed store, hash-verified

1183 }
1184
1185 fn check_store(&mut self, val: &'ll Value, ptr: &'ll Value) -> &'ll Value {
1186 let dest_ptr_ty = self.cx.val_ty(ptr);
1187 let stored_ty = self.cx.val_ty(val);
1188 let stored_ptr_ty = self.cx.type_ptr_to(stored_ty);
1189
1190 assert_eq!(self.cx.type_kind(dest_ptr_ty), TypeKind::Pointer);
1191
1192 if dest_ptr_ty == stored_ptr_ty {
1193 ptr
1194 } else {
1195 self.bitcast(ptr, stored_ptr_ty)
1196 }
1197 }
1198
1199 fn check_call<'b>(
1200 &mut self,

Callers 1

store_with_flagsMethod · 0.80

Calls 3

val_tyMethod · 0.80
type_ptr_toMethod · 0.80
bitcastMethod · 0.80

Tested by

no test coverage detected