[X86] Move getX86ConditionCode() from X86FastISel.cpp to X86InstrInfo.cpp. NFC
authorIgor Breger <igor.breger@intel.com>
Thu, 11 May 2017 06:36:37 +0000 (06:36 +0000)
committerIgor Breger <igor.breger@intel.com>
Thu, 11 May 2017 06:36:37 +0000 (06:36 +0000)
commitdb75455990b9eeeb90698a4c518246bf65bfbda4
treec92767f017cf679cb1658cd2bbaceca5b325d22c
parentcf84800ea0219001d493e8e7ecb8ce22bea443cd
[X86] Move getX86ConditionCode() from X86FastISel.cpp to X86InstrInfo.cpp. NFC

Summary:
Move getX86ConditionCode() from X86FastISel.cpp to X86InstrInfo.cpp so it can be used by GloabalIsel instruction selector.
This is a pre-commit for a patch I'm working on to support G_ICMP. NFC.

Reviewers: zvi, guyblank, delena

Reviewed By: guyblank, delena

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D33038

llvm-svn: 302767
llvm/lib/Target/X86/X86FastISel.cpp
llvm/lib/Target/X86/X86InstrInfo.cpp
llvm/lib/Target/X86/X86InstrInfo.h