Skip to content

Commit f764e71

Browse files
authored
[Clang][TableGen] Add missing __bf16 type to the builtins parser (#120662)
The Clang tablegen built-in function prototype parser has the `__bf16` type missing. This patch adds the missing type to the parser.
1 parent d01ae56 commit f764e71

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

clang/test/TableGen/target-builtins-prototype-parser.td

+6-1
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,12 @@ def : Builtin {
5757
let Spellings = ["__builtin_08"];
5858
}
5959

60+
def : Builtin {
61+
// CHECK: BUILTIN(__builtin_09, "V2yy", "")
62+
let Prototype = "_Vector<2, __bf16>(__bf16)";
63+
let Spellings = ["__builtin_09"];
64+
}
65+
6066
#ifdef ERROR_EXPECTED_LANES
6167
def : Builtin {
6268
// ERROR_EXPECTED_LANES: :[[# @LINE + 1]]:7: error: Expected number of lanes after '_ExtVector<'
@@ -112,4 +118,3 @@ def : Builtin {
112118
let Spellings = ["__builtin_test_use_clang_extended_vectors"];
113119
}
114120
#endif
115-

0 commit comments

Comments
 (0)