[llvm] [X86] getConstantFromPool - add basic handling for non-zero address offsets (PR #127225)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 14 09:06:01 PST 2025
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 1435c8ed95fa10a55c2f924984141e427b89c330 d91a03560cbfcb351dec8a5c36a8df1bd81c8ede --extensions h,cpp -- llvm/lib/Target/X86/X86FixupVectorConstants.cpp llvm/lib/Target/X86/X86InstrInfo.cpp llvm/lib/Target/X86/X86InstrInfo.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/X86/X86InstrInfo.cpp b/llvm/lib/Target/X86/X86InstrInfo.cpp
index 968f7ecd1b..4df6565d5d 100644
--- a/llvm/lib/Target/X86/X86InstrInfo.cpp
+++ b/llvm/lib/Target/X86/X86InstrInfo.cpp
@@ -3655,8 +3655,8 @@ int X86::getFirstAddrOperandIdx(const MachineInstr &MI) {
return -1;
}
-const Constant *X86::getConstantFromPool(const MachineInstr &MI,
- unsigned OpNo, int64_t *ByteOffset) {
+const Constant *X86::getConstantFromPool(const MachineInstr &MI, unsigned OpNo,
+ int64_t *ByteOffset) {
assert(MI.getNumOperands() >= (OpNo + X86::AddrNumOperands) &&
"Unexpected number of operands!");
``````````
</details>
https://github.com/llvm/llvm-project/pull/127225
More information about the llvm-commits
mailing list