[llvm] [PowerPC]redesign the target flags (PR #69695)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 20 02:27:38 PDT 2023
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 2ef370b7716b39390736e181d2eaabd740e1d59d 65b8bf11e6a4625d6d2292711fdfdfdac23a5540 -- llvm/lib/Target/PowerPC/PPC.h llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp llvm/lib/Target/PowerPC/PPCISelLowering.cpp llvm/lib/Target/PowerPC/PPCInstrInfo.cpp llvm/lib/Target/PowerPC/PPCInstrInfo.h llvm/lib/Target/PowerPC/PPCMCInstLower.cpp llvm/lib/Target/PowerPC/PPCPreEmitPeephole.cpp llvm/lib/Target/PowerPC/PPCTOCRegDeps.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp b/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
index f83d7bd1f72a..9de0a3821c12 100644
--- a/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
+++ b/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
@@ -2997,7 +2997,7 @@ PPCInstrInfo::getSerializableDirectMachineOperandTargetFlags() const {
{MO_GOT_TPREL_PCREL_FLAG, "ppc-got-tprel-pcrel"},
{MO_PIC_HA_FLAG, "ppc-ha, ppc-pic"},
{MO_PIC_LO_FLAG, "ppc-lo, ppc-pic"},
- };
+ };
return ArrayRef(TargetFlags);
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/69695
More information about the llvm-commits
mailing list