[llvm] [ARM][AArch64] autogenerate header file for TargetParser from Target tablegen files (PR #88378)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 11 03:45:59 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 5ae9ffbd18fd93edbbc8efebe140aeb24cd763c2 3201b36560fdf01b3706d9b248aefc5c1a12bea0 -- llvm/utils/TableGen/ARMTargetDefEmitter.cpp llvm/lib/Target/AArch64/AArch64Subtarget.h llvm/lib/Target/ARM/ARMSubtarget.cpp llvm/lib/Target/ARM/ARMSubtarget.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/AArch64/AArch64Subtarget.h b/llvm/lib/Target/AArch64/AArch64Subtarget.h
index 8ff5f9076f..9cf1bed83d 100644
--- a/llvm/lib/Target/AArch64/AArch64Subtarget.h
+++ b/llvm/lib/Target/AArch64/AArch64Subtarget.h
@@ -39,9 +39,9 @@ class AArch64Subtarget final : public AArch64GenSubtargetInfo {
public:
enum ARMProcFamilyEnum : uint8_t {
Others,
- #define ARM_PROCESSOR_FAMILY(ENUM) ENUM,
- #include "llvm/TargetParser/AArch64TargetParserDef.inc"
- #undef ARM_PROCESSOR_FAMILY
+#define ARM_PROCESSOR_FAMILY(ENUM) ENUM,
+#include "llvm/TargetParser/AArch64TargetParserDef.inc"
+#undef ARM_PROCESSOR_FAMILY
};
protected:
diff --git a/llvm/lib/Target/ARM/ARMSubtarget.h b/llvm/lib/Target/ARM/ARMSubtarget.h
index 3c07c91b9b..00239ff94b 100644
--- a/llvm/lib/Target/ARM/ARMSubtarget.h
+++ b/llvm/lib/Target/ARM/ARMSubtarget.h
@@ -49,9 +49,9 @@ class ARMSubtarget : public ARMGenSubtargetInfo {
protected:
enum ARMProcFamilyEnum {
Others,
- #define ARM_PROCESSOR_FAMILY(ENUM) ENUM,
- #include "llvm/TargetParser/ARMTargetParserDef.inc"
- #undef ARM_PROCESSOR_FAMILY
+#define ARM_PROCESSOR_FAMILY(ENUM) ENUM,
+#include "llvm/TargetParser/ARMTargetParserDef.inc"
+#undef ARM_PROCESSOR_FAMILY
};
enum ARMProcClassEnum {
None,
@@ -61,9 +61,9 @@ protected:
RClass
};
enum ARMArchEnum {
- #define ARM_ARCHITECTURE(ENUM) ENUM,
- #include "llvm/TargetParser/ARMTargetParserDef.inc"
- #undef ARM_ARCHITECTURE
+#define ARM_ARCHITECTURE(ENUM) ENUM,
+#include "llvm/TargetParser/ARMTargetParserDef.inc"
+#undef ARM_ARCHITECTURE
};
public:
``````````
</details>
https://github.com/llvm/llvm-project/pull/88378
More information about the llvm-commits
mailing list