mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
Remove the TargetMachine forwards for TargetSubtargetInfo based
information and update all callers. No functional change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214781 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
#include "llvm/Target/TargetLowering.h"
|
||||
#include "llvm/Target/TargetMachine.h"
|
||||
#include "llvm/Target/TargetSubtargetInfo.h"
|
||||
|
||||
using namespace llvm;
|
||||
|
||||
@@ -41,13 +42,14 @@ static cl::opt<signed> RegPressureThreshold(
|
||||
cl::desc("Track reg pressure and switch priority to in-depth"));
|
||||
|
||||
ResourcePriorityQueue::ResourcePriorityQueue(SelectionDAGISel *IS)
|
||||
: Picker(this),
|
||||
InstrItins(
|
||||
IS->getTargetLowering()->getTargetMachine().getInstrItineraryData()) {
|
||||
: Picker(this), InstrItins(IS->getTargetLowering()
|
||||
->getTargetMachine()
|
||||
.getSubtargetImpl()
|
||||
->getInstrItineraryData()) {
|
||||
const TargetMachine &TM = (*IS->MF).getTarget();
|
||||
TRI = TM.getRegisterInfo();
|
||||
TRI = TM.getSubtargetImpl()->getRegisterInfo();
|
||||
TLI = IS->getTargetLowering();
|
||||
TII = TM.getInstrInfo();
|
||||
TII = TM.getSubtargetImpl()->getInstrInfo();
|
||||
ResourcesModel = TII->CreateTargetScheduleState(&TM, nullptr);
|
||||
// This hard requirement could be relaxed, but for now
|
||||
// do not let it procede.
|
||||
|
||||
Reference in New Issue
Block a user