Skip to content

Commit 745a2a5

Browse files
authored
[X86] Merge matching AVX512 rotate Features/Attributes blocks. NFC. (#156001)
Minor cleanup to help when I begin splitting off constexpr capable builtins
1 parent 71cae12 commit 745a2a5

File tree

1 file changed

+6
-27
lines changed

1 file changed

+6
-27
lines changed

clang/include/clang/Basic/BuiltinsX86.td

Lines changed: 6 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -2038,43 +2038,22 @@ let Features = "avx512dq,evex512", Attributes = [NoThrow, Const, RequiredVectorW
20382038

20392039
let Features = "avx512f,evex512", Attributes = [NoThrow, Const, RequiredVectorWidth<512>] in {
20402040
def prold512 : X86Builtin<"_Vector<16, int>(_Vector<16, int>, _Constant int)">;
2041-
def prolq512 : X86Builtin<"_Vector<8, long long int>(_Vector<8, long long int>, _Constant int)">;
2042-
}
2043-
2044-
let Features = "avx512vl", Attributes = [NoThrow, Const, RequiredVectorWidth<128>] in {
2045-
def prold128 : X86Builtin<"_Vector<4, int>(_Vector<4, int>, _Constant int)">;
2046-
}
2047-
2048-
let Features = "avx512vl", Attributes = [NoThrow, Const, RequiredVectorWidth<256>] in {
2049-
def prold256 : X86Builtin<"_Vector<8, int>(_Vector<8, int>, _Constant int)">;
2050-
}
2051-
2052-
let Features = "avx512vl", Attributes = [NoThrow, Const, RequiredVectorWidth<128>] in {
2053-
def prolq128 : X86Builtin<"_Vector<2, long long int>(_Vector<2, long long int>, _Constant int)">;
2054-
}
2055-
2056-
let Features = "avx512vl", Attributes = [NoThrow, Const, RequiredVectorWidth<256>] in {
2057-
def prolq256 : X86Builtin<"_Vector<4, long long int>(_Vector<4, long long int>, _Constant int)">;
2058-
}
2059-
2060-
let Features = "avx512f,evex512", Attributes = [NoThrow, Const, RequiredVectorWidth<512>] in {
20612041
def prord512 : X86Builtin<"_Vector<16, int>(_Vector<16, int>, _Constant int)">;
2042+
def prolq512 : X86Builtin<"_Vector<8, long long int>(_Vector<8, long long int>, _Constant int)">;
20622043
def prorq512 : X86Builtin<"_Vector<8, long long int>(_Vector<8, long long int>, _Constant int)">;
20632044
}
20642045

20652046
let Features = "avx512vl", Attributes = [NoThrow, Const, RequiredVectorWidth<128>] in {
2047+
def prold128 : X86Builtin<"_Vector<4, int>(_Vector<4, int>, _Constant int)">;
20662048
def prord128 : X86Builtin<"_Vector<4, int>(_Vector<4, int>, _Constant int)">;
2067-
}
2068-
2069-
let Features = "avx512vl", Attributes = [NoThrow, Const, RequiredVectorWidth<256>] in {
2070-
def prord256 : X86Builtin<"_Vector<8, int>(_Vector<8, int>, _Constant int)">;
2071-
}
2072-
2073-
let Features = "avx512vl", Attributes = [NoThrow, Const, RequiredVectorWidth<128>] in {
2049+
def prolq128 : X86Builtin<"_Vector<2, long long int>(_Vector<2, long long int>, _Constant int)">;
20742050
def prorq128 : X86Builtin<"_Vector<2, long long int>(_Vector<2, long long int>, _Constant int)">;
20752051
}
20762052

20772053
let Features = "avx512vl", Attributes = [NoThrow, Const, RequiredVectorWidth<256>] in {
2054+
def prold256 : X86Builtin<"_Vector<8, int>(_Vector<8, int>, _Constant int)">;
2055+
def prord256 : X86Builtin<"_Vector<8, int>(_Vector<8, int>, _Constant int)">;
2056+
def prolq256 : X86Builtin<"_Vector<4, long long int>(_Vector<4, long long int>, _Constant int)">;
20782057
def prorq256 : X86Builtin<"_Vector<4, long long int>(_Vector<4, long long int>, _Constant int)">;
20792058
}
20802059

0 commit comments

Comments
 (0)