diff --git a/clang/lib/Sema/OpenCLBuiltins.td b/clang/lib/Sema/OpenCLBuiltins.td --- a/clang/lib/Sema/OpenCLBuiltins.td +++ b/clang/lib/Sema/OpenCLBuiltins.td @@ -808,9 +808,6 @@ def : Builtin, Size, PointerType, AS>]>; def : Builtin, Size, PointerType, AS>]>; } - foreach name = ["vloada_half" # VSize] in { - def : Builtin, Size, PointerType, AS>]>; - } if defStores then { foreach name = ["vstore" # VSize] in { def : Builtin, Size, PointerType]>; @@ -825,12 +822,6 @@ def : Builtin, Size, PointerType]>; def : Builtin, Size, PointerType]>; } - foreach rnd = ["", "_rte", "_rtz", "_rtp", "_rtn"] in { - foreach name = ["vstorea_half" # VSize # rnd] in { - def : Builtin, Size, PointerType]>; - def : Builtin, Size, PointerType]>; - } - } } } } @@ -849,7 +840,7 @@ foreach AS = addrspaces in { def : Builtin<"vload_half", [Float, Size, PointerType, AS>]>; foreach VSize = [2, 3, 4, 8, 16] in { - foreach name = ["vload_half" # VSize] in { + foreach name = ["vload_half" # VSize, "vloada_half" # VSize] in { def : Builtin, Size, PointerType, AS>]>; } } @@ -860,7 +851,7 @@ def : Builtin]>; } foreach VSize = [2, 3, 4, 8, 16] in { - foreach name = ["vstore_half" # VSize # rnd] in { + foreach name = ["vstore_half" # VSize # rnd, "vstorea_half" # VSize # rnd] in { def : Builtin, Size, PointerType]>; def : Builtin, Size, PointerType]>; }