[Mlir-commits] [clang] [llvm] [mlir] [Clang][CodeGen] Start migrating away from assuming the Default AS is 0 (PR #88182)

Jessica Clarke llvmlistbot at llvm.org
Tue May 7 08:34:06 PDT 2024


================
@@ -23,8 +26,8 @@ struct B : A {
 void g(A *a) { a->foo(); }
 
 // CHECK1-LABEL: define{{.*}} void @_ZN5test14fooAEv()
-// CHECK1: call void @_ZN5test11AC1Ev(ptr
-// CHECK1: %[[VTABLE:.*]] = load ptr addrspace(1), ptr %{{.*}}
+// CHECK1: call{{.*}} void @_ZN5test11AC1Ev(ptr {{((addrspace(4)){0,1})}}
----------------
jrtc27 wrote:

I don’t love how this isn’t checking the address space is correct for each, only that it’s one of the two valid ones

https://github.com/llvm/llvm-project/pull/88182


More information about the Mlir-commits mailing list