[llvm] [AArch64] Migrate from SearchableTable to GenericTable/Enum. NFC (PR #121661)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Jan 4 11:45:25 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 c19e0d63b45f9c97157060c662396820ce2a1621 af731fe9770a22161a9887a5393bbcf3b054cc65 --extensions h,cpp -- llvm/lib/Target/AArch64/Utils/AArch64BaseInfo.cpp llvm/lib/Target/AArch64/Utils/AArch64BaseInfo.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/AArch64/Utils/AArch64BaseInfo.h b/llvm/lib/Target/AArch64/Utils/AArch64BaseInfo.h
index 8d0a1072cb..2176e7ca23 100644
--- a/llvm/lib/Target/AArch64/Utils/AArch64BaseInfo.h
+++ b/llvm/lib/Target/AArch64/Utils/AArch64BaseInfo.h
@@ -371,81 +371,81 @@ namespace AArch64SVCR {
struct SVCR : SysAlias{
using SysAlias::SysAlias;
};
- #define GET_SVCRValues_DECL
- #define GET_SVCRsList_DECL
- #include "AArch64GenSystemOperands.inc"
+#define GET_SVCRValues_DECL
+#define GET_SVCRsList_DECL
+#include "AArch64GenSystemOperands.inc"
}
namespace AArch64AT{
struct AT : SysAlias {
using SysAlias::SysAlias;
};
- #define GET_ATValues_DECL
- #define GET_ATsList_DECL
- #include "AArch64GenSystemOperands.inc"
+#define GET_ATValues_DECL
+#define GET_ATsList_DECL
+#include "AArch64GenSystemOperands.inc"
}
namespace AArch64DB {
struct DB : SysAlias {
using SysAlias::SysAlias;
};
- #define GET_DBValues_DECL
- #define GET_DBsList_DECL
- #include "AArch64GenSystemOperands.inc"
+#define GET_DBValues_DECL
+#define GET_DBsList_DECL
+#include "AArch64GenSystemOperands.inc"
}
namespace AArch64DBnXS {
struct DBnXS : SysAliasImm {
using SysAliasImm::SysAliasImm;
};
- #define GET_DBnXSValues_DECL
- #define GET_DBnXSsList_DECL
- #include "AArch64GenSystemOperands.inc"
+#define GET_DBnXSValues_DECL
+#define GET_DBnXSsList_DECL
+#include "AArch64GenSystemOperands.inc"
}
namespace AArch64DC {
struct DC : SysAlias {
using SysAlias::SysAlias;
};
- #define GET_DCValues_DECL
- #define GET_DCsList_DECL
- #include "AArch64GenSystemOperands.inc"
+#define GET_DCValues_DECL
+#define GET_DCsList_DECL
+#include "AArch64GenSystemOperands.inc"
}
namespace AArch64IC {
struct IC : SysAliasReg {
using SysAliasReg::SysAliasReg;
};
- #define GET_ICValues_DECL
- #define GET_ICsList_DECL
- #include "AArch64GenSystemOperands.inc"
+#define GET_ICValues_DECL
+#define GET_ICsList_DECL
+#include "AArch64GenSystemOperands.inc"
}
namespace AArch64ISB {
struct ISB : SysAlias {
using SysAlias::SysAlias;
};
- #define GET_ISBValues_DECL
- #define GET_ISBsList_DECL
- #include "AArch64GenSystemOperands.inc"
+#define GET_ISBValues_DECL
+#define GET_ISBsList_DECL
+#include "AArch64GenSystemOperands.inc"
}
namespace AArch64TSB {
struct TSB : SysAlias {
using SysAlias::SysAlias;
};
- #define GET_TSBValues_DECL
- #define GET_TSBsList_DECL
- #include "AArch64GenSystemOperands.inc"
+#define GET_TSBValues_DECL
+#define GET_TSBsList_DECL
+#include "AArch64GenSystemOperands.inc"
}
namespace AArch64PRFM {
struct PRFM : SysAlias {
using SysAlias::SysAlias;
};
- #define GET_PRFMValues_DECL
- #define GET_PRFMsList_DECL
- #include "AArch64GenSystemOperands.inc"
+#define GET_PRFMValues_DECL
+#define GET_PRFMsList_DECL
+#include "AArch64GenSystemOperands.inc"
}
namespace AArch64SVEPRFM {
@@ -578,25 +578,25 @@ namespace AArch64PState {
struct PStateImm0_15 : SysAlias{
using SysAlias::SysAlias;
};
- #define GET_PStateImm0_15Values_DECL
- #define GET_PStateImm0_15sList_DECL
- #include "AArch64GenSystemOperands.inc"
+#define GET_PStateImm0_15Values_DECL
+#define GET_PStateImm0_15sList_DECL
+#include "AArch64GenSystemOperands.inc"
struct PStateImm0_1 : SysAlias{
using SysAlias::SysAlias;
};
- #define GET_PStateImm0_1Values_DECL
- #define GET_PStateImm0_1sList_DECL
- #include "AArch64GenSystemOperands.inc"
+#define GET_PStateImm0_1Values_DECL
+#define GET_PStateImm0_1sList_DECL
+#include "AArch64GenSystemOperands.inc"
}
namespace AArch64PSBHint {
struct PSB : SysAlias {
using SysAlias::SysAlias;
};
- #define GET_PSBValues_DECL
- #define GET_PSBsList_DECL
- #include "AArch64GenSystemOperands.inc"
+#define GET_PSBValues_DECL
+#define GET_PSBsList_DECL
+#include "AArch64GenSystemOperands.inc"
}
namespace AArch64PHint {
@@ -624,9 +624,9 @@ namespace AArch64BTIHint {
struct BTI : SysAlias {
using SysAlias::SysAlias;
};
- #define GET_BTIValues_DECL
- #define GET_BTIsList_DECL
- #include "AArch64GenSystemOperands.inc"
+#define GET_BTIValues_DECL
+#define GET_BTIsList_DECL
+#include "AArch64GenSystemOperands.inc"
}
namespace AArch64SME {
@@ -732,9 +732,9 @@ namespace AArch64SysReg {
}
};
- #define GET_SysRegsList_DECL
- #define GET_SysRegValues_DECL
- #include "AArch64GenSystemOperands.inc"
+#define GET_SysRegsList_DECL
+#define GET_SysRegValues_DECL
+#include "AArch64GenSystemOperands.inc"
const SysReg *lookupSysRegByName(StringRef);
const SysReg *lookupSysRegByEncoding(uint16_t);
``````````
</details>
https://github.com/llvm/llvm-project/pull/121661
More information about the llvm-commits
mailing list