Home
last modified time | relevance | path

Searched refs:FirstMI (Results 1 – 17 of 17) sorted by relevance

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/
DAArch64MacroFusion.cpp23 static bool isArithmeticBccPair(const MachineInstr *FirstMI, in isArithmeticBccPair() argument
29 if (FirstMI == nullptr) in isArithmeticBccPair()
32 switch (FirstMI->getOpcode()) { in isArithmeticBccPair()
57 return !AArch64InstrInfo::hasShiftedReg(*FirstMI); in isArithmeticBccPair()
64 static bool isArithmeticCbzPair(const MachineInstr *FirstMI, in isArithmeticCbzPair() argument
73 if (FirstMI == nullptr) in isArithmeticCbzPair()
76 switch (FirstMI->getOpcode()) { in isArithmeticCbzPair()
107 return !AArch64InstrInfo::hasShiftedReg(*FirstMI); in isArithmeticCbzPair()
114 static bool isAESPair(const MachineInstr *FirstMI, in isAESPair() argument
121 return FirstMI == nullptr || FirstMI->getOpcode() == AArch64::AESErr; in isAESPair()
[all …]
DAArch64LoadStoreOptimizer.cpp1230 static bool areCandidatesToMergeOrPair(MachineInstr &FirstMI, MachineInstr &MI, in areCandidatesToMergeOrPair() argument
1238 assert(!FirstMI.hasOrderedMemoryRef() && in areCandidatesToMergeOrPair()
1239 !TII->isLdStPairSuppressed(FirstMI) && in areCandidatesToMergeOrPair()
1242 unsigned OpcA = FirstMI.getOpcode(); in areCandidatesToMergeOrPair()
1278 canRenameUpToDef(MachineInstr &FirstMI, LiveRegUnits &UsedInBetween, in canRenameUpToDef() argument
1281 if (!FirstMI.mayStore()) in canRenameUpToDef()
1286 auto *RegClass = TRI->getMinimalPhysRegClass(getLdStRegOp(FirstMI).getReg()); in canRenameUpToDef()
1287 MachineFunction &MF = *FirstMI.getParent()->getParent(); in canRenameUpToDef()
1291 auto RegToRename = getLdStRegOp(FirstMI).getReg(); in canRenameUpToDef()
1293 if (!getLdStRegOp(FirstMI).isKill() && in canRenameUpToDef()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/
DARMMacroFusion.cpp22 static bool isAESPair(const MachineInstr *FirstMI, in isAESPair() argument
28 return FirstMI == nullptr || FirstMI->getOpcode() == ARM::AESE; in isAESPair()
31 return FirstMI == nullptr || FirstMI->getOpcode() == ARM::AESD; in isAESPair()
38 static bool isLiteralsPair(const MachineInstr *FirstMI, in isLiteralsPair() argument
41 if ((FirstMI == nullptr || FirstMI->getOpcode() == ARM::MOVi16) && in isLiteralsPair()
53 const MachineInstr *FirstMI, in shouldScheduleAdjacent() argument
57 if (ST.hasFuseAES() && isAESPair(FirstMI, SecondMI)) in shouldScheduleAdjacent()
59 if (ST.hasFuseLiterals() && isLiteralsPair(FirstMI, SecondMI)) in shouldScheduleAdjacent()
DARMLoadStoreOptimizer.cpp1001 const MachineInstr *FirstMI = MemOps[0].MI; in FormCandidates() local
1002 unsigned Opcode = FirstMI->getOpcode(); in FormCandidates()
1004 unsigned Size = getLSMultipleTransferSize(FirstMI); in FormCandidates()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DAMDGPUMacroFusion.cpp30 const MachineInstr *FirstMI, in shouldScheduleAdjacent() argument
41 if (!FirstMI) in shouldScheduleAdjacent()
44 const MachineBasicBlock &MBB = *FirstMI->getParent(); in shouldScheduleAdjacent()
49 return FirstMI->definesRegister(Src2->getReg(), TRI); in shouldScheduleAdjacent()
DSIISelLowering.cpp3682 MachineInstr *FirstMI = &*BB->begin(); in EmitInstrWithCustomInserter() local
3694 if (I == FirstMI) { in EmitInstrWithCustomInserter()
3695 FirstMI = &*++BB->begin(); in EmitInstrWithCustomInserter()
3698 BB->insert(FirstMI, &*I); in EmitInstrWithCustomInserter()
3710 BuildMI(*BB, FirstMI, DebugLoc(), TII->get(AMDGPU::S_BFE_U32), CountReg) in EmitInstrWithCustomInserter()
3713 BuildMI(*BB, FirstMI, DebugLoc(), in EmitInstrWithCustomInserter()
3718 BuildMI(*BB, FirstMI, DebugLoc(), TII->get(AMDGPU::S_CMP_EQ_U32)) in EmitInstrWithCustomInserter()
3721 BuildMI(*BB, FirstMI, DebugLoc(), in EmitInstrWithCustomInserter()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DMachineInstrBundle.cpp111 static DebugLoc getDebugLoc(MachineBasicBlock::instr_iterator FirstMI, in getDebugLoc() argument
113 for (auto MII = FirstMI; MII != LastMI; ++MII) in getDebugLoc()
126 MachineBasicBlock::instr_iterator FirstMI, in finalizeBundle() argument
128 assert(FirstMI != LastMI && "Empty bundle?"); in finalizeBundle()
129 MIBundleBuilder Bundle(MBB, FirstMI, LastMI); in finalizeBundle()
136 BuildMI(MF, getDebugLoc(FirstMI, LastMI), TII->get(TargetOpcode::BUNDLE)); in finalizeBundle()
148 for (auto MII = FirstMI; MII != LastMI; ++MII) { in finalizeBundle()
231 for (auto MII = FirstMI; MII != LastMI; ++MII) { in finalizeBundle()
246 MachineBasicBlock::instr_iterator FirstMI) { in finalizeBundle() argument
248 MachineBasicBlock::instr_iterator LastMI = std::next(FirstMI); in finalizeBundle()
[all …]
DPatchableFunction.cpp65 MachineInstr &FirstMI = *FirstMBB.begin(); in runOnMachineFunction() local
66 BuildMI(FirstMBB, FirstMI, FirstMI.getDebugLoc(), in runOnMachineFunction()
DXRayInstrumentation.cpp196 auto &FirstMI = *FirstMBB.begin(); in runOnMachineFunction() local
199 FirstMI.emitError("An attempt to perform XRay instrumentation for an" in runOnMachineFunction()
206 BuildMI(FirstMBB, FirstMI, FirstMI.getDebugLoc(), in runOnMachineFunction()
DVirtRegMap.cpp418 MachineInstr *FirstMI = MIs.back(); in expandCopyBundle() local
448 MachineInstr *BundleStart = FirstMI; in expandCopyBundle()
455 MBB.insert(FirstMI, BundledMI); in expandCopyBundle()
461 if (Indexes && BundledMI != FirstMI) in expandCopyBundle()
DModuloSchedule.cpp1296 MachineInstr *FirstMI = nullptr; in rewrite() local
1303 if (!FirstMI) in rewrite()
1304 FirstMI = MI; in rewrite()
1306 assert(FirstMI && "Failed to find first MI in schedule"); in rewrite()
1310 for (auto I = BB->getFirstNonPHI(); I != FirstMI->getIterator();) { in rewrite()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/
DX86MacroFusion.cpp36 const MachineInstr *FirstMI, in shouldScheduleAdjacent() argument
49 if (FirstMI == nullptr) in shouldScheduleAdjacent()
52 const X86::FirstMacroFusionInstKind TestKind = classifyFirst(*FirstMI); in shouldScheduleAdjacent()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/
DHexagonStoreWidening.cpp314 MachineInstr *FirstMI = *Begin; in selectStores() local
315 assert(!FirstMI->memoperands_empty() && "Expecting some memory operands"); in selectStores()
316 const MachineMemOperand &FirstMMO = getStoreTarget(FirstMI); in selectStores()
319 unsigned FirstOffset = getStoreOffset(FirstMI); in selectStores()
340 OG.push_back(FirstMI); in selectStores()
341 MachineInstr *S1 = FirstMI; in selectStores()
DHexagonVLIWPacketizer.cpp1795 MachineBasicBlock::instr_iterator FirstMI(OldPacketMIs.front()); in endPacket() local
1797 finalizeBundle(*MBB, FirstMI, LastMI); in endPacket()
1798 auto BundleMII = std::prev(FirstMI); in endPacket()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/
DMachineInstrBundle.h28 MachineBasicBlock::instr_iterator FirstMI,
37 MachineBasicBlock::instr_iterator FirstMI);
DMacroFusion.h32 const MachineInstr *FirstMI,
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/SystemZ/
DSystemZISelLowering.cpp6798 MachineInstr *FirstMI = Selects.front(); in createPHIsForSelects() local
6799 unsigned CCValid = FirstMI->getOperand(3).getImm(); in createPHIsForSelects()
6800 unsigned CCMask = FirstMI->getOperand(4).getImm(); in createPHIsForSelects()