diff --git a/clang/lib/Sema/OpenCLBuiltins.td b/clang/lib/Sema/OpenCLBuiltins.td index 4ccb6b5fd49d14..8764098482466c 100644 --- a/clang/lib/Sema/OpenCLBuiltins.td +++ b/clang/lib/Sema/OpenCLBuiltins.td @@ -742,17 +742,17 @@ let MaxVersion = CL20 in { def : Builtin, Size, PointerType, AS>]>; } foreach name = ["vstore" # VSize] in { - def : Builtin, Size, PointerType, AS>]>; - def : Builtin, Size, PointerType, AS>]>; - def : Builtin, Size, PointerType, AS>]>; - def : Builtin, Size, PointerType, AS>]>; - def : Builtin, Size, PointerType, AS>]>; - def : Builtin, Size, PointerType, AS>]>; - def : Builtin, Size, PointerType, AS>]>; - def : Builtin, Size, PointerType, AS>]>; - def : Builtin, Size, PointerType, AS>]>; - def : Builtin, Size, PointerType, AS>]>; - def : Builtin, Size, PointerType, AS>]>; + def : Builtin, Size, PointerType]>; + def : Builtin, Size, PointerType]>; + def : Builtin, Size, PointerType]>; + def : Builtin, Size, PointerType]>; + def : Builtin, Size, PointerType]>; + def : Builtin, Size, PointerType]>; + def : Builtin, Size, PointerType]>; + def : Builtin, Size, PointerType]>; + def : Builtin, Size, PointerType]>; + def : Builtin, Size, PointerType]>; + def : Builtin, Size, PointerType]>; } foreach name = ["vloada_half" # VSize] in { def : Builtin, Size, PointerType, AS>]>; @@ -784,17 +784,17 @@ let MinVersion = CL20 in { def : Builtin, Size, PointerType, GenericAS>]>; } foreach name = ["vstore" # VSize] in { - def : Builtin, Size, PointerType, GenericAS>]>; - def : Builtin, Size, PointerType, GenericAS>]>; - def : Builtin, Size, PointerType, GenericAS>]>; - def : Builtin, Size, PointerType, GenericAS>]>; - def : Builtin, Size, PointerType, GenericAS>]>; - def : Builtin, Size, PointerType, GenericAS>]>; - def : Builtin, Size, PointerType, GenericAS>]>; - def : Builtin, Size, PointerType, GenericAS>]>; - def : Builtin, Size, PointerType, GenericAS>]>; - def : Builtin, Size, PointerType, GenericAS>]>; - def : Builtin, Size, PointerType, GenericAS>]>; + def : Builtin, Size, PointerType]>; + def : Builtin, Size, PointerType]>; + def : Builtin, Size, PointerType]>; + def : Builtin, Size, PointerType]>; + def : Builtin, Size, PointerType]>; + def : Builtin, Size, PointerType]>; + def : Builtin, Size, PointerType]>; + def : Builtin, Size, PointerType]>; + def : Builtin, Size, PointerType]>; + def : Builtin, Size, PointerType]>; + def : Builtin, Size, PointerType]>; } foreach name = ["vloada_half" # VSize] in { def : Builtin, Size, PointerType, GenericAS>]>; @@ -825,24 +825,21 @@ foreach VSize = [2, 3, 4, 8, 16] in { foreach name = ["vloada_half" # VSize] in { def : Builtin, Size, PointerType, ConstantAS>]>; } - foreach rnd = ["", "_rte", "_rtz", "_rtp", "_rtn"] in { - foreach name = ["vstorea_half" # VSize # rnd] in { - def : Builtin, Size, PointerType]>; - def : Builtin, Size, PointerType]>; - } - } } let MaxVersion = CL20 in { foreach AS = [GlobalAS, LocalAS, PrivateAS] in { def : Builtin<"vload_half", [Float, Size, PointerType, AS>]>; + def : Builtin<"vloada_half", [Float, Size, PointerType, AS>]>; foreach VSize = [2, 3, 4, 8, 16] in { foreach name = ["vload_half" # VSize] in { def : Builtin, Size, PointerType, AS>]>; } } foreach rnd = ["", "_rte", "_rtz", "_rtp", "_rtn"] in { - def : Builtin<"vstore_half" # rnd, [Void, Float, Size, PointerType]>; - def : Builtin<"vstore_half" # rnd, [Void, Double, Size, PointerType]>; + foreach name = ["vstore_half" # rnd, "vstorea_half" # rnd] in { + def : Builtin]>; + def : Builtin]>; + } foreach VSize = [2, 3, 4, 8, 16] in { foreach name = ["vstore_half" # VSize # rnd] in { def : Builtin, Size, PointerType]>; @@ -855,14 +852,17 @@ let MaxVersion = CL20 in { let MinVersion = CL20 in { foreach AS = [GenericAS] in { def : Builtin<"vload_half", [Float, Size, PointerType, AS>]>; + def : Builtin<"vloada_half", [Float, Size, PointerType, AS>]>; foreach VSize = [2, 3, 4, 8, 16] in { foreach name = ["vload_half" # VSize] in { def : Builtin, Size, PointerType, AS>]>; } } foreach rnd = ["", "_rte", "_rtz", "_rtp", "_rtn"] in { - def : Builtin<"vstore_half" # rnd, [Void, Float, Size, PointerType]>; - def : Builtin<"vstore_half" # rnd, [Void, Double, Size, PointerType]>; + foreach name = ["vstore_half" # rnd, "vstorea_half" # rnd] in { + def : Builtin]>; + def : Builtin]>; + } foreach VSize = [2, 3, 4, 8, 16] in { foreach name = ["vstore_half" # VSize # rnd] in { def : Builtin, Size, PointerType]>; @@ -875,6 +875,7 @@ let MinVersion = CL20 in { foreach AS = [ConstantAS] in { def : Builtin<"vload_half", [Float, Size, PointerType, AS>]>; + def : Builtin<"vloada_half", [Float, Size, PointerType, AS>]>; foreach VSize = [2, 3, 4, 8, 16] in { foreach name = ["vload_half" # VSize] in { def : Builtin, Size, PointerType, AS>]>;