Skip to content

Commit de0f621

Browse files
authored
[X86] Merge matching XOP Features/Attributes blocks. NFC. (llvm#155999)
Minor cleanup to help when I begin splitting off constexpr capable builtins
1 parent 5e97338 commit de0f621

File tree

1 file changed

+3
-16
lines changed

1 file changed

+3
-16
lines changed

clang/include/clang/Basic/BuiltinsX86.td

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -872,8 +872,7 @@ let Features = "fma|fma4", Attributes = [NoThrow, Const, RequiredVectorWidth<128
872872
def vfmaddsubpd : X86Builtin<"_Vector<2, double>(_Vector<2, double>, _Vector<2, double>, _Vector<2, double>)">;
873873
}
874874

875-
let Features = "fma|fma4",
876-
Attributes = [NoThrow, Const, RequiredVectorWidth<256>] in {
875+
let Features = "fma|fma4", Attributes = [NoThrow, Const, RequiredVectorWidth<256>] in {
877876
def vfmaddsubps256 : X86Builtin<"_Vector<8, float>(_Vector<8, float>, _Vector<8, float>, _Vector<8, float>)">;
878877
def vfmaddsubpd256 : X86Builtin<"_Vector<4, double>(_Vector<4, double>, _Vector<4, double>, _Vector<4, double>)">;
879878
}
@@ -947,28 +946,16 @@ let Features = "xop", Attributes = [NoThrow, Const, RequiredVectorWidth<128>] in
947946
def vpcomd : X86Builtin<"_Vector<4, int>(_Vector<4, int>, _Vector<4, int>, _Constant char)">;
948947
def vpcomq : X86Builtin<"_Vector<2, long long int>(_Vector<2, long long int>, _Vector<2, long long int>, _Constant char)">;
949948
def vpermil2pd : X86Builtin<"_Vector<2, double>(_Vector<2, double>, _Vector<2, double>, _Vector<2, long long int>, _Constant char)">;
950-
}
951-
952-
let Features = "xop", Attributes = [NoThrow, Const, RequiredVectorWidth<256>] in {
953-
def vpermil2pd256 : X86Builtin<"_Vector<4, double>(_Vector<4, double>, _Vector<4, double>, _Vector<4, long long int>, _Constant char)">;
954-
}
955-
956-
let Features = "xop", Attributes = [NoThrow, Const, RequiredVectorWidth<128>] in {
957949
def vpermil2ps : X86Builtin<"_Vector<4, float>(_Vector<4, float>, _Vector<4, float>, _Vector<4, int>, _Constant char)">;
958-
}
959-
960-
let Features = "xop", Attributes = [NoThrow, Const, RequiredVectorWidth<256>] in {
961-
def vpermil2ps256 : X86Builtin<"_Vector<8, float>(_Vector<8, float>, _Vector<8, float>, _Vector<8, int>, _Constant char)">;
962-
}
963-
964-
let Features = "xop", Attributes = [NoThrow, Const, RequiredVectorWidth<128>] in {
965950
def vfrczss : X86Builtin<"_Vector<4, float>(_Vector<4, float>)">;
966951
def vfrczsd : X86Builtin<"_Vector<2, double>(_Vector<2, double>)">;
967952
def vfrczps : X86Builtin<"_Vector<4, float>(_Vector<4, float>)">;
968953
def vfrczpd : X86Builtin<"_Vector<2, double>(_Vector<2, double>)">;
969954
}
970955

971956
let Features = "xop", Attributes = [NoThrow, Const, RequiredVectorWidth<256>] in {
957+
def vpermil2pd256 : X86Builtin<"_Vector<4, double>(_Vector<4, double>, _Vector<4, double>, _Vector<4, long long int>, _Constant char)">;
958+
def vpermil2ps256 : X86Builtin<"_Vector<8, float>(_Vector<8, float>, _Vector<8, float>, _Vector<8, int>, _Constant char)">;
972959
def vfrczps256 : X86Builtin<"_Vector<8, float>(_Vector<8, float>)">;
973960
def vfrczpd256 : X86Builtin<"_Vector<4, double>(_Vector<4, double>)">;
974961
}

0 commit comments

Comments
 (0)