[clang] [Wasm][Clang] Add __builtin_wasm_ref_is_null_extern (PR #139580)
Sam Clegg via cfe-commits
cfe-commits at lists.llvm.org
Mon May 12 10:14:42 PDT 2025
================
@@ -741,6 +741,12 @@ __externref_t externref_null() {
// WEBASSEMBLY-NEXT: ret
}
+int externref_is_null(__externref_t arg) {
+ return __builtin_wasm_ref_is_null_extern(arg);
+ // WEBASSEMBLY: tail call i32 @llvm.wasm.ref.is_null.extern(ptr addrspace(10) %arg)
----------------
sbc100 wrote:
I suppose the llvm side of this is already working/testing?
https://github.com/llvm/llvm-project/pull/139580
More information about the cfe-commits
mailing list