Anastasia added a comment.
In https://reviews.llvm.org/D51544#1230264, @asavonic wrote:
> In https://reviews.llvm.org/D51544#1229105, @Anastasia wrote:
>
> > > With this setup, we can compile opencl-c-common.h, opencl-c-fp16.h and
> > > opencl-c-fp64.h into PCHs with one set of extensions/OpenCL
asavonic added a comment.
In https://reviews.llvm.org/D51544#1229105, @Anastasia wrote:
> > With this setup, we can compile opencl-c-common.h, opencl-c-fp16.h and
> > opencl-c-fp64.h into PCHs with one set of extensions/OpenCL version,
> > and use them for any other set of extensions/OpenCL ver
Anastasia added a comment.
> With this setup, we can compile opencl-c-common.h, opencl-c-fp16.h and
> opencl-c-fp64.h into PCHs with one set of extensions/OpenCL version,
> and use them for any other set of extensions/OpenCL version. Clang
> will detect this and throw out an error, which can be
Anastasia added a comment.
In https://reviews.llvm.org/D51544#1227336, @asavonic wrote:
> In https://reviews.llvm.org/D51544#1227313, @Anastasia wrote:
>
> > Currently the main header still contains everything, so the size of the PCH
> > won't change.
>
>
> The idea is that we don't pre-compile
asavonic added a comment.
In https://reviews.llvm.org/D51544#1227313, @Anastasia wrote:
> Currently the main header still contains everything, so the size of the PCH
> won't change.
The idea is that we don't pre-compile the whole opencl-c.h, we split
it into several headers (3 of them are targ
Anastasia added a comment.
In https://reviews.llvm.org/D51544#1224780, @asavonic wrote:
> In https://reviews.llvm.org/D51544#1224730, @Anastasia wrote:
>
> > It seems generally good to partition this big header but I am trying to
> > understand what problem is it trying to solve now?
>
>
> Main
asavonic added a comment.
In https://reviews.llvm.org/D51544#1224730, @Anastasia wrote:
> It seems generally good to partition this big header but I am trying to
> understand what problem is it trying to solve now?
Main motivation is to reduce memory footprint by factoring out everything that
Anastasia added a comment.
It seems generally good to partition this big header but I am trying to
understand what problem is it trying to solve now? The unsupported declarations
are guarded out by `#if defined(ext_name)` and therefore won't be parsed and
put into PCH is extensions are not supp
svenvh added inline comments.
Comment at: lib/Headers/opencl-c-common.h:9
+//===--===//
+
+#ifndef __OPENCL_C_COMMON_H__
Would it be worth having a brief explanation here about what is supposed t
asavonic created this revision.
asavonic added reviewers: Anastasia, yaxunl, bader.
Herald added subscribers: cfe-commits, jfb, mgorny.
TL;DR
-
This patch splits huge opencl-c.h header into multiple headers to
support efficient use of Precompiled Headers (or Modules):
- opencl-c-defs.h conta
10 matches
Mail list logo