[PATCH] D41096: [X86] Initial support for prefer-vector-width function attribute

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 13 08:05:30 PST 2017


spatel added a comment.

In https://reviews.llvm.org/D41096#953922, @craig.topper wrote:

> How/where do you propose detecting the presence or absense of 512-bit instructions to change the CPU name?


I think the path through clang's CodeGenFunction::checkTargetFeatures() is where we tell the user if they've used an intrinsic without the required CPU attribute. So somewhere around there might work?


https://reviews.llvm.org/D41096





More information about the llvm-commits mailing list