/external/llvm-project/llvm/lib/Target/Hexagon/MCTargetDesc/ |
D | HexagonMCShuffler.cpp | 33 void HexagonMCShuffler::init(MCInst &MCB) { in init() argument 34 if (HexagonMCInstrInfo::isBundle(MCB)) { in init() 37 for (const auto &I : HexagonMCInstrInfo::bundleInstructions(MCB)) { in init() 51 Loc = MCB.getLoc(); in init() 52 BundleFlags = MCB.getOperand(0).getImm(); in init() 55 void HexagonMCShuffler::init(MCInst &MCB, MCInst const &AddMI, in init() argument 57 if (HexagonMCInstrInfo::isBundle(MCB)) { in init() 62 for (auto const &I : HexagonMCInstrInfo::bundleInstructions(MCB)) { in init() 75 Loc = MCB.getLoc(); in init() 76 BundleFlags = MCB.getOperand(0).getImm(); in init() [all …]
|
D | HexagonMCShuffler.h | 32 MCSubtargetInfo const &STI, MCInst &MCB) in HexagonMCShuffler() argument 34 init(MCB); in HexagonMCShuffler() 38 MCSubtargetInfo const &STI, MCInst &MCB, in HexagonMCShuffler() argument 41 init(MCB, AddMI, InsertAtFront); in HexagonMCShuffler() 45 void copyTo(MCInst &MCB); 48 bool reshuffleTo(MCInst &MCB); 51 void init(MCInst &MCB); 52 void init(MCInst &MCB, MCInst const &AddMI, bool InsertAtFront); 57 MCSubtargetInfo const &STI, MCInst &MCB); 59 MCSubtargetInfo const &STI, MCInst &MCB, [all …]
|
D | HexagonMCChecker.cpp | 43 if (HexagonMCInstrInfo::isInnerLoop(MCB)) { in init() 47 if (HexagonMCInstrInfo::isOuterLoop(MCB)) { in init() 52 if (HexagonMCInstrInfo::isBundle(MCB)) in init() 54 for (auto const &I : HexagonMCInstrInfo::bundleInstructions(MCB)) { in init() 63 init(MCB); in init() 200 : Context(Context), MCB(mcb), RI(ri), MCII(MCII), STI(STI), in HexagonMCChecker() 208 : Context(Other.Context), MCB(Other.MCB), RI(Other.RI), MCII(Other.MCII), in HexagonMCChecker() 289 for (auto const &I : HexagonMCInstrInfo::bundleInstructions(MCII, MCB)) { in checkAXOK() 296 for (auto const &I : HexagonMCInstrInfo::bundleInstructions(MCII, MCB)) { in checkAXOK() 311 for (auto const &I : HexagonMCInstrInfo::bundleInstructions(MCII, MCB)) { in reportBranchErrors() [all …]
|
D | HexagonMCInstrInfo.cpp | 88 MCInstrInfo const &MCII, MCInst &MCB, in addConstExtender() argument 90 assert(HexagonMCInstrInfo::isBundle(MCB)); in addConstExtender() 99 MCB.addOperand(MCOperand::createInst(XMCI)); in addConstExtender() 125 MCContext &Context, MCInst &MCB, in canonicalizePacketImpl() argument 134 HexagonMCInstrInfo::tryCompound(MCII, STI, Context, MCB); in canonicalizePacketImpl() 135 HexagonMCShuffle(Context, false, MCII, STI, MCB); in canonicalizePacketImpl() 142 HexagonMCInstrInfo::getDuplexPossibilties(MCII, STI, MCB); in canonicalizePacketImpl() 143 HexagonMCShuffle(Context, MCII, STI, MCB, possibleDuplexes); in canonicalizePacketImpl() 147 HexagonMCInstrInfo::padEndloop(MCB, Context); in canonicalizePacketImpl() 150 if (HexagonMCInstrInfo::bundleSize(MCB) > HEXAGON_PACKET_SIZE) { in canonicalizePacketImpl() [all …]
|
D | HexagonMCDuplexInfo.cpp | 1035 MCInst const &MCB) { in getDuplexPossibilties() argument 1036 assert(isBundle(MCB)); in getDuplexPossibilties() 1039 unsigned numInstrInPacket = MCB.getNumOperands(); in getDuplexPossibilties() 1048 if (isStoreInst(MCB.getOperand(j).getInst()->getOpcode()) && in getDuplexPossibilties() 1049 isStoreInst(MCB.getOperand(k).getInst()->getOpcode())) { in getDuplexPossibilties() 1054 if (HexagonMCInstrInfo::isMemReorderDisabled(MCB)) // }:mem_noshuf in getDuplexPossibilties() 1059 MCII, *MCB.getOperand(k).getInst(), in getDuplexPossibilties() 1060 HexagonMCInstrInfo::hasExtenderForIndex(MCB, k - 1), in getDuplexPossibilties() 1061 *MCB.getOperand(j).getInst(), in getDuplexPossibilties() 1062 HexagonMCInstrInfo::hasExtenderForIndex(MCB, j - 1), in getDuplexPossibilties() [all …]
|
D | HexagonMCELFStreamer.cpp | 61 void HexagonMCELFStreamer::emitInstruction(const MCInst &MCB, in emitInstruction() argument 63 assert(MCB.getOpcode() == Hexagon::BUNDLE); in emitInstruction() 64 assert(HexagonMCInstrInfo::bundleSize(MCB) <= HEXAGON_PACKET_SIZE); in emitInstruction() 65 assert(HexagonMCInstrInfo::bundleSize(MCB) > 0); in emitInstruction() 69 for (auto const &I : HexagonMCInstrInfo::bundleInstructions(MCB)) { in emitInstruction() 74 MCObjectStreamer::emitInstruction(MCB, STI); in emitInstruction()
|
D | HexagonMCInstrInfo.h | 81 void addConstExtender(MCContext &Context, MCInstrInfo const &MCII, MCInst &MCB, 94 MCContext &Context, MCInst &MCB, 108 MCInst const *extenderForIndex(MCInst const &MCB, size_t Index); 109 void extendIfNeeded(MCContext &Context, MCInstrInfo const &MCII, MCInst &MCB, 126 MCInst const &MCB); 183 bool hasExtenderForIndex(MCInst const &MCB, size_t Index); 207 MCInst const &instruction(MCInst const &MCB, size_t Index);
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/MCTargetDesc/ |
D | HexagonMCShuffler.cpp | 33 void HexagonMCShuffler::init(MCInst &MCB) { in init() argument 34 if (HexagonMCInstrInfo::isBundle(MCB)) { in init() 37 for (const auto &I : HexagonMCInstrInfo::bundleInstructions(MCB)) { in init() 51 Loc = MCB.getLoc(); in init() 52 BundleFlags = MCB.getOperand(0).getImm(); in init() 55 void HexagonMCShuffler::init(MCInst &MCB, MCInst const &AddMI, in init() argument 57 if (HexagonMCInstrInfo::isBundle(MCB)) { in init() 62 for (auto const &I : HexagonMCInstrInfo::bundleInstructions(MCB)) { in init() 75 Loc = MCB.getLoc(); in init() 76 BundleFlags = MCB.getOperand(0).getImm(); in init() [all …]
|
D | HexagonMCShuffler.h | 32 MCSubtargetInfo const &STI, MCInst &MCB) in HexagonMCShuffler() argument 34 init(MCB); in HexagonMCShuffler() 38 MCSubtargetInfo const &STI, MCInst &MCB, in HexagonMCShuffler() argument 41 init(MCB, AddMI, InsertAtFront); in HexagonMCShuffler() 45 void copyTo(MCInst &MCB); 48 bool reshuffleTo(MCInst &MCB); 51 void init(MCInst &MCB); 52 void init(MCInst &MCB, MCInst const &AddMI, bool InsertAtFront); 57 MCSubtargetInfo const &STI, MCInst &MCB); 59 MCSubtargetInfo const &STI, MCInst &MCB, [all …]
|
D | HexagonMCChecker.cpp | 43 if (HexagonMCInstrInfo::isInnerLoop(MCB)) { in init() 47 if (HexagonMCInstrInfo::isOuterLoop(MCB)) { in init() 52 if (HexagonMCInstrInfo::isBundle(MCB)) in init() 54 for (auto const &I : HexagonMCInstrInfo::bundleInstructions(MCB)) { in init() 63 init(MCB); in init() 194 : Context(Context), MCB(mcb), RI(ri), MCII(MCII), STI(STI), in HexagonMCChecker() 202 : Context(Other.Context), MCB(Other.MCB), RI(Other.RI), MCII(Other.MCII), in HexagonMCChecker() 279 for (auto const &I : HexagonMCInstrInfo::bundleInstructions(MCII, MCB)) { in checkAXOK() 286 for (auto const &I : HexagonMCInstrInfo::bundleInstructions(MCII, MCB)) { in checkAXOK() 301 for (auto const &I : HexagonMCInstrInfo::bundleInstructions(MCII, MCB)) { in reportBranchErrors() [all …]
|
D | HexagonMCInstrInfo.cpp | 87 MCInstrInfo const &MCII, MCInst &MCB, in addConstExtender() argument 89 assert(HexagonMCInstrInfo::isBundle(MCB)); in addConstExtender() 98 MCB.addOperand(MCOperand::createInst(XMCI)); in addConstExtender() 124 MCContext &Context, MCInst &MCB, in canonicalizePacket() argument 133 HexagonMCInstrInfo::tryCompound(MCII, STI, Context, MCB); in canonicalizePacket() 134 HexagonMCShuffle(Context, false, MCII, STI, MCB); in canonicalizePacket() 137 MCInst InstBundlePreDuplex = MCInst(MCB); in canonicalizePacket() 141 HexagonMCInstrInfo::getDuplexPossibilties(MCII, STI, MCB); in canonicalizePacket() 142 HexagonMCShuffle(Context, MCII, STI, MCB, possibleDuplexes); in canonicalizePacket() 146 HexagonMCInstrInfo::padEndloop(MCB, Context); in canonicalizePacket() [all …]
|
D | HexagonMCDuplexInfo.cpp | 1037 MCInst const &MCB) { in getDuplexPossibilties() argument 1038 assert(isBundle(MCB)); in getDuplexPossibilties() 1041 unsigned numInstrInPacket = MCB.getNumOperands(); in getDuplexPossibilties() 1050 if (isStoreInst(MCB.getOperand(j).getInst()->getOpcode()) && in getDuplexPossibilties() 1051 isStoreInst(MCB.getOperand(k).getInst()->getOpcode())) { in getDuplexPossibilties() 1056 if (HexagonMCInstrInfo::isMemReorderDisabled(MCB)) // }:mem_noshuf in getDuplexPossibilties() 1061 MCII, *MCB.getOperand(k).getInst(), in getDuplexPossibilties() 1062 HexagonMCInstrInfo::hasExtenderForIndex(MCB, k - 1), in getDuplexPossibilties() 1063 *MCB.getOperand(j).getInst(), in getDuplexPossibilties() 1064 HexagonMCInstrInfo::hasExtenderForIndex(MCB, j - 1), in getDuplexPossibilties() [all …]
|
D | HexagonMCELFStreamer.cpp | 61 void HexagonMCELFStreamer::EmitInstruction(const MCInst &MCB, in EmitInstruction() argument 63 assert(MCB.getOpcode() == Hexagon::BUNDLE); in EmitInstruction() 64 assert(HexagonMCInstrInfo::bundleSize(MCB) <= HEXAGON_PACKET_SIZE); in EmitInstruction() 65 assert(HexagonMCInstrInfo::bundleSize(MCB) > 0); in EmitInstruction() 69 for (auto const &I : HexagonMCInstrInfo::bundleInstructions(MCB)) { in EmitInstruction() 74 MCObjectStreamer::EmitInstruction(MCB, STI); in EmitInstruction()
|
D | HexagonMCInstrInfo.h | 80 void addConstExtender(MCContext &Context, MCInstrInfo const &MCII, MCInst &MCB, 93 MCContext &Context, MCInst &MCB, 106 MCInst const *extenderForIndex(MCInst const &MCB, size_t Index); 107 void extendIfNeeded(MCContext &Context, MCInstrInfo const &MCII, MCInst &MCB, 124 MCInst const &MCB); 176 bool hasExtenderForIndex(MCInst const &MCB, size_t Index); 200 MCInst const &instruction(MCInst const &MCB, size_t Index);
|
/external/llvm/lib/Target/Hexagon/MCTargetDesc/ |
D | HexagonMCShuffler.cpp | 31 void HexagonMCShuffler::init(MCInst &MCB) { in init() argument 32 if (HexagonMCInstrInfo::isBundle(MCB)) { in init() 35 for (const auto &I : HexagonMCInstrInfo::bundleInstructions(MCB)) { in init() 48 BundleFlags = MCB.getOperand(0).getImm(); in init() 51 void HexagonMCShuffler::init(MCInst &MCB, MCInst const *AddMI, in init() argument 53 if (HexagonMCInstrInfo::isBundle(MCB)) { in init() 59 for (auto const &I : HexagonMCInstrInfo::bundleInstructions(MCB)) { in init() 74 BundleFlags = MCB.getOperand(0).getImm(); in init() 77 void HexagonMCShuffler::copyTo(MCInst &MCB) { in copyTo() argument 78 MCB.clear(); in copyTo() [all …]
|
D | HexagonMCShuffler.h | 31 MCInst &MCB) in HexagonMCShuffler() argument 33 init(MCB); in HexagonMCShuffler() 36 MCInst &MCB, const MCInst *AddMI, 39 init(MCB, AddMI, bInsertAtFront); in HexagonShuffler() 43 void copyTo(MCInst &MCB); 45 bool reshuffleTo(MCInst &MCB); 51 void init(MCInst &MCB); 52 void init(MCInst &MCB, const MCInst *AddMI, bool bInsertAtFront = false);
|
D | HexagonMCInstrInfo.cpp | 32 MCInstrInfo const &MCII, MCInst &MCB, in addConstExtender() argument 34 assert(HexagonMCInstrInfo::isBundle(MCB)); in addConstExtender() 42 MCB.addOperand(MCOperand::createInst(XMCI)); in addConstExtender() 60 MCContext &Context, MCInst &MCB, in canonicalizePacket() argument 65 HexagonMCInstrInfo::tryCompound(MCII, Context, MCB); in canonicalizePacket() 70 HexagonMCShuffle(MCII, STI, MCB); in canonicalizePacket() 73 MCInst InstBundlePreDuplex = MCInst(MCB); in canonicalizePacket() 76 possibleDuplexes = HexagonMCInstrInfo::getDuplexPossibilties(MCII, MCB); in canonicalizePacket() 77 HexagonMCShuffle(MCII, STI, Context, MCB, possibleDuplexes); in canonicalizePacket() 81 HexagonMCInstrInfo::padEndloop(Context, MCB); in canonicalizePacket() [all …]
|
D | HexagonMCELFStreamer.cpp | 41 MCInst *MCB; in EmitInstruction() local 45 MCB = &HMI; in EmitInstruction() 47 MCB = const_cast<MCInst *>(&MCK); in EmitInstruction() 51 HexagonMCInstrInfo::padEndloop(getContext(), *MCB); in EmitInstruction() 52 HexagonMCShuffle(*MCII, STI, *MCB); in EmitInstruction() 54 assert(HexagonMCInstrInfo::bundleSize(*MCB) <= HEXAGON_PACKET_SIZE); in EmitInstruction() 56 for (auto &I : HexagonMCInstrInfo::bundleInstructions(*MCB)) { in EmitInstruction() 73 for (auto const &I : HexagonMCInstrInfo::bundleInstructions(*MCB)) { in EmitInstruction() 77 MCObjectStreamer::EmitInstruction(*MCB, STI); in EmitInstruction()
|
D | HexagonMCChecker.cpp | 38 if (HexagonMCInstrInfo::isInnerLoop(MCB)) { in init() 42 if (HexagonMCInstrInfo::isOuterLoop(MCB)) { in init() 47 if (HexagonMCInstrInfo::isBundle(MCB)) in init() 49 for (auto const&I : HexagonMCInstrInfo::bundleInstructions(MCB)) { in init() 53 init(MCB); in init() 228 : MCB(mcb), MCBDX(mcbdx), RI(ri), MCII(MCII), STI(STI), in HexagonMCChecker() 272 if (HexagonMCInstrInfo::isBundle(MCB)) { in checkBranches() 279 i < MCB.size(); ++i) { in checkBranches() 280 MCInst const &MCI = *MCB.begin()[i].getInst(); in checkBranches() 307 if (HexagonMCInstrInfo::isInnerLoop(MCB) || in checkBranches() [all …]
|
D | HexagonMCDuplexInfo.cpp | 1014 MCInst const &MCB) { in getDuplexPossibilties() argument 1015 assert(isBundle(MCB)); in getDuplexPossibilties() 1018 unsigned numInstrInPacket = MCB.getNumOperands(); in getDuplexPossibilties() 1027 if (isStoreInst(MCB.getOperand(j).getInst()->getOpcode()) && in getDuplexPossibilties() 1028 isStoreInst(MCB.getOperand(k).getInst()->getOpcode())) { in getDuplexPossibilties() 1033 if (HexagonMCInstrInfo::isMemReorderDisabled(MCB)) // }:mem_noshuf in getDuplexPossibilties() 1038 MCII, *MCB.getOperand(k).getInst(), in getDuplexPossibilties() 1039 HexagonMCInstrInfo::hasExtenderForIndex(MCB, k - 1), in getDuplexPossibilties() 1040 *MCB.getOperand(j).getInst(), in getDuplexPossibilties() 1041 HexagonMCInstrInfo::hasExtenderForIndex(MCB, j - 1), in getDuplexPossibilties() [all …]
|
D | HexagonMCInstrInfo.h | 56 void addConstExtender(MCContext &Context, MCInstrInfo const &MCII, MCInst &MCB, 67 MCContext &Context, MCInst &MCB, 76 MCInst const *extenderForIndex(MCInst const &MCB, size_t Index); 77 void extendIfNeeded(MCContext &Context, MCInstrInfo const &MCII, MCInst &MCB, 90 MCInst const *extenderForIndex(MCInst const &MCB, size_t Index); 109 MCInst const &MCB); 157 bool hasExtenderForIndex(MCInst const &MCB, size_t Index); 166 MCInst const &instruction(MCInst const &MCB, size_t Index); 277 void replaceDuplex(MCContext &Context, MCInst &MCB, DuplexCandidate Candidate);
|
/external/llvm/lib/Target/Hexagon/ |
D | HexagonMCInstLower.cpp | 31 MCInst &MCB, HexagonAsmPrinter &AP); 91 MCInst &MCB, HexagonAsmPrinter &AP) { in HexagonLowerToMC() argument 93 HexagonMCInstrInfo::setInnerLoop(MCB); in HexagonLowerToMC() 97 HexagonMCInstrInfo::setOuterLoop(MCB); in HexagonLowerToMC() 168 HexagonMCInstrInfo::extendIfNeeded(AP.OutContext, MCII, MCB, *MCI); in HexagonLowerToMC() 169 MCB.addOperand(MCOperand::createInst(MCI)); in HexagonLowerToMC()
|
/external/llvm-project/llvm/lib/Target/Hexagon/ |
D | HexagonMCInstLower.cpp | 37 MCInst &MCB, HexagonAsmPrinter &AP); 98 MCInst &MCB, HexagonAsmPrinter &AP) { in HexagonLowerToMC() argument 100 HexagonMCInstrInfo::setInnerLoop(MCB); in HexagonLowerToMC() 104 HexagonMCInstrInfo::setOuterLoop(MCB); in HexagonLowerToMC() 178 HexagonMCInstrInfo::extendIfNeeded(AP.OutContext, MCII, MCB, *MCI); in HexagonLowerToMC() 179 MCB.addOperand(MCOperand::createInst(MCI)); in HexagonLowerToMC()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/ |
D | HexagonMCInstLower.cpp | 37 MCInst &MCB, HexagonAsmPrinter &AP); 98 MCInst &MCB, HexagonAsmPrinter &AP) { in HexagonLowerToMC() argument 100 HexagonMCInstrInfo::setInnerLoop(MCB); in HexagonLowerToMC() 104 HexagonMCInstrInfo::setOuterLoop(MCB); in HexagonLowerToMC() 178 HexagonMCInstrInfo::extendIfNeeded(AP.OutContext, MCII, MCB, *MCI); in HexagonLowerToMC() 179 MCB.addOperand(MCOperand::createInst(MCI)); in HexagonLowerToMC()
|
D | HexagonAsmPrinter.cpp | 59 MCInst &MCB, HexagonAsmPrinter &AP); 744 MCInst MCB; in EmitInstruction() local 745 MCB.setOpcode(Hexagon::BUNDLE); in EmitInstruction() 746 MCB.addOperand(MCOperand::createImm(0)); in EmitInstruction() 755 HexagonLowerToMC(MCII, &*MII, MCB, *this); in EmitInstruction() 757 HexagonLowerToMC(MCII, MI, MCB, *this); in EmitInstruction() 763 HexagonMCInstrInfo::setMemReorderDisabled(MCB); in EmitInstruction() 767 MCB, nullptr); in EmitInstruction() 769 if (HexagonMCInstrInfo::bundleSize(MCB) == 0) in EmitInstruction() 771 OutStreamer->EmitInstruction(MCB, getSubtargetInfo()); in EmitInstruction()
|