[LLVMdev] Changing target features from C++
Chris Lattner
clattner at apple.com
Sun Jul 20 10:31:56 PDT 2008
On Jul 20, 2008, at 2:59 AM, Nicolas Capens wrote:
> Hi Chris,
>
> I see. While hacking AutoDetectSubtargetFeatures() works for me for
> now, would it be useful to define an interface for X86Subtarget to
> change the features in a cleaner way? Would methods like
> disableSSEn()/enableSSEn() work or do you have another suggestion? I
> certainly want to avoid a situation where one module uses other
> settings than another moduleā¦
>
Why would this be useful for other users? It seems best to always
take advantage of features the cpu has if possible, and the JIT has
perfect knowledge of what the host cpu has.
-Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20080720/a73bd7ee/attachment.html>
More information about the llvm-dev
mailing list