Lines Matching refs:TII
124 const TargetInstrInfo *TII; member in __anon2734e12b0111::PeepholeOptimizer
313 const TargetInstrInfo *TII; member in __anon2734e12b0111::ValueTracker
353 const TargetInstrInfo *TII = nullptr) in ValueTracker() argument
355 UseAdvancedTracking(UseAdvancedTracking), MRI(MRI), TII(TII) { in ValueTracker()
372 const TargetInstrInfo *TII = nullptr) in ValueTracker() argument
374 UseAdvancedTracking(UseAdvancedTracking), MRI(MRI), TII(TII) { in ValueTracker()
416 if (!TII->isCoalescableExtInstr(*MI, SrcReg, DstReg, SubIdx)) in INITIALIZE_PASS_DEPENDENCY()
542 TII->get(TargetOpcode::COPY), NewVR) in INITIALIZE_PASS_DEPENDENCY()
568 if (!TII->analyzeCompare(MI, SrcReg, SrcReg2, CmpMask, CmpValue) || in optimizeCmpInstr()
574 if (TII->optimizeCompareInstr(MI, SrcReg, SrcReg2, CmpMask, CmpValue, MRI)) { in optimizeCmpInstr()
589 if (TII->analyzeSelect(MI, Cond, TrueOp, FalseOp, Optimizable)) in optimizeSelect()
593 if (!TII->optimizeSelect(MI, LocalMIs)) in optimizeSelect()
603 return TII->optimizeCondBranch(MI); in optimizeCondBranch()
640 !DisableAdvCopyOpt, TII); in findNextSource()
715 insertPHI(MachineRegisterInfo *MRI, const TargetInstrInfo *TII, in insertPHI() argument
724 TII->get(TargetOpcode::PHI), NewVR); in insertPHI()
820 getNewSource(MachineRegisterInfo *MRI, const TargetInstrInfo *TII, in getNewSource() argument
851 getNewSource(MRI, TII, PHISrc, RewriteMap, HandleMultipleSources)); in getNewSource()
856 MachineInstr *NewPHI = insertPHI(MRI, TII, NewPHISrcs, OrigPHI); in getNewSource()
884 const TargetInstrInfo &TII; member in __anon2734e12b0211::UncoalescableRewriter
890 UncoalescableRewriter(MachineInstr &MI, const TargetInstrInfo &TII, in UncoalescableRewriter() argument
892 : CopyRewriter(MI), TII(TII), MRI(MRI) { in UncoalescableRewriter()
936 getNewSource(&MRI, &TII, Def, RewriteMap); in RewriteSource()
944 TII.get(TargetOpcode::COPY), NewVR) in RewriteSource()
1018 const TargetInstrInfo &TII; member in __anon2734e12b0211::ExtractSubregRewriter
1021 ExtractSubregRewriter(MachineInstr &MI, const TargetInstrInfo &TII) in ExtractSubregRewriter() argument
1022 : CopyRewriter(MI), TII(TII) { in ExtractSubregRewriter()
1072 CopyLike.setDesc(TII.get(TargetOpcode::COPY)); in RewriteCurrentSource()
1151 const TargetInstrInfo &TII, in getCopyRewriter() argument
1156 return new UncoalescableRewriter(MI, TII, MRI); in getCopyRewriter()
1166 return new ExtractSubregRewriter(MI, TII); in getCopyRewriter()
1196 std::unique_ptr<CopyRewriter> CpyRewriter(getCopyRewriter(*MI, *TII, *MRI)); in optimizeCoalescableCopy()
1215 MRI, TII, TrackPair, RewriteMap, false /* multiple sources */); in optimizeCoalescableCopy()
1253 std::unique_ptr<CopyRewriter> CpyRewriter(getCopyRewriter(*MI, *TII, *MRI)); in optimizeUncoalescableCopy()
1356 if (TII->FoldImmediate(MI, II->second, Reg, MRI)) { in foldImmediate()
1486 TII = MF.getSubtarget().getInstrInfo(); in runOnMachineFunction()
1644 MachineInstr *FoldMI = TII->optimizeLoadInstr(MI, MRI, in runOnMachineFunction()
1743 if (!TII) in getNextSourceFromRegSequence()
1749 if (!TII->getRegSequenceInputs(*Def, DefIdx, RegSeqInputRegs)) in getNextSourceFromRegSequence()
1781 if (!TII) in getNextSourceFromInsertSubreg()
1788 if (!TII->getInsertSubregInputs(*Def, DefIdx, BaseReg, InsertedReg)) in getNextSourceFromInsertSubreg()
1835 if (!TII) in getNextSourceFromExtractSubreg()
1841 if (!TII->getExtractSubregInputs(*Def, DefIdx, ExtractSubregInputReg)) in getNextSourceFromExtractSubreg()