[PATCH] D22181: Add runtime support for __cpu_model (__builtin_cpu_supports)

Alina Sbirlea via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 8 16:51:27 PDT 2016

asbirlea created this revision.
asbirlea added reviewers: llvm-commits, joerg, echristo, mehdi_amini.
Herald added a subscriber: mehdi_amini.

    This aims to add support for __cpu_model and address Bug 25510. It uses
    the code from lib/Support/Host.cpp for cpu detection, and creates
    __cpu_model with that info.

    Tested on OSX and built on Linux as well (though libgcc is the default).
    The use of "asm" required -std=gnu99, hence the cmake change. Corrections
    on better addressing this are welcome.

    Previously reverted, up for review again to iron out outstanding issues.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: D22181.63356.patch
Type: text/x-patch
Size: 27195 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160708/bba1a0b0/attachment.bin>

More information about the llvm-commits mailing list