|
LLVM
5.0.0
|
Variables | |
| size_t const | innerLoopOffset = 0 |
| int64_t const | innerLoopMask = 1 << innerLoopOffset |
| size_t const | outerLoopOffset = 1 |
| int64_t const | outerLoopMask = 1 << outerLoopOffset |
| size_t const | memReorderDisabledOffset = 2 |
| int64_t const | memReorderDisabledMask = 1 << memReorderDisabledOffset |
| size_t const | memStoreReorderEnabledOffset = 3 |
| int64_t const | memStoreReorderEnabledMask = 1 << memStoreReorderEnabledOffset |
| size_t const | bundleInstructionsOffset = 1 |
Definition at line 68 of file HexagonMCInstrInfo.cpp.
References llvm::MCInst::addOperand(), llvm::MCConstantExpr::create(), and llvm::MCOperand::createExpr().
Referenced by brtargetDecoder(), and unsignedImmDecoder().
| void llvm::HexagonMCInstrInfo::addConstExtender | ( | MCContext & | Context, |
| MCInstrInfo const & | MCII, | ||
| MCInst & | MCB, | ||
| MCInst const & | MCI | ||
| ) |
Definition at line 73 of file HexagonMCInstrInfo.cpp.
References llvm::MCInst::addOperand(), assert(), Context, llvm::MCOperand::createInst(), deriveExtender(), getExtendableOp(), llvm::MCInst::getOperand(), and isBundle().
Referenced by extendIfNeeded().
| iterator_range< Hexagon::PacketIterator > llvm::HexagonMCInstrInfo::bundleInstructions | ( | MCInstrInfo const & | MCII, |
| MCInst const & | MCI | ||
| ) |
Definition at line 88 of file HexagonMCInstrInfo.cpp.
References assert(), isBundle(), and llvm::make_range().
Referenced by llvm::HexagonMCELFStreamer::EmitInstruction(), llvm::HexagonMCCodeEmitter::encodeInstruction(), llvm::HexagonMCCodeEmitter::getMachineOpValue(), hasDuplex(), hasImmExt(), and llvm::HexagonInstPrinter::printInst().
| iterator_range< MCInst::const_iterator > llvm::HexagonMCInstrInfo::bundleInstructions | ( | MCInst const & | MCI | ) |
Definition at line 96 of file HexagonMCInstrInfo.cpp.
References assert(), llvm::MCInst::begin(), bundleInstructionsOffset, llvm::MCInst::end(), isBundle(), and llvm::make_range().
Definition at line 101 of file HexagonMCInstrInfo.cpp.
References bundleInstructionsOffset, isBundle(), and llvm::MCInst::size().
Referenced by canonicalizePacket(), llvm::HexagonMCELFStreamer::EmitInstruction(), llvm::HexagonAsmPrinter::EmitInstruction(), llvm::HexagonMCCodeEmitter::encodeInstruction(), extenderForIndex(), llvm::HexagonMCShuffle(), padEndloop(), and llvm::HexagonInstPrinter::printInst().
| bool llvm::HexagonMCInstrInfo::canonicalizePacket | ( | MCInstrInfo const & | MCII, |
| MCSubtargetInfo const & | STI, | ||
| MCContext & | Context, | ||
| MCInst & | MCB, | ||
| HexagonMCChecker * | Checker | ||
| ) |
Definition at line 108 of file HexagonMCInstrInfo.cpp.
References bundleSize(), llvm::HexagonMCChecker::check(), getDuplexPossibilties(), HEXAGON_PACKET_SIZE, llvm::HexagonDisableCompound, llvm::HexagonDisableDuplex, llvm::HexagonMCShuffle(), padEndloop(), and tryCompound().
Referenced by llvm::HexagonAsmPrinter::EmitInstruction().
| void llvm::HexagonMCInstrInfo::clampExtended | ( | MCInstrInfo const & | MCII, |
| MCContext & | Context, | ||
| MCInst & | MCI | ||
| ) |
Definition at line 145 of file HexagonMCInstrInfo.cpp.
References assert(), llvm::HexagonMCExpr::create(), llvm::MCConstantExpr::create(), llvm::MCOperand::getExpr(), getExtendableOp(), getExtentAlignment(), llvm::MCInst::getOperand(), isExtendable(), isExtended(), and llvm::MCOperand::setExpr().
Referenced by llvm::HexagonMCELFStreamer::EmitInstruction().
| MCInst llvm::HexagonMCInstrInfo::createBundle | ( | ) |
Definition at line 162 of file HexagonMCInstrInfo.cpp.
References llvm::MCInst::addOperand(), llvm::MCOperand::createImm(), and llvm::MCInst::setOpcode().
Referenced by llvm::HexagonAsmPrinter::EmitInstruction().
| MCInst * llvm::HexagonMCInstrInfo::deriveDuplex | ( | MCContext & | Context, |
| unsigned | iClass, | ||
| MCInst const & | inst0, | ||
| MCInst const & | inst1 | ||
| ) |
Definition at line 186 of file HexagonMCInstrInfo.cpp.
References llvm::MCInst::addOperand(), assert(), Context, llvm::MCOperand::createInst(), deriveSubInst(), and llvm::MCInst::setOpcode().
Referenced by replaceDuplex().
| MCInst llvm::HexagonMCInstrInfo::deriveExtender | ( | MCInstrInfo const & | MCII, |
| MCInst const & | Inst, | ||
| MCOperand const & | MO | ||
| ) |
Definition at line 169 of file HexagonMCInstrInfo.cpp.
References llvm::MCInst::addOperand(), assert(), llvm::MCOperand::createExpr(), llvm::MCOperand::createImm(), llvm::MCOperand::getExpr(), llvm::MCOperand::getImm(), llvm::MCOperand::isExpr(), isExtendable(), isExtended(), llvm::MCOperand::isImm(), llvm_unreachable(), and llvm::MCInst::setOpcode().
Referenced by addConstExtender().
Definition at line 693 of file HexagonMCDuplexInfo.cpp.
References llvm::HexagonII::Absolute, addOps(), assert(), llvm::MCOperand::getExpr(), llvm::MCInst::getOpcode(), llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), llvm_unreachable(), minConstant(), and llvm::MCInst::setOpcode().
Referenced by deriveDuplex(), and isOrderedDuplexPair().
Definition at line 200 of file HexagonMCInstrInfo.cpp.
References assert(), bundleInstructionsOffset, bundleSize(), llvm::MCOperand::getInst(), llvm::MCInst::getOperand(), and isImmext().
Referenced by hasExtenderForIndex().
| void llvm::HexagonMCInstrInfo::extendIfNeeded | ( | MCContext & | Context, |
| MCInstrInfo const & | MCII, | ||
| MCInst & | MCB, | ||
| MCInst const & | MCI | ||
| ) |
Definition at line 212 of file HexagonMCInstrInfo.cpp.
References addConstExtender(), and isConstExtended().
Referenced by llvm::HexagonLowerToMC().
| HexagonII::MemAccessSize llvm::HexagonMCInstrInfo::getAccessSize | ( | MCInstrInfo const & | MCII, |
| MCInst const & | MCI | ||
| ) |
Definition at line 220 of file HexagonMCInstrInfo.cpp.
References F, getDesc(), llvm::HexagonII::MemAccesSizeMask, llvm::HexagonII::MemAccessSizePos, and llvm::MCInstrDesc::TSFlags.
| MCInstrDesc const & llvm::HexagonMCInstrInfo::getDesc | ( | MCInstrInfo const & | MCII, |
| MCInst const & | MCI | ||
| ) |
Definition at line 227 of file HexagonMCInstrInfo.cpp.
References llvm::MCInstrInfo::get(), and llvm::MCInst::getOpcode().
Referenced by llvm::HexagonShuffler::check(), llvm::HexagonMCCodeEmitter::EncodeSingleInstruction(), llvm::MachineInstr::findFirstPredOperandIdx(), getAccessSize(), getExtendableOp(), getExtentAlignment(), getExtentBits(), getMaxValue(), getMinValue(), getNewValueOp(), getNewValueOp2(), getOtherReservedSlots(), llvm::MachineInstr::getRegClassConstraint(), getUnits(), hasNewValue(), hasNewValue2(), llvm::HexagonCVIResource::HexagonCVIResource(), isAccumulator(), isCanon(), isCofMax1(), isConstExtended(), isCVINew(), isExtendable(), isExtended(), isFloat(), isNewValue(), isPredicated(), isPredicatedNew(), isPredicatedTrue(), isPredicateLate(), isSoloAin1(), isSoloAX(), prefersSlot3(), llvm::MachineInstr::print(), and llvm::HexagonShuffler::shuffle().
Definition at line 178 of file HexagonMCDuplexInfo.cpp.
References llvm::MCInst::getOpcode(), llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), llvm::HexagonII::HSIG_A, llvm::HexagonII::HSIG_L1, llvm::HexagonII::HSIG_L2, llvm::HexagonII::HSIG_None, llvm::HexagonII::HSIG_S1, llvm::HexagonII::HSIG_S2, isDblRegForSubInst(), isIntReg(), isIntRegForSubInst(), isPredReg(), and minConstant().
Referenced by getDuplexPossibilties(), isDuplexPair(), and isOrderedDuplexPair().
| SmallVector< DuplexCandidate, 8 > llvm::HexagonMCInstrInfo::getDuplexPossibilties | ( | MCInstrInfo const & | MCII, |
| MCSubtargetInfo const & | STI, | ||
| MCInst const & | MCB | ||
| ) |
Definition at line 1024 of file HexagonMCDuplexInfo.cpp.
References assert(), bundleInstructionsOffset, llvm::dbgs(), DEBUG, getDuplexCandidateGroup(), llvm::MCOperand::getInst(), llvm::MCInst::getNumOperands(), llvm::MCInst::getOpcode(), llvm::MCInst::getOperand(), hasExtenderForIndex(), iClassOfDuplexPair(), isBundle(), isMemReorderDisabled(), isOrderedDuplexPair(), isStoreInst(), and llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::push_back().
Referenced by canonicalizePacket().
Definition at line 232 of file HexagonMCInstrInfo.cpp.
References llvm_unreachable(), R2, R4, and R6.
Referenced by llvm::HexagonMCCodeEmitter::getMachineOpValue().
Definition at line 281 of file HexagonMCInstrInfo.cpp.
References assert().
| unsigned short llvm::HexagonMCInstrInfo::getExtendableOp | ( | MCInstrInfo const & | MCII, |
| MCInst const & | MCI | ||
| ) |
Definition at line 287 of file HexagonMCInstrInfo.cpp.
References llvm::HexagonII::ExtendableOpMask, llvm::HexagonII::ExtendableOpPos, F, getDesc(), and llvm::MCInstrDesc::TSFlags.
Referenced by addConstExtender(), clampExtended(), getExtendableOperand(), isOpExtendable(), llvm::HexagonInstPrinter::printBrtarget(), and llvm::HexagonInstPrinter::printOperand().
| MCOperand const & llvm::HexagonMCInstrInfo::getExtendableOperand | ( | MCInstrInfo const & | MCII, |
| MCInst const & | MCI | ||
| ) |
Definition at line 294 of file HexagonMCInstrInfo.cpp.
References assert(), getExtendableOp(), llvm::MCInst::getOperand(), llvm::MCOperand::isExpr(), isExtendable(), isExtended(), and llvm::MCOperand::isImm().
Referenced by isConstExtended().
| unsigned llvm::HexagonMCInstrInfo::getExtentAlignment | ( | MCInstrInfo const & | MCII, |
| MCInst const & | MCI | ||
| ) |
Definition at line 305 of file HexagonMCInstrInfo.cpp.
References llvm::HexagonII::ExtentAlignMask, llvm::HexagonII::ExtentAlignPos, F, getDesc(), and llvm::MCInstrDesc::TSFlags.
Referenced by clampExtended().
| unsigned llvm::HexagonMCInstrInfo::getExtentBits | ( | MCInstrInfo const & | MCII, |
| MCInst const & | MCI | ||
| ) |
Definition at line 311 of file HexagonMCInstrInfo.cpp.
References llvm::HexagonII::ExtentBitsMask, llvm::HexagonII::ExtentBitsPos, F, getDesc(), and llvm::MCInstrDesc::TSFlags.
Referenced by brtargetDecoder(), getMaxValue(), getMinValue(), and s32_0ImmDecoder().
| int llvm::HexagonMCInstrInfo::getMaxValue | ( | MCInstrInfo const & | MCII, |
| MCInst const & | MCI | ||
| ) |
Return the maximum value of an extendable operand.
Definition at line 318 of file HexagonMCInstrInfo.cpp.
References assert(), llvm::HexagonII::ExtentSignedMask, llvm::HexagonII::ExtentSignedPos, F, getDesc(), getExtentBits(), isExtendable(), isExtended(), and llvm::MCInstrDesc::TSFlags.
Referenced by isConstExtended().
| int llvm::HexagonMCInstrInfo::getMinValue | ( | MCInstrInfo const & | MCII, |
| MCInst const & | MCI | ||
| ) |
Return the minimum value of an extendable operand.
Definition at line 332 of file HexagonMCInstrInfo.cpp.
References assert(), llvm::HexagonII::ExtentSignedMask, llvm::HexagonII::ExtentSignedPos, F, getDesc(), getExtentBits(), isExtendable(), isExtended(), and llvm::MCInstrDesc::TSFlags.
Referenced by isConstExtended().
| StringRef llvm::HexagonMCInstrInfo::getName | ( | MCInstrInfo const & | MCII, |
| MCInst const & | MCI | ||
| ) |
Definition at line 345 of file HexagonMCInstrInfo.cpp.
References llvm::MCInstrInfo::getName(), and llvm::MCInst::getOpcode().
Referenced by llvm::HexagonMCCodeEmitter::EncodeSingleInstruction().
| unsigned short llvm::HexagonMCInstrInfo::getNewValueOp | ( | MCInstrInfo const & | MCII, |
| MCInst const & | MCI | ||
| ) |
Definition at line 350 of file HexagonMCInstrInfo.cpp.
References F, getDesc(), llvm::HexagonII::NewValueOpMask, llvm::HexagonII::NewValueOpPos, and llvm::MCInstrDesc::TSFlags.
Referenced by llvm::HexagonMCCodeEmitter::getMachineOpValue(), and getNewValueOperand().
| unsigned short llvm::HexagonMCInstrInfo::getNewValueOp2 | ( | MCInstrInfo const & | MCII, |
| MCInst const & | MCI | ||
| ) |
Return the new value or the newly produced value.
Definition at line 368 of file HexagonMCInstrInfo.cpp.
References F, getDesc(), llvm::HexagonII::NewValueOpMask2, llvm::HexagonII::NewValueOpPos2, and llvm::MCInstrDesc::TSFlags.
Referenced by getNewValueOperand2().
| MCOperand const & llvm::HexagonMCInstrInfo::getNewValueOperand | ( | MCInstrInfo const & | MCII, |
| MCInst const & | MCI | ||
| ) |
Definition at line 356 of file HexagonMCInstrInfo.cpp.
References assert(), getNewValueOp(), llvm::MCInst::getOperand(), hasNewValue(), isNewValue(), and llvm::MCOperand::isReg().
Referenced by llvm::HexagonMCCodeEmitter::getMachineOpValue().
| MCOperand const & llvm::HexagonMCInstrInfo::getNewValueOperand2 | ( | MCInstrInfo const & | MCII, |
| MCInst const & | MCI | ||
| ) |
Definition at line 375 of file HexagonMCInstrInfo.cpp.
References assert(), getNewValueOp2(), llvm::MCInst::getOperand(), hasNewValue2(), isNewValue(), and llvm::MCOperand::isReg().
Referenced by llvm::HexagonMCCodeEmitter::getMachineOpValue().
| unsigned llvm::HexagonMCInstrInfo::getOtherReservedSlots | ( | MCInstrInfo const & | MCII, |
| MCSubtargetInfo const & | STI, | ||
| MCInst const & | MCI | ||
| ) |
Return the slots this instruction consumes in addition to the slot(s) it can execute out of.
Definition at line 405 of file HexagonMCInstrInfo.cpp.
References getDesc(), llvm::MCInstrDesc::getSchedClass(), llvm::MCSubtargetInfo::getSchedModel(), getUnits(), llvm::HexagonGetLastSlot(), llvm::HexagonStages, llvm::MCSchedModel::InstrItineraries, and llvm::InstrItinerary::LastStage.
Referenced by llvm::HexagonShuffler::check().
| unsigned llvm::HexagonMCInstrInfo::getType | ( | MCInstrInfo const & | MCII, |
| MCInst const & | MCI | ||
| ) |
Return the Hexagon ISA class for the insn.
Definition at line 387 of file HexagonMCInstrInfo.cpp.
References F, llvm::MCInstrInfo::get(), llvm::MCInst::getOpcode(), llvm::HexagonII::TypeMask, and llvm::HexagonII::TypePos.
Referenced by llvm::HexagonShuffler::check(), llvm::HexagonMCCodeEmitter::getMachineOpValue(), llvm::HexagonCVIResource::HexagonCVIResource(), isConstExtended(), isDuplex(), isPrefix(), and lookForCompound().
| unsigned llvm::HexagonMCInstrInfo::getUnits | ( | MCInstrInfo const & | MCII, |
| MCSubtargetInfo const & | STI, | ||
| MCInst const & | MCI | ||
| ) |
Return the slots used by the insn.
Return the slots this instruction can execute out of.
Definition at line 394 of file HexagonMCInstrInfo.cpp.
References getDesc(), llvm::MCInstrDesc::getSchedClass(), llvm::MCSubtargetInfo::getSchedModel(), llvm::HexagonStages, and llvm::MCSchedModel::InstrItineraries.
Referenced by getOtherReservedSlots().
| bool llvm::HexagonMCInstrInfo::hasDuplex | ( | MCInstrInfo const & | MCII, |
| MCInst const & | MCI | ||
| ) |
Definition at line 428 of file HexagonMCInstrInfo.cpp.
References bundleInstructions(), I, isBundle(), and isDuplex().
Referenced by llvm::HexagonMCShuffle().
Definition at line 440 of file HexagonMCInstrInfo.cpp.
References extenderForIndex().
Referenced by getDuplexPossibilties().
Definition at line 444 of file HexagonMCInstrInfo.cpp.
References bundleInstructions(), I, isBundle(), and isImmext().
Referenced by llvm::HexagonMCShuffle().
| bool llvm::HexagonMCInstrInfo::hasNewValue | ( | MCInstrInfo const & | MCII, |
| MCInst const & | MCI | ||
| ) |
Return whether the insn produces a value.
Definition at line 457 of file HexagonMCInstrInfo.cpp.
References F, getDesc(), llvm::HexagonII::hasNewValueMask, llvm::HexagonII::hasNewValuePos, and llvm::MCInstrDesc::TSFlags.
Referenced by llvm::HexagonMCCodeEmitter::getMachineOpValue(), and getNewValueOperand().
| bool llvm::HexagonMCInstrInfo::hasNewValue2 | ( | MCInstrInfo const & | MCII, |
| MCInst const & | MCI | ||
| ) |
Return whether the insn produces a second value.
Definition at line 464 of file HexagonMCInstrInfo.cpp.
References F, getDesc(), llvm::HexagonII::hasNewValueMask2, llvm::HexagonII::hasNewValuePos2, and llvm::MCInstrDesc::TSFlags.
Referenced by llvm::HexagonMCCodeEmitter::getMachineOpValue(), and getNewValueOperand2().
Definition at line 109 of file HexagonMCDuplexInfo.cpp.
References llvm::HexagonII::HSIG_A, llvm::HexagonII::HSIG_Compound, llvm::HexagonII::HSIG_L1, llvm::HexagonII::HSIG_L2, llvm::HexagonII::HSIG_None, llvm::HexagonII::HSIG_S1, and llvm::HexagonII::HSIG_S2.
Referenced by getDuplexPossibilties().
| bool llvm::HexagonMCInstrInfo::inRange | ( | MCInst const & | MCI, |
| size_t | Index | ||
| ) |
Definition at line 178 of file HexagonMCInstrInfo.h.
References minConstant().
Definition at line 185 of file HexagonMCInstrInfo.h.
References minConstant().
| bool llvm::HexagonMCInstrInfo::inSRange | ( | MCInst const & | MCI, |
| size_t | Index | ||
| ) |
Definition at line 182 of file HexagonMCInstrInfo.h.
References minConstant().
Definition at line 470 of file HexagonMCInstrInfo.cpp.
References assert(), bundleInstructionsOffset, llvm::MCOperand::getInst(), llvm::MCInst::getOperand(), HEXAGON_PACKET_SIZE, and isBundle().
| bool llvm::HexagonMCInstrInfo::isAccumulator | ( | MCInstrInfo const & | MCII, |
| MCInst const & | MCI | ||
| ) |
Return where the instruction is an accumulator.
Definition at line 477 of file HexagonMCInstrInfo.cpp.
References llvm::HexagonII::AccumulatorMask, llvm::HexagonII::AccumulatorPos, F, getDesc(), and llvm::MCInstrDesc::TSFlags.
Definition at line 483 of file HexagonMCInstrInfo.cpp.
References assert(), llvm::MCInst::getOpcode(), llvm::MCInst::getOperand(), llvm::MCOperand::isImm(), and llvm::MCInst::size().
Referenced by addConstExtender(), bundleInstructions(), bundleSize(), llvm::HexagonMCCodeEmitter::encodeInstruction(), llvm::HexagonMCCodeEmitter::EncodeSingleInstruction(), getDuplexPossibilties(), hasDuplex(), hasImmExt(), llvm::HexagonMCShuffle(), instruction(), llvm::MachineInstr::isIdenticalTo(), isInnerLoop(), isMemReorderDisabled(), isMemStoreReorderEnabled(), isOuterLoop(), lookForCompound(), padEndloop(), llvm::HexagonInstPrinter::printInst(), replaceDuplex(), setInnerLoop(), setMemReorderDisabled(), setMemStoreReorderEnabled(), setOuterLoop(), and tryCompound().
| bool llvm::HexagonMCInstrInfo::isCanon | ( | MCInstrInfo const & | MCII, |
| MCInst const & | MCI | ||
| ) |
Definition at line 523 of file HexagonMCInstrInfo.cpp.
References getDesc(), isPrefix(), and llvm::MCInstrDesc::isPseudo().
| bool llvm::HexagonMCInstrInfo::isCofMax1 | ( | MCInstrInfo const & | MCII, |
| MCInst const & | MCI | ||
| ) |
Definition at line 528 of file HexagonMCInstrInfo.cpp.
References llvm::HexagonII::CofMax1Mask, llvm::HexagonII::CofMax1Pos, F, getDesc(), and llvm::MCInstrDesc::TSFlags.
Referenced by llvm::HexagonShuffler::check().
| bool llvm::HexagonMCInstrInfo::isCompound | ( | MCInstrInfo const & | MCII, |
| MCInst const & | MCI | ||
| ) |
Definition at line 533 of file HexagonMCInstrInfo.cpp.
References getType(), and llvm::HexagonII::TypeCJ.
| bool llvm::HexagonMCInstrInfo::isConstExtended | ( | MCInstrInfo const & | MCII, |
| MCInst const & | MCI | ||
| ) |
Definition at line 489 of file HexagonMCInstrInfo.cpp.
References assert(), getDesc(), llvm::MCOperand::getExpr(), getExtendableOperand(), getMaxValue(), getMinValue(), llvm::MCInst::getOpcode(), getType(), llvm::MCInstrDesc::isBranch(), isExtendable(), isExtended(), llvm::MCOperand::isImm(), mustExtend(), mustNotExtend(), llvm::HexagonII::TypeCJ, llvm::HexagonII::TypeCR, llvm::HexagonII::TypeJ, and llvm::HexagonII::TypeNCJ.
Referenced by extendIfNeeded(), llvm::HexagonInstPrinter::printBrtarget(), and llvm::HexagonInstPrinter::printOperand().
| bool llvm::HexagonMCInstrInfo::isCVINew | ( | MCInstrInfo const & | MCII, |
| MCInst const & | MCI | ||
| ) |
Definition at line 538 of file HexagonMCInstrInfo.cpp.
References llvm::HexagonII::CVINewMask, llvm::HexagonII::CVINewPos, F, getDesc(), and llvm::MCInstrDesc::TSFlags.
Definition at line 543 of file HexagonMCInstrInfo.cpp.
Referenced by getDuplexCandidateGroup().
| bool llvm::HexagonMCInstrInfo::isDuplex | ( | MCInstrInfo const & | MCII, |
| MCInst const & | MCI | ||
| ) |
Definition at line 548 of file HexagonMCInstrInfo.cpp.
References getType(), and llvm::HexagonII::TypeDUPLEX.
Referenced by llvm::HexagonMCELFStreamer::EmitInstruction(), hasDuplex(), llvm::Hexagon::PacketIterator::operator++(), llvm::HexagonMCCodeEmitter::parseBits(), and llvm::HexagonInstPrinter::printInst().
Symmetrical. See if these two instructions are fit for duplex pair.
Definition at line 648 of file HexagonMCDuplexInfo.cpp.
References getDuplexCandidateGroup(), and isDuplexPairMatch().
Definition at line 84 of file HexagonMCDuplexInfo.cpp.
References llvm::HexagonII::HSIG_A, llvm::HexagonII::HSIG_Compound, llvm::HexagonII::HSIG_L1, llvm::HexagonII::HSIG_L2, llvm::HexagonII::HSIG_None, llvm::HexagonII::HSIG_S1, and llvm::HexagonII::HSIG_S2.
| bool llvm::HexagonMCInstrInfo::isExtendable | ( | MCInstrInfo const & | MCII, |
| MCInst const & | MCI | ||
| ) |
Definition at line 552 of file HexagonMCInstrInfo.cpp.
References llvm::HexagonII::ExtendableMask, llvm::HexagonII::ExtendablePos, F, getDesc(), and llvm::MCInstrDesc::TSFlags.
Referenced by clampExtended(), deriveExtender(), getExtendableOperand(), getMaxValue(), getMinValue(), and isConstExtended().
| bool llvm::HexagonMCInstrInfo::isExtended | ( | MCInstrInfo const & | MCII, |
| MCInst const & | MCI | ||
| ) |
Definition at line 558 of file HexagonMCInstrInfo.cpp.
References llvm::HexagonII::ExtendedMask, llvm::HexagonII::ExtendedPos, F, getDesc(), and llvm::MCInstrDesc::TSFlags.
Referenced by clampExtended(), deriveExtender(), getExtendableOperand(), getMaxValue(), getMinValue(), and isConstExtended().
| bool llvm::HexagonMCInstrInfo::isFloat | ( | MCInstrInfo const & | MCII, |
| MCInst const & | MCI | ||
| ) |
Return whether it is a floating-point insn.
Definition at line 564 of file HexagonMCInstrInfo.cpp.
References F, llvm::HexagonII::FPMask, llvm::HexagonII::FPPos, getDesc(), and llvm::MCInstrDesc::TSFlags.
Referenced by combineTargetShuffle().
Definition at line 569 of file HexagonMCInstrInfo.cpp.
References llvm::MCInst::getOpcode().
Referenced by llvm::HexagonMCELFStreamer::EmitInstruction(), llvm::HexagonMCCodeEmitter::encodeInstruction(), extenderForIndex(), llvm::HexagonMCCodeEmitter::getMachineOpValue(), hasImmExt(), and lookForCompound().
Definition at line 573 of file HexagonMCInstrInfo.cpp.
References assert(), Flags, llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), innerLoopMask, and isBundle().
Referenced by padEndloop(), llvm::HexagonMCCodeEmitter::parseBits(), and llvm::HexagonInstPrinter::printInst().
Definition at line 579 of file HexagonMCInstrInfo.cpp.
Referenced by getDuplexCandidateGroup().
Definition at line 583 of file HexagonMCInstrInfo.cpp.
Referenced by getCompoundCandidateGroup(), getDuplexCandidateGroup(), and subInstWouldBeExtended().
Definition at line 660 of file HexagonMCInstrInfo.cpp.
References assert(), Flags, llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), isBundle(), and memReorderDisabledMask.
Referenced by getDuplexPossibilties(), and setMemReorderDisabled().
Definition at line 666 of file HexagonMCInstrInfo.cpp.
References assert(), Flags, llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), isBundle(), and memStoreReorderEnabledMask.
Referenced by setMemStoreReorderEnabled().
| bool llvm::HexagonMCInstrInfo::isNewValue | ( | MCInstrInfo const & | MCII, |
| MCInst const & | MCI | ||
| ) |
Return whether the insn expects newly produced value.
Definition at line 589 of file HexagonMCInstrInfo.cpp.
References F, getDesc(), llvm::HexagonII::NewValueMask, llvm::HexagonII::NewValuePos, and llvm::MCInstrDesc::TSFlags.
Referenced by llvm::HexagonShuffler::check(), llvm::HexagonMCCodeEmitter::getMachineOpValue(), getNewValueOperand(), and getNewValueOperand2().
| bool llvm::HexagonMCInstrInfo::isOpExtendable | ( | MCInstrInfo const & | MCII, |
| MCInst const & | MCI, | ||
| unsigned short | O | ||
| ) |
Return whether the operand is extendable.
Definition at line 596 of file HexagonMCInstrInfo.cpp.
References getExtendableOp().
| bool llvm::HexagonMCInstrInfo::isOrderedDuplexPair | ( | MCInstrInfo const & | MCII, |
| MCInst const & | MIa, | ||
| bool | ExtendedA, | ||
| MCInst const & | MIb, | ||
| bool | ExtendedB, | ||
| bool | bisReversable, | ||
| MCSubtargetInfo const & | STI | ||
| ) |
non-Symmetrical. See if these two instructions are fit for duplex pair.
Definition at line 568 of file HexagonMCDuplexInfo.cpp.
References llvm::sys::path::begin(), deriveSubInst(), llvm::sys::path::end(), llvm::StringRef::equals_lower(), llvm::MCSubtargetInfo::getCPU(), getDuplexCandidateGroup(), llvm::MCInst::getNumOperands(), llvm::MCInst::getOpcode(), llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), llvm::HexagonII::HSIG_L2, llvm::HexagonII::HSIG_None, llvm::HexagonII::HSIG_S1, llvm::HexagonII::HSIG_S2, isDuplexPairMatch(), llvm::MCOperand::isReg(), opcodeData, second, and subInstWouldBeExtended().
Referenced by getDuplexPossibilties().
Definition at line 601 of file HexagonMCInstrInfo.cpp.
References assert(), Flags, llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), isBundle(), and outerLoopMask.
Referenced by padEndloop(), llvm::HexagonMCCodeEmitter::parseBits(), and llvm::HexagonInstPrinter::printInst().
| bool llvm::HexagonMCInstrInfo::isPredicated | ( | MCInstrInfo const & | MCII, |
| MCInst const & | MCI | ||
| ) |
Definition at line 607 of file HexagonMCInstrInfo.cpp.
References F, getDesc(), llvm::HexagonII::PredicatedMask, llvm::HexagonII::PredicatedPos, and llvm::MCInstrDesc::TSFlags.
Referenced by llvm::HexagonMCCodeEmitter::getMachineOpValue(), llvm::MSP430InstrInfo::isUnpredicatedTerminator(), and llvm::X86InstrInfo::isUnpredicatedTerminator().
| bool llvm::HexagonMCInstrInfo::isPredicatedNew | ( | MCInstrInfo const & | MCII, |
| MCInst const & | MCI | ||
| ) |
Return whether the insn is newly predicated.
Definition at line 624 of file HexagonMCInstrInfo.cpp.
References F, getDesc(), llvm::HexagonII::PredicatedNewMask, llvm::HexagonII::PredicatedNewPos, and llvm::MCInstrDesc::TSFlags.
| bool llvm::HexagonMCInstrInfo::isPredicatedTrue | ( | MCInstrInfo const & | MCII, |
| MCInst const & | MCI | ||
| ) |
Definition at line 630 of file HexagonMCInstrInfo.cpp.
References F, getDesc(), llvm::HexagonII::PredicatedFalseMask, llvm::HexagonII::PredicatedFalsePos, and llvm::MCInstrDesc::TSFlags.
Referenced by llvm::HexagonMCCodeEmitter::getMachineOpValue().
| bool llvm::HexagonMCInstrInfo::isPredicateLate | ( | MCInstrInfo const & | MCII, |
| MCInst const & | MCI | ||
| ) |
Definition at line 617 of file HexagonMCInstrInfo.cpp.
References F, getDesc(), llvm::HexagonII::PredicateLateMask, llvm::HexagonII::PredicateLatePos, and llvm::MCInstrDesc::TSFlags.
Definition at line 637 of file HexagonMCInstrInfo.cpp.
Referenced by getDuplexCandidateGroup().
| bool llvm::HexagonMCInstrInfo::isPrefix | ( | MCInstrInfo const & | MCII, |
| MCInst const & | MCI | ||
| ) |
Definition at line 613 of file HexagonMCInstrInfo.cpp.
References getType(), and llvm::HexagonII::TypeEXTENDER.
Referenced by isCanon().
| bool llvm::HexagonMCInstrInfo::isSolo | ( | MCInstrInfo const & | MCII, |
| MCInst const & | MCI | ||
| ) |
Return whether the insn is solo, i.e., cannot be in a packet.
Definition at line 655 of file HexagonMCInstrInfo.cpp.
References F, llvm::MCInstrInfo::get(), llvm::MCInst::getOpcode(), llvm::HexagonII::SoloMask, and llvm::HexagonII::SoloPos.
| bool llvm::HexagonMCInstrInfo::isSoloAin1 | ( | MCInstrInfo const & | MCII, |
| MCInst const & | MCI | ||
| ) |
Return whether the insn can be packaged only with an A-type insn in slot #1.
Definition at line 648 of file HexagonMCInstrInfo.cpp.
References F, getDesc(), llvm::HexagonII::SoloAin1Mask, llvm::HexagonII::SoloAin1Pos, and llvm::MCInstrDesc::TSFlags.
Referenced by llvm::HexagonShuffler::check().
| bool llvm::HexagonMCInstrInfo::isSoloAX | ( | MCInstrInfo const & | MCII, |
| MCInst const & | MCI | ||
| ) |
Return whether the insn can be packaged only with A and X-type insns.
Definition at line 642 of file HexagonMCInstrInfo.cpp.
References F, getDesc(), llvm::HexagonII::SoloAXMask, llvm::HexagonII::SoloAXPos, and llvm::MCInstrDesc::TSFlags.
Definition at line 672 of file HexagonMCInstrInfo.cpp.
References llvm::MCInst::getOpcode().
Referenced by llvm::HexagonMCCodeEmitter::getMachineOpValue().
| bool llvm::HexagonMCInstrInfo::isVector | ( | MCInstrInfo const & | MCII, |
| MCInst const & | MCI | ||
| ) |
Definition at line 732 of file HexagonMCInstrInfo.cpp.
References getType(), llvm::HexagonII::TypeCVI_FIRST, and llvm::HexagonII::TypeCVI_LAST.
Referenced by llvm::HexagonMCCodeEmitter::getMachineOpValue().
Definition at line 739 of file HexagonMCInstrInfo.cpp.
References llvm::MCOperand::getExpr(), llvm::MCInst::getOperand(), llvm::MCOperand::isExpr(), llvm::max(), and llvm::MCInst::size().
Referenced by deriveSubInst(), getCompoundCandidateGroup(), getDuplexCandidateGroup(), inRange(), and inSRange().
Definition at line 758 of file HexagonMCInstrInfo.cpp.
References llvm::HexagonMCExpr::mustExtend().
Referenced by isConstExtended().
Definition at line 766 of file HexagonMCInstrInfo.cpp.
References llvm::HexagonMCExpr::mustNotExtend().
Referenced by isConstExtended().
Definition at line 782 of file HexagonMCInstrInfo.cpp.
References llvm::MCInst::addOperand(), assert(), bundleSize(), llvm::MCOperand::createInst(), HEXAGON_PACKET_INNER_SIZE, HEXAGON_PACKET_OUTER_SIZE, isBundle(), isInnerLoop(), isOuterLoop(), llvm::WebAssembly::Nop, and llvm::MCInst::setOpcode().
Referenced by canonicalizePacket().
| bool llvm::HexagonMCInstrInfo::prefersSlot3 | ( | MCInstrInfo const & | MCII, |
| MCInst const & | MCI | ||
| ) |
Definition at line 793 of file HexagonMCInstrInfo.cpp.
References F, getDesc(), llvm::HexagonII::PrefersSlot3Mask, llvm::HexagonII::PrefersSlot3Pos, and llvm::MCInstrDesc::TSFlags.
Referenced by llvm::HexagonShuffler::check().
| void llvm::HexagonMCInstrInfo::replaceDuplex | ( | MCContext & | Context, |
| MCInst & | MCI, | ||
| DuplexCandidate | Candidate | ||
| ) |
Definition at line 799 of file HexagonMCInstrInfo.cpp.
References assert(), llvm::MCInst::begin(), deriveDuplex(), llvm::MCInst::erase(), llvm::MCOperand::getInst(), llvm::MCInst::getOperand(), llvm::DuplexCandidate::iClass, isBundle(), llvm::DuplexCandidate::packetIndexI, llvm::DuplexCandidate::packetIndexJ, llvm::MCOperand::setInst(), and llvm::MCInst::size().
Referenced by llvm::HexagonMCShuffle().
Definition at line 775 of file HexagonMCInstrInfo.cpp.
References llvm::dyn_cast(), and llvm::HexagonMCExpr::s27_2_reloc().
| void llvm::HexagonMCInstrInfo::setInnerLoop | ( | MCInst & | MCI | ) |
Definition at line 813 of file HexagonMCInstrInfo.cpp.
References assert(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), innerLoopMask, isBundle(), and llvm::MCOperand::setImm().
Referenced by llvm::HexagonLowerToMC().
| void llvm::HexagonMCInstrInfo::setMemReorderDisabled | ( | MCInst & | MCI | ) |
Definition at line 819 of file HexagonMCInstrInfo.cpp.
References assert(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), isBundle(), isMemReorderDisabled(), memReorderDisabledMask, and llvm::MCOperand::setImm().
| void llvm::HexagonMCInstrInfo::setMemStoreReorderEnabled | ( | MCInst & | MCI | ) |
Definition at line 826 of file HexagonMCInstrInfo.cpp.
References assert(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), isBundle(), isMemStoreReorderEnabled(), memStoreReorderEnabledMask, and llvm::MCOperand::setImm().
Definition at line 753 of file HexagonMCInstrInfo.cpp.
References llvm::HexagonMCExpr::setMustExtend().
Referenced by GetSymbolRef(), and llvm::HexagonLowerToMC().
Definition at line 762 of file HexagonMCInstrInfo.cpp.
References llvm::HexagonMCExpr::setMustNotExtend().
Referenced by llvm::HexagonAsmPrinter::HexagonProcessInstruction().
| void llvm::HexagonMCInstrInfo::setOuterLoop | ( | MCInst & | MCI | ) |
Definition at line 833 of file HexagonMCInstrInfo.cpp.
References assert(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), isBundle(), outerLoopMask, and llvm::MCOperand::setImm().
Referenced by llvm::HexagonLowerToMC().
Definition at line 770 of file HexagonMCInstrInfo.cpp.
References llvm::HexagonMCExpr::setS27_2_reloc().
Referenced by llvm::HexagonAsmPrinter::HexagonProcessInstruction().
Definition at line 531 of file HexagonMCDuplexInfo.cpp.
References llvm::MCOperand::getExpr(), llvm::MCInst::getOpcode(), llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), and isIntRegForSubInst().
Referenced by isOrderedDuplexPair().
| unsigned llvm::HexagonMCInstrInfo::SubregisterBit | ( | unsigned | Consumer, |
| unsigned | Producer, | ||
| unsigned | Producer2 | ||
| ) |
Definition at line 839 of file HexagonMCInstrInfo.cpp.
Referenced by llvm::HexagonMCCodeEmitter::getMachineOpValue().
| void llvm::HexagonMCInstrInfo::tryCompound | ( | MCInstrInfo const & | MCII, |
| MCSubtargetInfo const & | STI, | ||
| MCContext & | Context, | ||
| MCInst & | MCI | ||
| ) |
tryCompound - Given a bundle check for compound insns when one is found update the contents fo the bundle with the compound insn.
If a compound instruction is found then the bundle will have one additional slot.
Definition at line 400 of file HexagonMCCompound.cpp.
References assert(), llvm::dbgs(), DEBUG, llvm::HexagonMCShuffle(), isBundle(), lookForCompound(), and llvm::MCInst::size().
Referenced by canonicalizePacket().
Definition at line 69 of file HexagonMCInstrInfo.h.
Referenced by bundleInstructions(), bundleSize(), extenderForIndex(), getDuplexPossibilties(), instruction(), and lookForCompound().
| int64_t const llvm::HexagonMCInstrInfo::innerLoopMask = 1 << innerLoopOffset |
Definition at line 55 of file HexagonMCInstrInfo.h.
Referenced by isInnerLoop(), and setInnerLoop().
Definition at line 54 of file HexagonMCInstrInfo.h.
| int64_t const llvm::HexagonMCInstrInfo::memReorderDisabledMask = 1 << memReorderDisabledOffset |
Definition at line 63 of file HexagonMCInstrInfo.h.
Referenced by isMemReorderDisabled(), and setMemReorderDisabled().
Definition at line 62 of file HexagonMCInstrInfo.h.
| int64_t const llvm::HexagonMCInstrInfo::memStoreReorderEnabledMask = 1 << memStoreReorderEnabledOffset |
Definition at line 67 of file HexagonMCInstrInfo.h.
Referenced by isMemStoreReorderEnabled(), and setMemStoreReorderEnabled().
Definition at line 66 of file HexagonMCInstrInfo.h.
| int64_t const llvm::HexagonMCInstrInfo::outerLoopMask = 1 << outerLoopOffset |
Definition at line 58 of file HexagonMCInstrInfo.h.
Referenced by isOuterLoop(), and setOuterLoop().
Definition at line 57 of file HexagonMCInstrInfo.h.
1.8.6