[cfe-dev] Interaction of target attribute change with modules.

Richard Smith richard at metafoo.co.uk
Tue Jun 23 13:35:01 PDT 2015

On Mon, Jun 22, 2015 at 6:05 PM, Sean Silva <chisophugis at gmail.com> wrote:

> Hi All,
> With the change to use target attributes in the builtin headers, we are
> now in a weird situation where all of the `requires` inside
> lib/Headers/module.modulemap are basically useless. They are included
> regardless of the status of their `requires`. My pending patch
> http://reviews.llvm.org/D10423 then causes a build failure because we try
> to import unavailable modules; without it, we just textually include them
> which causes the declarations to appear to be owned by different modules
> than expected.
> Any ideas? It seems like to keep semantic parity with the "all intrinsic
> headers can be brought in" when textually including, we should remove the
> `requires`.

We should keep the 'requires x86' on _Builtin_intrinsics.intel, but remove
all the subtarget 'requires' declarations from its submodules.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20150623/13c74af9/attachment.html>

More information about the cfe-dev mailing list