[llvm] [VirtRegMap] Store MCRegister in Virt2PhysMap. (PR #108775)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 15 11:31:22 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 e523f4e2c3e20a843aeb79c412c1e8b3e90b96a3 1abb77b691f4ffb99b2c89f763d6713177b183e8 --extensions cpp,h -- llvm/include/llvm/CodeGen/Register.h llvm/include/llvm/CodeGen/VirtRegMap.h llvm/include/llvm/MC/MCRegister.h llvm/lib/CodeGen/VirtRegMap.cpp llvm/lib/Target/AMDGPU/SILowerWWMCopies.cpp llvm/lib/Target/X86/X86TileConfig.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/include/llvm/CodeGen/VirtRegMap.h b/llvm/include/llvm/CodeGen/VirtRegMap.h
index 96c28c191e..e2f9bd1d12 100644
--- a/llvm/include/llvm/CodeGen/VirtRegMap.h
+++ b/llvm/include/llvm/CodeGen/VirtRegMap.h
@@ -32,10 +32,7 @@ class TargetInstrInfo;
class VirtRegMap : public MachineFunctionPass {
public:
- enum {
- NO_STACK_SLOT = (1L << 30)-1,
- MAX_STACK_SLOT = (1L << 18)-1
- };
+ enum { NO_STACK_SLOT = (1L << 30) - 1, MAX_STACK_SLOT = (1L << 18) - 1 };
private:
MachineRegisterInfo *MRI = nullptr;
``````````
</details>
https://github.com/llvm/llvm-project/pull/108775
More information about the llvm-commits
mailing list