llvm.org GIT mirror llvm / 0bec909
unique_ptrify ResourcePriorityQueue::ResourceModel git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231127 91177308-0d34-0410-b5e6-96231b3b80d8 David Blaikie 5 years ago
2 changed file(s) with 2 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
6363 /// ResourcesModel - Represents VLIW state.
6464 /// Not limited to VLIW targets per say, but assumes
6565 /// definition of DFA by a target.
66 DFAPacketizer *ResourcesModel;
66 std::unique_ptr ResourcesModel;
6767
6868 /// Resource model - packet/bundle model. Purely
6969 /// internal at the time.
7575
7676 public:
7777 ResourcePriorityQueue(SelectionDAGISel *IS);
78
79 ~ResourcePriorityQueue() {
80 delete ResourcesModel;
81 }
8278
8379 bool isBottomUp() const override { return false; }
8480
4646 TRI = STI.getRegisterInfo();
4747 TLI = IS->TLI;
4848 TII = STI.getInstrInfo();
49 ResourcesModel = TII->CreateTargetScheduleState(STI);
49 ResourcesModel.reset(TII->CreateTargetScheduleState(STI));
5050 // This hard requirement could be relaxed, but for now
5151 // do not let it procede.
5252 assert(ResourcesModel && "Unimplemented CreateTargetScheduleState.");