|
LLVM
7.0.0
|
#include "Target/Hexagon/HexagonSubtarget.h"
Classes | |
| struct | BankConflictMutation |
| struct | CallMutation |
| struct | HVXMemLatencyMutation |
| struct | UsrOverflowMutation |
Public Attributes | |
| Hexagon::ArchEnum | HexagonArchVersion |
| Hexagon::ArchEnum | HexagonHVXVersion = Hexagon::ArchEnum::V4 |
| CodeGenOpt::Level | OptLevel |
| bool | UseBSBScheduling |
| True if the target should use Back-Skip-Back scheduling. More... | |
Definition at line 43 of file HexagonSubtarget.h.
| HexagonSubtarget::HexagonSubtarget | ( | const Triple & | TT, |
| StringRef | CPU, | ||
| StringRef | FS, | ||
| const TargetMachine & | TM | ||
| ) |
Definition at line 80 of file HexagonSubtarget.cpp.
References assert(), and llvm::InstrItineraryData::Itineraries.
|
override |
Perform target specific adjustments to the latency of a schedule dependency.
Definition at line 320 of file HexagonSubtarget.cpp.
References llvm::HexagonInstrInfo::canExecuteInBundle(), llvm::SmallSet< T, N, C >::clear(), EnableDotCurSched, llvm::SUnit::getInstr(), getInstrInfo(), llvm::MachineInstr::getNumOperands(), llvm::MachineInstr::getOperand(), llvm::HexagonInstrInfo::getOperandLatency(), llvm::MachineOperand::getReg(), hasV60Ops(), llvm::MachineInstr::isCopy(), llvm::SUnit::isInstr(), llvm::MachineOperand::isReg(), llvm::MachineInstr::isRegSequence(), llvm::HexagonInstrInfo::isToBeScheduledASAP(), llvm::MachineOperand::isUse(), llvm::max(), llvm::SUnit::NumSuccs, llvm::SDep::setLatency(), and llvm::SUnit::Succs.
Referenced by getHexagonArchVersion().
|
inlineoverride |
Definition at line 175 of file HexagonSubtarget.h.
|
override |
Definition at line 392 of file HexagonSubtarget.cpp.
References DisableHexagonMISched.
Referenced by useBSBScheduling().
|
inlineoverride |
Definition at line 178 of file HexagonSubtarget.h.
References enableSubRegLiveness().
|
override |
Definition at line 580 of file HexagonSubtarget.cpp.
References EnableSubregLiveness.
Referenced by enablePostRAScheduler().
|
inlineoverride |
Definition at line 177 of file HexagonSubtarget.h.
|
inline |
Definition at line 182 of file HexagonSubtarget.h.
|
inlineoverride |
Definition at line 109 of file HexagonSubtarget.h.
Referenced by llvm::HexagonDAGToDAGISel::EmitFunctionEntryCode(), llvm::HexagonInstrInfo::loadRegFromStackSlot(), llvm::HexagonDAGToDAGISel::SelectAddrFI(), llvm::HexagonDAGToDAGISel::SelectFrameIndex(), and llvm::HexagonInstrInfo::storeRegToStackSlot().
|
inline |
Definition at line 184 of file HexagonSubtarget.h.
References adjustSchedDependency(), getPostRAMutations(), getSMSMutations(), HexagonArchVersion, use, and useAA().
Referenced by llvm::HexagonRegisterInfo::getCalleeSavedRegs(), hasV55Ops(), hasV55OpsOnly(), hasV5Ops(), hasV5OpsOnly(), hasV60Ops(), hasV60OpsOnly(), hasV62Ops(), hasV62OpsOnly(), hasV65Ops(), and hasV65OpsOnly().
Definition at line 213 of file HexagonSubtarget.h.
References llvm::MVT::i16, llvm::MVT::i32, llvm::MVT::i8, and llvm::makeArrayRef().
Referenced by llvm::HexagonTargetLowering::getPreferredVectorAction(), and isHVXVectorType().
|
inlineoverride |
Definition at line 102 of file HexagonSubtarget.h.
Referenced by adjustSchedDependency(), llvm::HexagonSubtarget::CallMutation::apply(), llvm::HexagonRegisterInfo::eliminateFrameIndex(), llvm::HexagonAsmPrinter::EmitInstruction(), llvm::HexagonFrameLowering::emitPrologue(), llvm::HexagonFrameLowering::getFrameIndexReference(), INITIALIZE_PASS(), llvm::HexagonFrameLowering::insertCFIInstructions(), llvm::VLIWResourceModel::isResourceAvailable(), moveInstrOut(), llvm::HexagonDAGToDAGISel::runOnMachineFunction(), llvm::ConvergingVLIWScheduler::SchedulingCost(), and usePredicatedCalls().
|
inlineoverride |
getInstrItins - Return the instruction itineraries based on subtarget selection.
Definition at line 99 of file HexagonSubtarget.h.
| unsigned HexagonSubtarget::getL1CacheLineSize | ( | ) | const |
Definition at line 572 of file HexagonSubtarget.cpp.
Referenced by llvm::HexagonTTIImpl::getCacheLineSize(), and getTypeAlignment().
| unsigned HexagonSubtarget::getL1PrefetchDistance | ( | ) | const |
Definition at line 576 of file HexagonSubtarget.cpp.
Referenced by llvm::HexagonTTIImpl::getPrefetchDistance(), and getTypeAlignment().
|
override |
Definition at line 376 of file HexagonSubtarget.cpp.
Referenced by getHexagonArchVersion().
|
inlineoverride |
Definition at line 103 of file HexagonSubtarget.h.
Referenced by llvm::HexagonInstrInfo::copyPhysReg(), llvm::HexagonInstrInfo::DefinesPredicate(), llvm::HexagonInstrInfo::expandPostRAPseudo(), getInstrVecReg(), llvm::HexagonTargetLowering::HexagonTargetLowering(), llvm::HexagonInstrInfo::reduceLoopCount(), and llvm::HexagonDAGToDAGISel::runOnMachineFunction().
|
inlineoverride |
Definition at line 112 of file HexagonSubtarget.h.
References initializeSubtargetDependencies(), and ParseSubtargetFeatures().
|
override |
Definition at line 383 of file HexagonSubtarget.cpp.
Referenced by getHexagonArchVersion().
|
inlineoverride |
Definition at line 106 of file HexagonSubtarget.h.
Definition at line 247 of file HexagonSubtarget.h.
References getL1CacheLineSize(), getL1PrefetchDistance(), llvm::MVT::getSizeInBits(), getVectorLength(), isHVXVectorType(), and TII.
Referenced by llvm::HexagonTargetLowering::LowerUnalignedLoad().
|
inline |
Definition at line 204 of file HexagonSubtarget.h.
References assert(), llvm_unreachable, useHVX128BOps(), useHVX64BOps(), and useHVXOps().
Referenced by llvm::HexagonTargetLowering::allowsMisalignedMemoryAccesses(), llvm::HexagonTTIImpl::getMinimumVF(), llvm::HexagonTTIImpl::getMinVectorRegisterBitWidth(), llvm::HexagonTargetLowering::getPreferredVectorAction(), getTypeAlignment(), isHVXVectorType(), and llvm::HvxSelector::selectRor().
|
inline |
Definition at line 165 of file HexagonSubtarget.h.
|
inline |
Definition at line 166 of file HexagonSubtarget.h.
References usePredicatedCalls().
Referenced by llvm::HexagonRegisterInfo::getReservedRegs().
|
inline |
Definition at line 129 of file HexagonSubtarget.h.
References getHexagonArchVersion(), and llvm::Hexagon::V55.
|
inline |
Definition at line 132 of file HexagonSubtarget.h.
References getHexagonArchVersion(), and llvm::Hexagon::V55.
|
inline |
Definition at line 123 of file HexagonSubtarget.h.
References getHexagonArchVersion(), and llvm::Hexagon::V5.
Referenced by llvm::HexagonTargetLowering::HexagonTargetLowering(), and llvm::HexagonTargetLowering::isFPImmLegal().
|
inline |
Definition at line 126 of file HexagonSubtarget.h.
References getHexagonArchVersion(), and llvm::Hexagon::V5.
|
inline |
Definition at line 135 of file HexagonSubtarget.h.
References getHexagonArchVersion(), and llvm::Hexagon::V60.
Referenced by adjustSchedDependency(), llvm::HexagonTargetLowering::getRegForInlineAsmConstraint(), getZeroLatency(), llvm::HexagonTargetLowering::HexagonTargetLowering(), initializeSubtargetDependencies(), and usePredicatedCalls().
|
inline |
Definition at line 138 of file HexagonSubtarget.h.
References getHexagonArchVersion(), and llvm::Hexagon::V60.
Referenced by cannotCoexistAsymm().
|
inline |
Definition at line 141 of file HexagonSubtarget.h.
References getHexagonArchVersion(), and llvm::Hexagon::V62.
Referenced by llvm::HexagonInstrInfo::isPredicable().
|
inline |
Definition at line 144 of file HexagonSubtarget.h.
References getHexagonArchVersion(), and llvm::Hexagon::V62.
|
inline |
Definition at line 147 of file HexagonSubtarget.h.
References getHexagonArchVersion(), and llvm::Hexagon::V65.
Referenced by llvm::HexagonPacketizerList::isLegalToPacketizeTogether().
|
inline |
Definition at line 150 of file HexagonSubtarget.h.
References getHexagonArchVersion(), and llvm::Hexagon::V65.
| HexagonSubtarget & HexagonSubtarget::initializeSubtargetDependencies | ( | StringRef | CPU, |
| StringRef | FS | ||
| ) |
Definition at line 93 of file HexagonSubtarget.cpp.
References llvm::Hexagon_MC::completeHVXFeatures(), EnableBSBSched, Features, hasV60Ops(), HexagonArchVersion, llvm::HexagonDisableDuplex, llvm_unreachable, OverrideLongCalls, ParseSubtargetFeatures(), UseBSBScheduling, llvm::Hexagon::V4, llvm::Hexagon::V5, llvm::Hexagon::V55, llvm::Hexagon::V60, llvm::Hexagon::V62, and llvm::Hexagon::V65.
Referenced by getSelectionDAGInfo().
Definition at line 218 of file HexagonSubtarget.h.
References llvm::any_of(), getHVXElementTypes(), llvm::MVT::getSizeInBits(), llvm::MVT::getVectorElementType(), getVectorLength(), llvm::MVT::getVectorNumElements(), llvm::MVT::i1, llvm::MVT::isVector(), T, and useHVXOps().
Referenced by llvm::HexagonTargetLowering::allowsMisalignedMemoryAccesses(), getTypeAlignment(), llvm::HexagonTargetLowering::LowerVECTOR_SHUFFLE(), and llvm::HexagonDAGToDAGISel::SelectVAlign().
ParseSubtargetFeatures - Parses features string setting specified subtarget options.
Definition of function is auto generated by tblgen.
Referenced by getSelectionDAGInfo(), and initializeSubtargetDependencies().
|
override |
Enable use of alias analysis during code generation (during MI scheduling, DAGCombine, etc.).
Definition at line 312 of file HexagonSubtarget.cpp.
References llvm::CodeGenOpt::None, and OptLevel.
Referenced by getHexagonArchVersion().
|
inline |
Definition at line 169 of file HexagonSubtarget.h.
References enableMachineScheduler(), and UseBSBScheduling.
Referenced by usePredicatedCalls().
|
inline |
Definition at line 162 of file HexagonSubtarget.h.
References useHVXOps().
Referenced by llvm::HexagonTargetLowering::getRegForInlineAsmConstraint(), and getVectorLength().
|
inline |
Definition at line 163 of file HexagonSubtarget.h.
References useHVXOps().
Referenced by getVectorLength().
|
inline |
Definition at line 161 of file HexagonSubtarget.h.
References llvm::Hexagon::V4.
Referenced by llvm::HexagonTargetLowering::CanLowerReturn(), llvm::HexagonTargetLowering::getConstraintType(), llvm::HexagonTargetLowering::getPreferredVectorAction(), getVectorLength(), llvm::HexagonTargetLowering::HexagonTargetLowering(), isHVXVectorType(), llvm::HexagonDAGToDAGISel::Select(), llvm::HexagonRegisterInfo::shouldCoalesce(), useHVX128BOps(), and useHVX64BOps().
|
inline |
Definition at line 154 of file HexagonSubtarget.h.
|
inline |
Definition at line 155 of file HexagonSubtarget.h.
|
inline |
Definition at line 157 of file HexagonSubtarget.h.
Referenced by getNewValueJumpOpcode().
|
inline |
Definition at line 158 of file HexagonSubtarget.h.
|
inline |
Definition at line 156 of file HexagonSubtarget.h.
Referenced by llvm::HexagonAsmPrinter::EmitInstruction(), llvm::HexagonDAGToDAGISel::SelectV65Gather(), and llvm::HexagonDAGToDAGISel::SelectV65GatherPred().
| bool HexagonSubtarget::usePredicatedCalls | ( | ) | const |
Definition at line 398 of file HexagonSubtarget.cpp.
References assert(), EnablePredicatedCalls, F(), llvm::find(), llvm::SUnit::getInstr(), getInstrInfo(), llvm::SDep::getLatency(), llvm::MachineInstr::getNumOperands(), llvm::MachineInstr::getOperand(), llvm::HexagonInstrInfo::getOperandLatency(), llvm::MachineOperand::getReg(), hasV60Ops(), I, llvm::SDep::isArtificial(), llvm::MachineOperand::isDef(), llvm::MachineOperand::isReg(), llvm::MachineOperand::isUse(), llvm::Latency, llvm::max(), llvm::SUnit::Preds, llvm::SDep::setLatency(), llvm::SDep::setSUnit(), llvm::SUnit::Succs, T, and useBSBScheduling().
Referenced by hasReservedR19(), and llvm::HexagonInstrInfo::isPredicable().
|
inline |
Definition at line 159 of file HexagonSubtarget.h.
| Hexagon::ArchEnum llvm::HexagonSubtarget::HexagonArchVersion |
Definition at line 61 of file HexagonSubtarget.h.
Referenced by getHexagonArchVersion(), and initializeSubtargetDependencies().
| Hexagon::ArchEnum llvm::HexagonSubtarget::HexagonHVXVersion = Hexagon::ArchEnum::V4 |
Definition at line 62 of file HexagonSubtarget.h.
| CodeGenOpt::Level llvm::HexagonSubtarget::OptLevel |
Definition at line 63 of file HexagonSubtarget.h.
Referenced by useAA().
| bool llvm::HexagonSubtarget::UseBSBScheduling |
True if the target should use Back-Skip-Back scheduling.
This is the default for V60.
Definition at line 66 of file HexagonSubtarget.h.
Referenced by initializeSubtargetDependencies(), and useBSBScheduling().
1.8.13