summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven van Haastregt <sven.vanhaastregt@arm.com>2019-09-17 13:32:56 +0000
committerSven van Haastregt <sven.vanhaastregt@arm.com>2019-09-17 13:32:56 +0000
commit47e95ff8133f2f24ea0aa5c4b0dc7e2b89cd11b7 (patch)
tree76978ca013705662bfaffc57ba0be0d9124dd7d5
parentf12a3da5a7aea556e326f50163c961c1ad5a4aa9 (diff)
downloadbcm5719-llvm-47e95ff8133f2f24ea0aa5c4b0dc7e2b89cd11b7.tar.gz
bcm5719-llvm-47e95ff8133f2f24ea0aa5c4b0dc7e2b89cd11b7.zip
[OpenCL] Tidy up some comments; NFC
llvm-svn: 372119
-rw-r--r--clang/lib/Sema/OpenCLBuiltins.td14
1 files changed, 4 insertions, 10 deletions
diff --git a/clang/lib/Sema/OpenCLBuiltins.td b/clang/lib/Sema/OpenCLBuiltins.td
index 5da67e339da..8305102f96c 100644
--- a/clang/lib/Sema/OpenCLBuiltins.td
+++ b/clang/lib/Sema/OpenCLBuiltins.td
@@ -61,10 +61,8 @@ class IntList<string _Name, list<int> _List> {
// OpenCL C classes for types
//===----------------------------------------------------------------------===//
// OpenCL C basic data types (int, float, image2d_t, ...).
-// Its Child classes can represent concrete types (e.g.: VectorType) or
-// custom types (e.g.: GenType).
-// Instances of these child classes should be used in Builtin function
-// arguments. See the definition of the "read_imagef" function as example.
+// Its child classes can represent concrete types (e.g. VectorType) or
+// abstract types (e.g. GenType).
class Type<string _Name, QualType _QTName> {
// Name of the Type.
string Name = _Name;
@@ -150,12 +148,8 @@ class TypeList<string _Name, list<Type> _Type> {
// A GenericType is an abstract type that defines a set of types as a
// combination of Types and vector sizes.
//
-// E.g.: If TypeList = <int, float> and VectorList = <1, 2, 4>, then it
-// represents <int, int2, int4, float, float2, float4>.
-// _Ty : Name of the GenType.
-// _TypeList : List of basic data Types.
-// _VectorList : Sizes of the vector for each type of the _TypeList, 1 being a
-// scalar.
+// For example, if TypeList = <int, float> and VectorList = <1, 2, 4>, then it
+// represents <int, int2, int4, float, float2, float4>.
//
// Some rules apply when using multiple GenericType arguments in a declaration:
// 1. The number of vector sizes must be equal or 1 for all gentypes in a
OpenPOWER on IntegriCloud