[llvm-commits] patch: Lower glibc's x86 bswap_32() inline asm
Dan Gohman
gohman at apple.com
Wed May 27 09:54:57 PDT 2009
On May 26, 2009, at 6:29 PM, Sami Liedes wrote:
> This patch adds code in X86TargetAsmInfo::ExpandInlineAsm() to
> recognize glibc's bswap_32() inline asm for x86 <i486 target and lower
> it to llvm.bswap.i32
LLVM doesn't currently support x86 < i486. If you match that pattern
to llvm.bswap.i32, I assume LLVM will emit a 32-bit bswap. I don't
think LLVM should try to pattern-match inline asms specific to
x86 < i486 if it isn't prepared to emit code for such a target.
Dan
More information about the llvm-commits
mailing list