[llvm] [SandboxIR] Implemented isVolatile() for LoadInst (PR #100717)

Julius Alexandre via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 26 09:18:54 PDT 2024


================
@@ -737,7 +737,7 @@ define void @foo(i1 %cond0, i1 %cond2) {
 TEST_F(SandboxIRTest, LoadInst) {
   parseIR(C, R"IR(
 define void @foo(ptr %arg0, ptr %arg1) {
-  %ld = load i8, ptr %arg0, align 64
+  %ld = load volatile i8, ptr %arg0, align 64
----------------
medievalghoul wrote:

Ah okay, that makes sense. So the end result would be like this?

```
%ld = load i8, ptr %arg0, align 64
%vld = load volatile i8, ptr %arg0, align 64
```


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


More information about the llvm-commits mailing list