[llvm-commits] [llvm] r149367 - in /llvm/trunk: include/llvm/IntrinsicsX86.td lib/Target/X86/X86ISelLowering.cpp test/CodeGen/X86/2006-05-11-InstrSched.ll test/CodeGen/X86/avx-intrinsics-x86.ll test/CodeGen/X86/avx2-intrinsics-x86.ll

Chris Lattner clattner at apple.com
Wed Feb 1 17:50:19 PST 2012


On Feb 1, 2012, at 10:29 AM, Evan Cheng wrote:

> Can you add logic to bitcode upgrader to handle them?

Great catch: this is something that is important, but that I overlooked.  We really want LLVM to be able to read LLVM 3.0 bitcode (and later releases) files.  If LLVM 3.0 generated these intrinsics, then we want the bitcode reader to be able to handle them, transparently rewriting them into the compare instructions they are now represented with.

The code for this should just be dropped into lib/VMCore/AutoUpgrade.cpp.  There are only a couple of intrinsics being upgraded now, but a lot more were supported back in the LLVM 3.0 release (and have been subsequently removed, since we don't need to support 2.x bitcode files).

-Chris




More information about the llvm-commits mailing list