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 origin/main HEAD --extensions h,cpp,c --
clang/lib/Basic/Targets/X86.cpp clang/test/CodeGen/target-builtin-noerror.c
clang/test/Driver/x86-march.c clang/test/Frontend/x86-target-cpu.c
clang/test/Misc/target-invalid-cpu-note/x86.c
clang/test/Preprocessor/predefined-arch-macros.c
compiler-rt/lib/builtins/cpu_model/x86.c llvm/include/llvm/TargetParser/Host.h
llvm/include/llvm/TargetParser/X86TargetParser.h llvm/lib/TargetParser/Host.cpp
llvm/lib/TargetParser/X86TargetParser.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/compiler-rt/lib/builtins/cpu_model/x86.c
b/compiler-rt/lib/builtins/cpu_model/x86.c
index 44e056039..b0e1f0bdc 100644
--- a/compiler-rt/lib/builtins/cpu_model/x86.c
+++ b/compiler-rt/lib/builtins/cpu_model/x86.c
@@ -880,8 +880,8 @@ getAMDProcessorTypeAndSubtype(unsigned Family, unsigned
Model,
static const char *
getHygonProcessorTypeAndSubtype(unsigned Family, unsigned Model,
- const unsigned *Features,
- struct __processor_model *CpuModel) {
+ const unsigned *Features,
+ struct __processor_model *CpuModel) {
const char *CPU = 0;
enum ProcessorTypes Type = CPU_TYPE_MAX;
diff --git a/llvm/lib/TargetParser/Host.cpp b/llvm/lib/TargetParser/Host.cpp
index 2124b0e37..881c96358 100644
--- a/llvm/lib/TargetParser/Host.cpp
+++ b/llvm/lib/TargetParser/Host.cpp
@@ -1359,10 +1359,11 @@ static const char
*getAMDProcessorTypeAndSubtype(unsigned Family,
return CPU;
}
-static StringRef
-getHygonProcessorTypeAndSubtype(unsigned Family, unsigned Model,
- const unsigned *Features,
- unsigned *Type, unsigned *Subtype) {
+static StringRef getHygonProcessorTypeAndSubtype(unsigned Family,
+ unsigned Model,
+ const unsigned *Features,
+ unsigned *Type,
+ unsigned *Subtype) {
StringRef CPU;
switch (Family) {
@@ -1556,7 +1557,7 @@ StringRef sys::getHostCPUName() {
&Subtype);
} else if (Vendor == VendorSignatures::HYGON_GENUINE) {
CPU = getHygonProcessorTypeAndSubtype(Family, Model, Features, &Type,
- &Subtype);
+ &Subtype);
}
if (!CPU.empty())
diff --git a/llvm/lib/TargetParser/X86TargetParser.cpp
b/llvm/lib/TargetParser/X86TargetParser.cpp
index f2e18b8b8..676a98997 100644
--- a/llvm/lib/TargetParser/X86TargetParser.cpp
+++ b/llvm/lib/TargetParser/X86TargetParser.cpp
@@ -273,12 +273,13 @@ constexpr FeatureBitset FeaturesC86_4G_M4 =
static constexpr FeatureBitset FeaturesC86_4G_M6 = FeaturesC86_4G_M4;
-static constexpr FeatureBitset FeaturesC86_4G_M7 = FeaturesC86_4G_M4 |
- FeatureAVX512BF16 | FeatureAVX512BITALG | FeatureAVX512BW |
FeatureAVX512CD |
- FeatureAVX512DQ | FeatureAVX512F | FeatureAVX512IFMA | FeatureAVX512VBMI |
- FeatureAVX512VBMI2 | FeatureAVX512VL | FeatureAVX512VNNI |
- FeatureAVX512VPOPCNTDQ | FeatureCLWB | FeatureCMOV | FeatureGFNI |
- FeatureVAES | FeatureVPCLMULQDQ | FeatureWBNOINVD;
+static constexpr FeatureBitset FeaturesC86_4G_M7 =
+ FeaturesC86_4G_M4 | FeatureAVX512BF16 | FeatureAVX512BITALG |
+ FeatureAVX512BW | FeatureAVX512CD | FeatureAVX512DQ | FeatureAVX512F |
+ FeatureAVX512IFMA | FeatureAVX512VBMI | FeatureAVX512VBMI2 |
+ FeatureAVX512VL | FeatureAVX512VNNI | FeatureAVX512VPOPCNTDQ | FeatureCLWB
|
+ FeatureCMOV | FeatureGFNI | FeatureVAES | FeatureVPCLMULQDQ |
+ FeatureWBNOINVD;
// D151696 tranplanted Mangling and OnlyForCPUDispatchSpecific from
// X86TargetParser.def to here. They are assigned by following ways:
``````````
</details>
https://github.com/llvm/llvm-project/pull/187622
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits