diff options
| author | Dan Gohman <gohman@apple.com> | 2008-08-20 21:05:57 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2008-08-20 21:05:57 +0000 |
| commit | bb466331e7e50d03497ce40ee344870236fd9c32 (patch) | |
| tree | 72553ec5a9e53eeb22306e0cf5e971f969a94831 /lib/Target | |
| parent | 2385852b5b9b82e15eb4502d71b5f916882418d7 (diff) | |
| download | llvm-bb466331e7e50d03497ce40ee344870236fd9c32.tar.gz llvm-bb466331e7e50d03497ce40ee344870236fd9c32.tar.bz2 llvm-bb466331e7e50d03497ce40ee344870236fd9c32.tar.xz | |
Simplify FastISel's constructor argument list, make the FastISel
class hold a MachineRegisterInfo member, and make the
MachineBasicBlock be passed in to SelectInstructions rather
than the FastISel constructor.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55076 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
| -rw-r--r-- | lib/Target/X86/X86FastISel.h | 5 | ||||
| -rw-r--r-- | lib/Target/X86/X86ISelLowering.cpp | 6 | ||||
| -rw-r--r-- | lib/Target/X86/X86ISelLowering.h | 4 |
3 files changed, 4 insertions, 11 deletions
diff --git a/lib/Target/X86/X86FastISel.h b/lib/Target/X86/X86FastISel.h index 0f2b26a4d2..56dfc4f4b9 100644 --- a/lib/Target/X86/X86FastISel.h +++ b/lib/Target/X86/X86FastISel.h @@ -18,14 +18,11 @@ namespace llvm { class FastISel; -class MachineBasicBlock; class MachineFunction; -class TargetInstrInfo; namespace X86 { -FastISel *createFastISel(MachineBasicBlock *mbb, MachineFunction *mf, - const TargetInstrInfo *tii); +FastISel *createFastISel(MachineFunction &mf); } // namespace X86 diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp index c43ce33c8c..9a77c8e61c 100644 --- a/lib/Target/X86/X86ISelLowering.cpp +++ b/lib/Target/X86/X86ISelLowering.cpp @@ -1872,10 +1872,8 @@ bool X86TargetLowering::IsEligibleForTailCallOptimization(SDValue Call, return false; } -FastISel *X86TargetLowering::createFastISel(MachineBasicBlock *mbb, - MachineFunction *mf, - const TargetInstrInfo *tii) { - return X86::createFastISel(mbb, mf, tii); +FastISel *X86TargetLowering::createFastISel(MachineFunction &mf) { + return X86::createFastISel(mf); } diff --git a/lib/Target/X86/X86ISelLowering.h b/lib/Target/X86/X86ISelLowering.h index 1415be7b63..c35cce2c81 100644 --- a/lib/Target/X86/X86ISelLowering.h +++ b/lib/Target/X86/X86ISelLowering.h @@ -469,9 +469,7 @@ namespace llvm { /// createFastISel - This method returns a target specific FastISel object, /// or null if the target does not support "fast" ISel. - virtual FastISel *createFastISel(MachineBasicBlock *mbb, - MachineFunction *mf, - const TargetInstrInfo *tii); + virtual FastISel *createFastISel(MachineFunction &mf); private: /// Subtarget - Keep a pointer to the X86Subtarget around so that we can |
