Home
last modified time | relevance | path

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

12

/external/llvm-project/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.cpp1219 static bool areCandidatesToMergeOrPair(MachineInstr &FirstMI, MachineInstr &MI, in areCandidatesToMergeOrPair() argument
1227 assert(!FirstMI.hasOrderedMemoryRef() && in areCandidatesToMergeOrPair()
1228 !TII->isLdStPairSuppressed(FirstMI) && in areCandidatesToMergeOrPair()
1231 unsigned OpcA = FirstMI.getOpcode(); in areCandidatesToMergeOrPair()
1267 canRenameUpToDef(MachineInstr &FirstMI, LiveRegUnits &UsedInBetween, in canRenameUpToDef() argument
1270 if (!FirstMI.mayStore()) in canRenameUpToDef()
1275 auto *RegClass = TRI->getMinimalPhysRegClass(getLdStRegOp(FirstMI).getReg()); in canRenameUpToDef()
1276 MachineFunction &MF = *FirstMI.getParent()->getParent(); in canRenameUpToDef()
1280 auto RegToRename = getLdStRegOp(FirstMI).getReg(); in canRenameUpToDef()
1282 if (!getLdStRegOp(FirstMI).isKill() && in canRenameUpToDef()
[all …]
/external/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 …]
/external/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()
/external/llvm-project/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()
/external/llvm-project/llvm/lib/Target/PowerPC/
DPPCMacroFusion.cpp66 static bool matchingRegOps(const MachineInstr &FirstMI, in matchingRegOps() argument
70 const MachineOperand &Op1 = FirstMI.getOperand(FirstMIOpIndex); in matchingRegOps()
81 const MachineInstr &FirstMI, in checkOpConstraints() argument
112 const MachineOperand &SI = FirstMI.getOperand(2); in checkOpConstraints()
146 const MachineInstr *FirstMI, in shouldScheduleAdjacent() argument
171 if (!FirstMI) in shouldScheduleAdjacent()
175 if (!Feature.hasOp1(FirstMI->getOpcode())) in shouldScheduleAdjacent()
182 if (!matchingRegOps(*FirstMI, 0, SecondMI, *DepOpIdx)) in shouldScheduleAdjacent()
187 if (checkOpConstraints(Feature.getKind(), *FirstMI, SecondMI)) in shouldScheduleAdjacent()
/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/llvm-project/llvm/lib/Target/AMDGPU/
DAMDGPUMacroFusion.cpp30 const MachineInstr *FirstMI, in shouldScheduleAdjacent() argument
42 if (!FirstMI) in shouldScheduleAdjacent()
45 const MachineBasicBlock &MBB = *FirstMI->getParent(); in shouldScheduleAdjacent()
50 return FirstMI->definesRegister(Src2->getReg(), TRI); in shouldScheduleAdjacent()
/external/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()
/external/llvm-project/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 …]
DXRayInstrumentation.cpp205 auto &FirstMI = *FirstMBB.begin(); in runOnMachineFunction() local
208 FirstMI.emitError("An attempt to perform XRay instrumentation for an" in runOnMachineFunction()
216 BuildMI(FirstMBB, FirstMI, FirstMI.getDebugLoc(), in runOnMachineFunction()
/external/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()
/external/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()
/external/llvm-project/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()
/external/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()
/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-project/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()
/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/llvm/include/llvm/CodeGen/
DMachineInstrBundle.h29 MachineBasicBlock::instr_iterator FirstMI,
38 MachineBasicBlock::instr_iterator FirstMI);
/external/llvm-project/llvm/include/llvm/CodeGen/
DMachineInstrBundle.h28 MachineBasicBlock::instr_iterator FirstMI,
37 MachineBasicBlock::instr_iterator FirstMI);
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/
DMachineInstrBundle.h28 MachineBasicBlock::instr_iterator FirstMI,
37 MachineBasicBlock::instr_iterator FirstMI);

12