mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
Remove TargetMachine from PPCInstrInfo and all dependencies and
replace with the current subtarget. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210836 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -258,8 +258,8 @@ void PPCDispatchGroupSBHazardRecognizer::EmitNoop() {
|
||||
// 3. Handling of the esoteric cases in "Resource-based Instruction Grouping".
|
||||
//
|
||||
|
||||
PPCHazardRecognizer970::PPCHazardRecognizer970(const TargetMachine &TM)
|
||||
: TM(TM) {
|
||||
PPCHazardRecognizer970::PPCHazardRecognizer970(const ScheduleDAG &DAG)
|
||||
: DAG(DAG) {
|
||||
EndDispatchGroup();
|
||||
}
|
||||
|
||||
@@ -278,7 +278,7 @@ PPCHazardRecognizer970::GetInstrType(unsigned Opcode,
|
||||
bool &isFirst, bool &isSingle,
|
||||
bool &isCracked,
|
||||
bool &isLoad, bool &isStore) {
|
||||
const MCInstrDesc &MCID = TM.getInstrInfo()->get(Opcode);
|
||||
const MCInstrDesc &MCID = DAG.TII->get(Opcode);
|
||||
|
||||
isLoad = MCID.mayLoad();
|
||||
isStore = MCID.mayStore();
|
||||
|
Reference in New Issue
Block a user