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

Method invoke

crates/rustc_codegen_spirv/src/builder/builder_methods.rs:872–887  ·  view source on GitHub ↗
(
        &mut self,
        llty: Self::Type,
        fn_attrs: Option<&CodegenFnAttrs>,
        fn_abi: Option<&FnAbi<'tcx, Ty<'tcx>>>,
        llfn: Self::Value,
        args: &[Self::Value],
     

Source from the content-addressed store, hash-verified

870 }
871
872 fn invoke(
873 &mut self,
874 llty: Self::Type,
875 fn_attrs: Option<&CodegenFnAttrs>,
876 fn_abi: Option<&FnAbi<'tcx, Ty<'tcx>>>,
877 llfn: Self::Value,
878 args: &[Self::Value],
879 then: Self::BasicBlock,
880 _catch: Self::BasicBlock,
881 funclet: Option<&Self::Funclet>,
882 ) -> Self::Value {
883 // Exceptions don't exist, jump directly to then block
884 let result = self.call(llty, fn_attrs, fn_abi, llfn, args, funclet);
885 self.emit().branch(then).unwrap();
886 result
887 }
888
889 fn unreachable(&mut self) {
890 self.emit().unreachable().unwrap();

Callers

nothing calls this directly

Calls 2

callMethod · 0.80
emitMethod · 0.45

Tested by

no test coverage detected