================
@@ -17,8 +17,9 @@ char4 f4(int x) {
// CIR: cir.func {{.*}} @f4
// CIR: %[[X_ADDR:.*]] = cir.alloca "x" {{.*}} init : !cir.ptr<!s32i>
// CIR: %[[RET_ADDR:.*]] = cir.alloca "__retval" {{.*}} :
!cir.ptr<!cir.vector<4 x !s8i>>
-// CIR: cir.store %{{.*}}, %[[X_ADDR]] : !s32i, !cir.ptr<!s32i>
-// CIR: %[[TMP_X:.*]] = cir.load {{.*}} %[[X_ADDR]] : !cir.ptr<!s32i>, !s32i
+// CIR: %[[X_CAST:.*]] = cir.cast address_space %[[X_ADDR]] :
!cir.ptr<!s32i> -> !cir.ptr<!s32i>
----------------
Fznamznon wrote:
I think this has something to do with support for address space attribute for
some triples. I'm unable to see address space for spir/spirv triples but I do
see it when I use amdgcn triple for the same code. I'm actually interested in
fixing this now, let me see...
https://github.com/llvm/llvm-project/pull/220836
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits