[LLVMdev] Changing target features from C++
Chris Lattner
clattner at apple.com
Fri Jul 18 11:06:15 PDT 2008
On Jul 18, 2008, at 8:42 AM, Nicolas Capens wrote:
> Hi all,
>
> How do I properly/conveniently change ISA features of the code to be
> generated? For instance I have a Core 2 Duo with SSSE3 but I’d also
> like to test whether everything would JIT compile correctly on
> something with just SSE2 (a Pentium 4) or even older. In other
> words, how do I prevent LLVM from using certain target features?
>
The JIT defaults to using whatever it can. You can hack
X86Subtarget::AutoDetectSubtargetFeatures() to disable specific
features.
-Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20080718/0f2bffa2/attachment.html>
More information about the llvm-dev
mailing list