[cfe-dev] [PROPOSAL] Reintroduce guards for Intel intrinsic headers

Eric Christopher echristo at gmail.com
Thu Jul 30 11:19:54 PDT 2015


On Thu, Jul 30, 2015 at 11:04 AM Reid Kleckner <rnk at google.com> wrote:

> On Thu, Jul 30, 2015 at 10:33 AM, Eric Christopher <echristo at gmail.com>
> wrote:
>>
>> What kind of file is this? Keep in mind that things in the global
>> namespace prefixed with an underscore is a reserved name for implementers
>> as well. That would make this code not standards compliant as well.
>>
>
> The actual C++ rules are that any name with double underscores is
> reserved, and names beginning with an underscore followed by a capital
> letter. So, the Intel intrinsics are *not* in the implementer's namespace,
> but that was probably a mistake.
>

I was pretty sure that what you're quoting is in any namespace, but in the
global namespace it's what I said? I'd have to double check.


>
> I'm sympathetic to users who are probably implementing a compatibility
> layer here and don't want to write their own intrinsic wrappers, but I
> think the right tradeoff is probably to fix the code.
>

Agreed here.

-eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20150730/5800c742/attachment.html>


More information about the cfe-dev mailing list