OSDN Git Service

- Add target lowering hooks that specify which setcc conditions are illegal,
authorEvan Cheng <evan.cheng@apple.com>
Wed, 15 Oct 2008 02:05:31 +0000 (02:05 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Wed, 15 Oct 2008 02:05:31 +0000 (02:05 +0000)
commit7f042681764c6f8eae22781d8b4cb4c218a86b76
treeb9d7f3b18ef30b2c65ea64abe4fa304688e450a4
parentdd5b58ad7be78be90390074f0df138778af5c895
- Add target lowering hooks that specify which setcc conditions are illegal,
i.e. conditions that cannot be checked with a single instruction. For example,
SETONE and SETUEQ on x86.
- Teach legalizer to implement *illegal* setcc as a and / or of a number of
legal setcc nodes. For now, only implement FP conditions. e.g. SETONE is
implemented as SETO & SETNE, SETUEQ is SETUO | SETEQ.
- Move x86 target over.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57542 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Target/TargetLowering.h
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
lib/CodeGen/SelectionDAG/TargetLowering.cpp
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/setoeq.ll [new file with mode: 0644]