[llvm] [SandboxIR] Added setVolatile member function to LoadInst and StoreInst (PR #101284)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 30 21:33:28 PDT 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff 12189f800585ab459afa20b4f159db93ae474b57 f097ecdc82be86bdd925275bbea804b267585904 --extensions h,cpp -- llvm/include/llvm/SandboxIR/SandboxIR.h llvm/include/llvm/SandboxIR/Tracker.h llvm/lib/SandboxIR/Tracker.cpp llvm/unittests/SandboxIR/SandboxIRTest.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/include/llvm/SandboxIR/SandboxIR.h b/llvm/include/llvm/SandboxIR/SandboxIR.h
index 34efad0afb..02c168302f 100644
--- a/llvm/include/llvm/SandboxIR/SandboxIR.h
+++ b/llvm/include/llvm/SandboxIR/SandboxIR.h
@@ -828,7 +828,9 @@ public:
/// Return true if this is a store from a volatile memory location.
bool isVolatile() const { return cast<llvm::StoreInst>(Val)->isVolatile(); }
/// Specify whether this is a volatile store or not.
- void setVolatile(bool V) { return cast<llvm::StoreInst>(Val)->setVolatile(V); }
+ void setVolatile(bool V) {
+ return cast<llvm::StoreInst>(Val)->setVolatile(V);
+ }
unsigned getUseOperandNo(const Use &Use) const final {
return getUseOperandNoDefault(Use);
``````````
</details>
https://github.com/llvm/llvm-project/pull/101284
More information about the llvm-commits
mailing list