[spirv][ir] Add memory model annotations to Load/Store
This CL adds the Vulkan Memory Model `NonPrivatePointer` annotation to
the loads and stores.
Bug: 348702031
Change-Id: I65f3ae32bcd58ce4f6f9201d8b363be9c686a797
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/203495
Reviewed-by: James Price <jrprice@google.com>
Commit-Queue: dan sinclair <dsinclair@chromium.org>
diff --git a/test/tint/ptr_sugar/compound_assign_index.wgsl.expected.spvasm b/test/tint/ptr_sugar/compound_assign_index.wgsl.expected.spvasm
index f7538c9..54ce6c6 100644
--- a/test/tint/ptr_sugar/compound_assign_index.wgsl.expected.spvasm
+++ b/test/tint/ptr_sugar/compound_assign_index.wgsl.expected.spvasm
@@ -34,40 +34,40 @@
%4 = OpLabel
%a = OpVariable %_ptr_Function_v3int Function %9
%10 = OpAccessChain %_ptr_Function_int %a %int_0
- %13 = OpLoad %int %10
+ %13 = OpLoad %int %10 None
%14 = OpIAdd %int %13 %int_42
%16 = OpAccessChain %_ptr_Function_int %a %int_0
- OpStore %16 %14
+ OpStore %16 %14 None
OpReturn
OpFunctionEnd
%no_deref = OpFunction %void None %3
%18 = OpLabel
%a_0 = OpVariable %_ptr_Function_v3int Function %9
%20 = OpAccessChain %_ptr_Function_int %a_0 %int_0
- %21 = OpLoad %int %20
+ %21 = OpLoad %int %20 None
%22 = OpIAdd %int %21 %int_42
%23 = OpAccessChain %_ptr_Function_int %a_0 %int_0
- OpStore %23 %22
+ OpStore %23 %22 None
OpReturn
OpFunctionEnd
%deref_inc = OpFunction %void None %3
%25 = OpLabel
%a_1 = OpVariable %_ptr_Function_v3int Function %9
%27 = OpAccessChain %_ptr_Function_int %a_1 %int_0
- %28 = OpLoad %int %27
+ %28 = OpLoad %int %27 None
%29 = OpIAdd %int %28 %int_1
%31 = OpAccessChain %_ptr_Function_int %a_1 %int_0
- OpStore %31 %29
+ OpStore %31 %29 None
OpReturn
OpFunctionEnd
%no_deref_inc = OpFunction %void None %3
%33 = OpLabel
%a_2 = OpVariable %_ptr_Function_v3int Function %9
%35 = OpAccessChain %_ptr_Function_int %a_2 %int_0
- %36 = OpLoad %int %35
+ %36 = OpLoad %int %35 None
%37 = OpIAdd %int %36 %int_1
%38 = OpAccessChain %_ptr_Function_int %a_2 %int_0
- OpStore %38 %37
+ OpStore %38 %37 None
OpReturn
OpFunctionEnd
%main = OpFunction %void None %3