[llvm-commits] [llvm] r150060 - in /llvm/trunk: include/llvm/IntrinsicsX86.td lib/Target/X86/X86ISelLowering.cpp lib/Target/X86/X86InstrSSE.td

Duncan Sands baldrick at free.fr
Thu Feb 9 12:50:14 PST 2012


Hi Dave,

>>>> I didn't try, but turning __builtin_ia32_vpermilpd into an inline asm is
>>>> presumably rather trivial.
>>>
>>> I don't know how hard it would be.  The frontend would have to know
>>> about mnemonics, at least.  And it would have to know whether to
>>> generate AT&T or Intel syntax.
>>
>> I'm not sure this is true any more.  The LLVM code generators nowadays parse
>> inline asm and can output it either as object code or in AT&T or Intel syntax.
>> At least I think they can.  If so, the syntax issue has gone away.
>
> If that's true it's a little more palatable, so maybe this would work
> after all.  I like Nick's idea of a bit to indicate whether intrinsics
> should be left alone as well.
>
> Is inline asm guaranteed to be left alone?

it is left alone currently, but as I pointed out in my historical musings
that may change in the future.  I wouldn't worry about it if I were you though.

Ciao, Duncan.



More information about the llvm-commits mailing list