[clang] [llvm] [WebAssembly] Add support for nonnull_extern_ref type (PR #148935)
Paulo Matos via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 21 01:37:00 PDT 2025
================
@@ -308,6 +308,13 @@ Type *Type::getWasm_ExternrefTy(LLVMContext &C) {
return Ty;
}
+Type *Type::getWasm_NonNullExternrefTy(LLVMContext &C) {
+ // opaque pointer in addrspace(10)
+ // TODO: Hey Jasmine, Is this correct?
----------------
pmatos wrote:
Because you cannot assign non-null to null externrefs interchangeably, it's almost like a different type. My initial thought would be to create a new AS for this.
https://github.com/llvm/llvm-project/pull/148935
More information about the llvm-commits
mailing list