[PATCH] D90822: [X86] use macros to split GFNI intrinsics into different kinds

Pengfei Wang via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 4 23:44:03 PST 2020


pengfei added a comment.

In D90822#2375445 <https://reviews.llvm.org/D90822#2375445>, @craig.topper wrote:

> In D90822#2375425 <https://reviews.llvm.org/D90822#2375425>, @pengfei wrote:
>
>> In D90822#2375423 <https://reviews.llvm.org/D90822#2375423>, @pengfei wrote:
>>
>>> Craig's method sounds good.
>>
>> I think it may result in potential problem once we change the order of them in immintrin.h, it should be better to use the first method.
>>
>>   #if !(defined(_MSC_VER) || defined(SCE)) || __has_feature(modules) || \
>>       (defined(__AVX512VL__)  && define(__AVX512BW__))
>
> But if the order changes then the code won't compile because _m512i or some other type won't be defined.

I was thinking we may lose the chance to know we change them in wrong order. But it should be OK since we have intrinsic tests. So I agree with you.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D90822/new/

https://reviews.llvm.org/D90822



More information about the cfe-commits mailing list