[clang] [llvm] [AArch64][TargetParser] move CPUInfo into tablegen [NFC] (PR #92145)
via cfe-commits
cfe-commits at lists.llvm.org
Fri May 17 10:05:02 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 ee54c86ef70d7809e7d67cd44de2d3153b31c46e 51701f25e30aea995a8a38127f0e80cb37e85f8d -- clang/lib/Basic/Targets/AArch64.cpp clang/lib/Driver/ToolChains/Arch/AArch64.cpp clang/test/CodeGen/aarch64-targetattr.c clang/test/Misc/target-invalid-cpu-note.c clang/test/Preprocessor/aarch64-target-features.c llvm/include/llvm/TargetParser/AArch64TargetParser.h llvm/lib/TargetParser/AArch64TargetParser.cpp llvm/unittests/TargetParser/TargetParserTest.cpp llvm/utils/TableGen/ARMTargetDefEmitter.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/utils/TableGen/ARMTargetDefEmitter.cpp b/llvm/utils/TableGen/ARMTargetDefEmitter.cpp
index 3f4b960dda..2eca57a796 100644
--- a/llvm/utils/TableGen/ARMTargetDefEmitter.cpp
+++ b/llvm/utils/TableGen/ARMTargetDefEmitter.cpp
@@ -72,7 +72,7 @@ static void EmitARMTargetDef(RecordKeeper &RK, raw_ostream &OS) {
OS << "\n#undef ARM_ARCHITECTURE\n\n";
// Currently only AArch64 (not ARM) is handled beyond this point.
- if(!RK.getClass("Architecture64"))
+ if (!RK.getClass("Architecture64"))
return;
// Emit the ArchExtKind enum
``````````
</details>
https://github.com/llvm/llvm-project/pull/92145
More information about the cfe-commits
mailing list