Author: Sven van Haastregt Date: 2020-03-12T13:43:51Z New Revision: 592cec7087d8ea60b7a517d4354eab8d5c7b012c
URL: https://github.com/llvm/llvm-project/commit/592cec7087d8ea60b7a517d4354eab8d5c7b012c DIFF: https://github.com/llvm/llvm-project/commit/592cec7087d8ea60b7a517d4354eab8d5c7b012c.diff LOG: [OpenCL] Add missing get_image_array_size builtins Added: Modified: clang/lib/Sema/OpenCLBuiltins.td Removed: ################################################################################ diff --git a/clang/lib/Sema/OpenCLBuiltins.td b/clang/lib/Sema/OpenCLBuiltins.td index e5109dfbb048..0d8764a567a4 100644 --- a/clang/lib/Sema/OpenCLBuiltins.td +++ b/clang/lib/Sema/OpenCLBuiltins.td @@ -1409,7 +1409,9 @@ let Extension = FuncExtKhrGlMsaaSharing in { } def : Builtin<"get_image_dim", [VectorType<Int, 2>, ImageType<imgTy, aQual>], Attr.Const>; } - def : Builtin<"get_image_array_size", [Size, ImageType<Image2dArrayMsaaDepth, aQual>], Attr.Const>; + foreach imgTy = [Image2dArrayMsaa, Image2dArrayMsaaDepth] in { + def : Builtin<"get_image_array_size", [Size, ImageType<imgTy, aQual>], Attr.Const>; + } } } _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits