[llvm] [SandboxIR] Added new StoreInst::create() functions with isVolatile arg (PR #100961)

via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 29 12:47:57 PDT 2024


================
@@ -798,9 +799,13 @@ define void @foo(i8 %val, ptr %ptr) {
   auto *BB = &*F->begin();
   auto It = BB->begin();
   auto *St = cast<sandboxir::StoreInst>(&*It++);
+  auto *VSt = cast<sandboxir::StoreInst>(&*It++);
   auto *Ret = cast<sandboxir::ReturnInst>(&*It++);
 
   // Check that the StoreInst has been created correctly.
+  // Check isVolatile()
----------------
vporpo wrote:

Remove the `// Check isVolatile()` comment.

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


More information about the llvm-commits mailing list