summaryrefslogtreecommitdiffstats
path: root/clang/lib/Headers/module.modulemap
diff options
context:
space:
mode:
authorSven van Haastregt <sven.vanhaastregt@arm.com>2019-06-19 12:48:22 +0000
committerSven van Haastregt <sven.vanhaastregt@arm.com>2019-06-19 12:48:22 +0000
commitaf1c230e70aeb72ec9d6363f8d91e3c7db3ef9f2 (patch)
tree28a994823d7abea31c5d75ae0600b9606a0946fe /clang/lib/Headers/module.modulemap
parent9eed5d2f78d933e6cf73d389bdd884d72d97f11d (diff)
downloadbcm5719-llvm-af1c230e70aeb72ec9d6363f8d91e3c7db3ef9f2.tar.gz
bcm5719-llvm-af1c230e70aeb72ec9d6363f8d91e3c7db3ef9f2.zip
[OpenCL] Split type and macro definitions into opencl-c-base.h
Using the -fdeclare-opencl-builtins option will require a way to predefine types and macros such as `int4`, `CLK_GLOBAL_MEM_FENCE`, etc. Move these out of opencl-c.h into opencl-c-base.h such that the latter can be shared by -fdeclare-opencl-builtins and -finclude-default-header. This changes the behaviour of -finclude-default-header when -fdeclare-opencl-builtins is specified: instead of including the full header, it will include the header with only the base definitions. Differential revision: https://reviews.llvm.org/D63256 llvm-svn: 363794
Diffstat (limited to 'clang/lib/Headers/module.modulemap')
-rw-r--r--clang/lib/Headers/module.modulemap1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Headers/module.modulemap b/clang/lib/Headers/module.modulemap
index fbd3b3390c9..7954a77a412 100644
--- a/clang/lib/Headers/module.modulemap
+++ b/clang/lib/Headers/module.modulemap
@@ -154,4 +154,5 @@ module _Builtin_stddef_max_align_t [system] [extern_c] {
module opencl_c {
requires opencl
header "opencl-c.h"
+ header "opencl-c-base.h"
}
OpenPOWER on IntegriCloud