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

Method invoke

crates/rustc_codegen_nvvm/src/builder.rs:260–274  ·  view source on GitHub ↗
(
        &mut self,
        ty: &'ll Type,
        llfn: &'ll Value,
        args: &[&'ll Value],
        then: &'ll BasicBlock,
        _catch: &'ll BasicBlock,
        funclet: Option<&()>,
    )

Source from the content-addressed store, hash-verified

258 }
259
260 fn invoke(
261 &mut self,
262 ty: &'ll Type,
263 llfn: &'ll Value,
264 args: &[&'ll Value],
265 then: &'ll BasicBlock,
266 _catch: &'ll BasicBlock,
267 funclet: Option<&()>,
268 ) -> &'ll Value {
269 trace!("invoke");
270 let call = self.call(ty, llfn, args, funclet);
271 // exceptions arent a thing, go directly to the `then` block
272 unsafe { llvm::LLVMBuildBr(self.llbuilder, then) };
273 call
274 }
275
276 fn unreachable(&mut self) {
277 trace!("Unreachable");

Callers

nothing calls this directly

Calls 1

callMethod · 0.80

Tested by

no test coverage detected