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

Julius Alexandre via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 29 13:17:08 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()
----------------
medievalghoul wrote:

Will do, thanks for the suggestion. 

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


More information about the llvm-commits mailing list