[llvm] [LiveDebugVariables] Add basic verification (PR #79846)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 29 07:20:18 PST 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 8b429fc3fe2d5a9c55f953b4d0eecdb1f9f6fe06 17295f6ea9d496de1d462d696cec6f4500b06c21 -- llvm/include/llvm/CodeGen/SlotIndexes.h llvm/lib/CodeGen/LiveDebugVariables.cpp llvm/lib/CodeGen/LiveDebugVariables.h llvm/lib/CodeGen/SlotIndexes.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/include/llvm/CodeGen/SlotIndexes.h b/llvm/include/llvm/CodeGen/SlotIndexes.h
index 2b437a0649..75fae0de04 100644
--- a/llvm/include/llvm/CodeGen/SlotIndexes.h
+++ b/llvm/include/llvm/CodeGen/SlotIndexes.h
@@ -57,26 +57,20 @@ class raw_ostream;
unsigned index;
public:
- IndexListEntry(MachineInstr *mi, unsigned index) : mi(mi, 0), index(index) {
- }
+ IndexListEntry(MachineInstr *mi, unsigned index)
+ : mi(mi, 0), index(index) {}
- MachineInstr* getInstr() const { return mi.getPointer(); }
- void setInstr(MachineInstr *mi) {
- this->mi.setPointer(mi);
- }
+ MachineInstr *getInstr() const { return mi.getPointer(); }
+ void setInstr(MachineInstr *mi) { this->mi.setPointer(mi); }
unsigned getIndex() const { return index; }
void setIndex(unsigned index) {
this->index = index;
}
- void setPoison() {
- mi.setInt(PoisonVal);
- }
+ void setPoison() { mi.setInt(PoisonVal); }
- bool isPoisoned() const {
- return mi.getInt();
- }
+ bool isPoisoned() const { return mi.getInt(); }
};
template <>
@@ -305,9 +299,7 @@ class raw_ostream;
return SlotIndex(&*--listEntry()->getIterator(), getSlot());
}
- bool isPoisoned() const {
- return listEntry()->isPoisoned();
- }
+ bool isPoisoned() const { return listEntry()->isPoisoned(); }
};
inline raw_ostream& operator<<(raw_ostream &os, SlotIndex li) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/79846
More information about the llvm-commits
mailing list