Home
last modified time | relevance | path

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

/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AArch64/
DAArch64MacroFusion.cpp24 static bool isArithmeticBccPair(const MachineInstr *FirstMI, in isArithmeticBccPair() argument
28 if (!FirstMI) in isArithmeticBccPair()
31 switch (FirstMI->getOpcode()) { in isArithmeticBccPair()
56 return (!AArch64InstrInfo::hasShiftedReg(*FirstMI)); in isArithmeticBccPair()
63 static bool isArithmeticCbzPair(const MachineInstr *FirstMI, in isArithmeticCbzPair() argument
70 if (!FirstMI) in isArithmeticCbzPair()
73 switch (FirstMI->getOpcode()) { in isArithmeticCbzPair()
104 return (!AArch64InstrInfo::hasShiftedReg(*FirstMI)); in isArithmeticCbzPair()
111 static bool isAESPair(const MachineInstr *FirstMI, in isAESPair() argument
115 FirstMI ? FirstMI->getOpcode() in isAESPair()
[all …]
DAArch64LoadStoreOptimizer.cpp1102 static bool areCandidatesToMergeOrPair(MachineInstr &FirstMI, MachineInstr &MI, in areCandidatesToMergeOrPair() argument
1110 assert(!FirstMI.hasOrderedMemoryRef() && in areCandidatesToMergeOrPair()
1111 !TII->isLdStPairSuppressed(FirstMI) && in areCandidatesToMergeOrPair()
1114 unsigned OpcA = FirstMI.getOpcode(); in areCandidatesToMergeOrPair()
1157 MachineInstr &FirstMI = *I; in findMatchingInsn() local
1160 bool MayLoad = FirstMI.mayLoad(); in findMatchingInsn()
1161 bool IsUnscaled = TII->isUnscaledLdSt(FirstMI); in findMatchingInsn()
1162 unsigned Reg = getLdStRegOp(FirstMI).getReg(); in findMatchingInsn()
1163 unsigned BaseReg = getLdStBaseOp(FirstMI).getReg(); in findMatchingInsn()
1164 int Offset = getLdStOffsetOp(FirstMI).getImm(); in findMatchingInsn()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/ARM/
DARMMacroFusion.cpp23 static bool isAESPair(const MachineInstr *FirstMI, in isAESPair() argument
27 FirstMI ? FirstMI->getOpcode() in isAESPair()
46 static bool isLiteralsPair(const MachineInstr *FirstMI, in isLiteralsPair() argument
50 FirstMI ? FirstMI->getOpcode() in isLiteralsPair()
68 const MachineInstr *FirstMI, in shouldScheduleAdjacent() argument
72 if (ST.hasFuseAES() && isAESPair(FirstMI, SecondMI)) in shouldScheduleAdjacent()
74 if (ST.hasFuseLiterals() && isLiteralsPair(FirstMI, SecondMI)) in shouldScheduleAdjacent()
DARMLoadStoreOptimizer.cpp989 const MachineInstr *FirstMI = MemOps[0].MI; in FormCandidates() local
990 unsigned Opcode = FirstMI->getOpcode(); in FormCandidates()
992 unsigned Size = getLSMultipleTransferSize(FirstMI); in FormCandidates()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/
DMachineInstrBundle.cpp116 MachineBasicBlock::instr_iterator FirstMI, in finalizeBundle() argument
118 assert(FirstMI != LastMI && "Empty bundle?"); in finalizeBundle()
119 MIBundleBuilder Bundle(MBB, FirstMI, LastMI); in finalizeBundle()
126 BuildMI(MF, FirstMI->getDebugLoc(), TII->get(TargetOpcode::BUNDLE)); in finalizeBundle()
138 for (; FirstMI != LastMI; ++FirstMI) { in finalizeBundle()
139 for (unsigned i = 0, e = FirstMI->getNumOperands(); i != e; ++i) { in finalizeBundle()
140 MachineOperand &MO = FirstMI->getOperand(i); in finalizeBundle()
227 MachineBasicBlock::instr_iterator FirstMI) { in finalizeBundle() argument
229 MachineBasicBlock::instr_iterator LastMI = std::next(FirstMI); in finalizeBundle()
232 finalizeBundle(MBB, FirstMI, LastMI); in finalizeBundle()
DXRayInstrumentation.cpp194 auto &FirstMI = *FirstMBB.begin(); in runOnMachineFunction() local
197 FirstMI.emitError("An attempt to perform XRay instrumentation for an" in runOnMachineFunction()
204 BuildMI(FirstMBB, FirstMI, FirstMI.getDebugLoc(), in runOnMachineFunction()
DVirtRegMap.cpp420 MachineInstr *FirstMI = MIs.back(); in expandCopyBundle() local
450 MachineInstr *BundleStart = FirstMI; in expandCopyBundle()
457 MBB.insert(FirstMI, BundledMI); in expandCopyBundle()
463 if (Indexes && BundledMI != FirstMI) in expandCopyBundle()
/external/llvm/lib/CodeGen/
DMachineInstrBundle.cpp114 MachineBasicBlock::instr_iterator FirstMI, in finalizeBundle() argument
116 assert(FirstMI != LastMI && "Empty bundle?"); in finalizeBundle()
117 MIBundleBuilder Bundle(MBB, FirstMI, LastMI); in finalizeBundle()
124 BuildMI(MF, FirstMI->getDebugLoc(), TII->get(TargetOpcode::BUNDLE)); in finalizeBundle()
136 for (; FirstMI != LastMI; ++FirstMI) { in finalizeBundle()
137 for (unsigned i = 0, e = FirstMI->getNumOperands(); i != e; ++i) { in finalizeBundle()
138 MachineOperand &MO = FirstMI->getOperand(i); in finalizeBundle()
225 MachineBasicBlock::instr_iterator FirstMI) { in finalizeBundle() argument
227 MachineBasicBlock::instr_iterator LastMI = std::next(FirstMI); in finalizeBundle()
230 finalizeBundle(MBB, FirstMI, LastMI); in finalizeBundle()
DXRayInstrumentation.cpp62 auto &FirstMI = *FirstMBB.begin(); in runOnMachineFunction() local
64 BuildMI(FirstMBB, FirstMI, FirstMI.getDebugLoc(), in runOnMachineFunction()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/
DAMDGPUMacroFusion.cpp31 const MachineInstr *FirstMI, in shouldScheduleAdjacent() argument
42 if (!FirstMI) in shouldScheduleAdjacent()
47 return FirstMI->definesRegister(Src2->getReg()); in shouldScheduleAdjacent()
DSIISelLowering.cpp3314 MachineInstr *FirstMI = &*BB->begin(); in EmitInstrWithCustomInserter() local
3326 if (I == FirstMI) { in EmitInstrWithCustomInserter()
3327 FirstMI = &*++BB->begin(); in EmitInstrWithCustomInserter()
3330 BB->insert(FirstMI, &*I); in EmitInstrWithCustomInserter()
3339 BuildMI(*BB, FirstMI, DebugLoc(), TII->get(AMDGPU::S_BFE_U32), CountReg) in EmitInstrWithCustomInserter()
3342 BuildMI(*BB, FirstMI, DebugLoc(), TII->get(AMDGPU::S_BFM_B64), in EmitInstrWithCustomInserter()
3346 BuildMI(*BB, FirstMI, DebugLoc(), TII->get(AMDGPU::S_CMP_EQ_U32)) in EmitInstrWithCustomInserter()
3349 BuildMI(*BB, FirstMI, DebugLoc(), TII->get(AMDGPU::S_CMOV_B64), in EmitInstrWithCustomInserter()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/X86/
DX86MacroFusion.cpp27 const MachineInstr *FirstMI, in shouldScheduleAdjacent() argument
40 unsigned FirstOpcode = FirstMI in shouldScheduleAdjacent()
41 ? FirstMI->getOpcode() in shouldScheduleAdjacent()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/SystemZ/
DSystemZRegisterInfo.cpp278 MachineInstr *FirstMI = nullptr, *LastMI = nullptr; in shouldCoalesce() local
280 FirstMI = LIS.getInstructionFromIndex(IntGR128.beginIndex()); in shouldCoalesce()
283 FirstMI = LIS.getInstructionFromIndex(IntGRNar.beginIndex()); in shouldCoalesce()
286 assert (FirstMI && LastMI && "No instruction from index?"); in shouldCoalesce()
291 MachineBasicBlock::iterator MII = FirstMI, MEE = LastMI; in shouldCoalesce()
/external/swiftshader/third_party/llvm-7.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, *S2 = *(Begin+1); in selectStores()
DHexagonVLIWPacketizer.cpp1774 MachineBasicBlock::instr_iterator FirstMI(CurrentPacketMIs.front()); in endPacket() local
1776 finalizeBundle(*MBB, FirstMI, LastMI); in endPacket()
1778 auto BundleMII = std::prev(FirstMI); in endPacket()
/external/llvm/lib/Target/Hexagon/
DHexagonStoreWidening.cpp317 MachineInstr *FirstMI = *Begin; in selectStores() local
318 assert(!FirstMI->memoperands_empty() && "Expecting some memory operands"); in selectStores()
319 const MachineMemOperand &FirstMMO = getStoreTarget(FirstMI); in selectStores()
322 unsigned FirstOffset = getStoreOffset(FirstMI); in selectStores()
343 OG.push_back(FirstMI); in selectStores()
344 MachineInstr *S1 = FirstMI, *S2 = *(Begin+1); in selectStores()
/external/llvm/lib/Target/AArch64/
DAArch64LoadStoreOptimizer.cpp1157 static bool areCandidatesToMergeOrPair(MachineInstr &FirstMI, MachineInstr &MI, in areCandidatesToMergeOrPair() argument
1165 assert(!FirstMI.hasOrderedMemoryRef() && in areCandidatesToMergeOrPair()
1166 !TII->isLdStPairSuppressed(FirstMI) && in areCandidatesToMergeOrPair()
1169 unsigned OpcA = FirstMI.getOpcode(); in areCandidatesToMergeOrPair()
1211 MachineInstr &FirstMI = *I; in findMatchingInsn() local
1214 bool MayLoad = FirstMI.mayLoad(); in findMatchingInsn()
1215 bool IsUnscaled = TII->isUnscaledLdSt(FirstMI); in findMatchingInsn()
1216 unsigned Reg = getLdStRegOp(FirstMI).getReg(); in findMatchingInsn()
1217 unsigned BaseReg = getLdStBaseOp(FirstMI).getReg(); in findMatchingInsn()
1218 int Offset = getLdStOffsetOp(FirstMI).getImm(); in findMatchingInsn()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/CodeGen/
DMachineInstrBundle.h29 MachineBasicBlock::instr_iterator FirstMI,
38 MachineBasicBlock::instr_iterator FirstMI);
DMacroFusion.h33 const MachineInstr *FirstMI,
/external/llvm/include/llvm/CodeGen/
DMachineInstrBundle.h29 MachineBasicBlock::instr_iterator FirstMI,
38 MachineBasicBlock::instr_iterator FirstMI);
/external/llvm/lib/Target/ARM/
DARMLoadStoreOptimizer.cpp957 const MachineInstr *FirstMI = MemOps[0].MI; in FormCandidates() local
958 unsigned Opcode = FirstMI->getOpcode(); in FormCandidates()
960 unsigned Size = getLSMultipleTransferSize(FirstMI); in FormCandidates()