[InstrInfo] Refactor foldOperandImpl to thread through InsertPt. NFC
authorKeno Fischer <kfischer@college.harvard.edu>
Mon, 8 Jun 2015 20:09:58 +0000 (20:09 +0000)
committerKeno Fischer <kfischer@college.harvard.edu>
Mon, 8 Jun 2015 20:09:58 +0000 (20:09 +0000)
commit4332f869bf1b417518547608c5c58ff7a5173fcc
tree00e19ac233060099299fd1a511ae9731e7078b90
parent279ef837e851c2f6b6aec5d40b32d15a1f6ae885
[InstrInfo] Refactor foldOperandImpl to thread through InsertPt. NFC

Summary:
This was a longstanding FIXME and is a necessary precursor to cases
where foldOperandImpl may have to create more than one instruction
(e.g. to constrain a register class). This is the split out NFC changes from
D6262.

Reviewers: pete, ributzka, uweigand, mcrosier

Reviewed By: mcrosier

Subscribers: mcrosier, ted, llvm-commits

Differential Revision: http://reviews.llvm.org/D10174

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239336 91177308-0d34-0410-b5e6-96231b3b80d8
13 files changed:
include/llvm/Target/TargetInstrInfo.h
lib/CodeGen/TargetInstrInfo.cpp
lib/Target/AArch64/AArch64InstrInfo.cpp
lib/Target/AArch64/AArch64InstrInfo.h
lib/Target/Hexagon/HexagonInstrInfo.cpp
lib/Target/Hexagon/HexagonInstrInfo.h
lib/Target/R600/AMDGPUInstrInfo.cpp
lib/Target/R600/AMDGPUInstrInfo.h
lib/Target/SystemZ/SystemZInstrInfo.cpp
lib/Target/SystemZ/SystemZInstrInfo.h
lib/Target/X86/X86FastISel.cpp
lib/Target/X86/X86InstrInfo.cpp
lib/Target/X86/X86InstrInfo.h