Coverage Report

Created: 2019-07-24 05:18

/Users/buildslave/jenkins/workspace/clang-stage2-coverage-R/llvm/tools/clang/include/clang/Basic/OpenCLImageTypes.def
Line
Count
Source
1
2.02k
//===-- OpenCLImageTypes.def - Metadata about BuiltinTypes ------*- C++ -*-===//
2
2.02k
//
3
2.02k
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
2.02k
// See https://llvm.org/LICENSE.txt for license information.
5
2.02k
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
2.02k
//
7
2.02k
//===----------------------------------------------------------------------===//
8
2.02k
//  This file extends builtin types database with OpenCL image singleton types.
9
2.02k
//  Custom code should define one of those three macros:
10
2.02k
//    GENERIC_IMAGE_TYPE(Type, Id) - a generic image with its Id without an
11
2.02k
//      access type
12
2.02k
//    IMAGE_TYPE(Type, Id, SingletonId, AccessType, CGSuffix) - an image type
13
2.02k
//      with given ID, singleton ID access type and a codegen suffix
14
2.02k
//    GENERIC_IMAGE_TYPE_EXT(Type, Id, Ext) - a generic image with its Id and
15
2.02k
//      required extension without an access type
16
2.02k
17
#ifdef GENERIC_IMAGE_TYPE
18
19
135M
#define IMAGE_READ_TYPE(Type, Id, Ext) GENERIC_IMAGE_TYPE(Type, Id)
20
#define IMAGE_WRITE_TYPE(Type, Id, Ext)
21
#define IMAGE_READ_WRITE_TYPE(Type, Id, Ext)
22
23
#elif defined(GENERIC_IMAGE_TYPE_EXT)
24
6.42k
#define IMAGE_READ_TYPE(Type, Id, Ext) GENERIC_IMAGE_TYPE_EXT(Type, Id##ROTy, Ext)
25
6.42k
#define IMAGE_WRITE_TYPE(Type, Id, Ext) GENERIC_IMAGE_TYPE_EXT(Type, Id##WOTy, Ext)
26
6.42k
#define IMAGE_READ_WRITE_TYPE(Type, Id, Ext) GENERIC_IMAGE_TYPE_EXT(Type, Id##RWTy, Ext)
27
28
#else
29
#ifndef IMAGE_READ_TYPE
30
#define IMAGE_READ_TYPE(Type, Id, Ext) \
31
153M
          IMAGE_TYPE(Type, Id##RO, Id##ROTy,  read_only, ro)
32
#endif
33
#ifndef IMAGE_WRITE_TYPE
34
#define IMAGE_WRITE_TYPE(Type, Id, Ext) \
35
153M
          IMAGE_TYPE(Type, Id##WO, Id##WOTy, write_only, wo)
36
#endif
37
#ifndef IMAGE_READ_WRITE_TYPE
38
#define IMAGE_READ_WRITE_TYPE(Type, Id, Ext) \
39
153M
          IMAGE_TYPE(Type, Id##RW, Id##RWTy, read_write, rw)
40
#endif
41
42
#endif
43
44
24.0M
IMAGE_READ_TYPE(image1d, OCLImage1d, "")
45
24.0M
IMAGE_READ_TYPE(image1d_array, OCLImage1dArray, "")
46
24.0M
IMAGE_READ_TYPE(image1d_buffer, OCLImage1dBuffer, "")
47
24.0M
IMAGE_READ_TYPE(image2d, OCLImage2d, "")
48
24.0M
IMAGE_READ_TYPE(image2d_array, OCLImage2dArray, "")
49
24.0M
IMAGE_READ_TYPE(image2d_depth, OCLImage2dDepth, "")
50
24.0M
IMAGE_READ_TYPE(image2d_array_depth, OCLImage2dArrayDepth, "")
51
24.0M
IMAGE_READ_TYPE(image2d_msaa, OCLImage2dMSAA, "cl_khr_gl_msaa_sharing")
52
24.0M
IMAGE_READ_TYPE(image2d_array_msaa, OCLImage2dArrayMSAA, "cl_khr_gl_msaa_sharing")
53
24.0M
IMAGE_READ_TYPE(image2d_msaa_depth, OCLImage2dMSAADepth, "cl_khr_gl_msaa_sharing")
54
24.0M
IMAGE_READ_TYPE(image2d_array_msaa_depth, OCLImage2dArrayMSAADepth, "cl_khr_gl_msaa_sharing")
55
24.0M
IMAGE_READ_TYPE(image3d, OCLImage3d, "")
56
6.08M
57
12.7M
IMAGE_WRITE_TYPE(image1d, OCLImage1d, "")
58
12.7M
IMAGE_WRITE_TYPE(image1d_array, OCLImage1dArray, "")
59
12.7M
IMAGE_WRITE_TYPE(image1d_buffer, OCLImage1dBuffer, "")
60
12.7M
IMAGE_WRITE_TYPE(image2d, OCLImage2d, "")
61
12.7M
IMAGE_WRITE_TYPE(image2d_array, OCLImage2dArray, "")
62
12.7M
IMAGE_WRITE_TYPE(image2d_depth, OCLImage2dDepth, "")
63
12.7M
IMAGE_WRITE_TYPE(image2d_array_depth, OCLImage2dArrayDepth, "")
64
12.7M
IMAGE_WRITE_TYPE(image2d_msaa, OCLImage2dMSAA, "cl_khr_gl_msaa_sharing")
65
12.7M
IMAGE_WRITE_TYPE(image2d_array_msaa, OCLImage2dArrayMSAA, "cl_khr_gl_msaa_sharing")
66
12.7M
IMAGE_WRITE_TYPE(image2d_msaa_depth, OCLImage2dMSAADepth, "cl_khr_gl_msaa_sharing")
67
12.7M
IMAGE_WRITE_TYPE(image2d_array_msaa_depth, OCLImage2dArrayMSAADepth, "cl_khr_gl_msaa_sharing")
68
12.7M
IMAGE_WRITE_TYPE(image3d, OCLImage3d, "cl_khr_3d_image_writes")
69
6.08M
70
12.7M
IMAGE_READ_WRITE_TYPE(image1d, OCLImage1d, "")
71
12.7M
IMAGE_READ_WRITE_TYPE(image1d_array, OCLImage1dArray, "")
72
12.7M
IMAGE_READ_WRITE_TYPE(image1d_buffer, OCLImage1dBuffer, "")
73
12.7M
IMAGE_READ_WRITE_TYPE(image2d, OCLImage2d, "")
74
12.7M
IMAGE_READ_WRITE_TYPE(image2d_array, OCLImage2dArray, "")
75
12.7M
IMAGE_READ_WRITE_TYPE(image2d_depth, OCLImage2dDepth, "")
76
12.7M
IMAGE_READ_WRITE_TYPE(image2d_array_depth, OCLImage2dArrayDepth, "")
77
12.7M
IMAGE_READ_WRITE_TYPE(image2d_msaa, OCLImage2dMSAA, "cl_khr_gl_msaa_sharing")
78
12.7M
IMAGE_READ_WRITE_TYPE(image2d_array_msaa, OCLImage2dArrayMSAA, "cl_khr_gl_msaa_sharing")
79
12.7M
IMAGE_READ_WRITE_TYPE(image2d_msaa_depth, OCLImage2dMSAADepth, "cl_khr_gl_msaa_sharing")
80
12.7M
IMAGE_READ_WRITE_TYPE(image2d_array_msaa_depth, OCLImage2dArrayMSAADepth, "cl_khr_gl_msaa_sharing")
81
12.7M
IMAGE_READ_WRITE_TYPE(image3d, OCLImage3d, "")
82
6.08M
83
6.08M
#undef IMAGE_TYPE
84
6.08M
#undef GENERIC_IMAGE_TYPE
85
6.08M
#undef IMAGE_READ_TYPE
86
6.08M
#undef IMAGE_WRITE_TYPE
87
6.08M
#undef IMAGE_READ_WRITE_TYPE