LLVM  12.0.0git
Classes | Public Member Functions | Public Attributes | List of all members
llvm::HexagonSubtarget Class Reference

#include "Target/Hexagon/HexagonSubtarget.h"

Inheritance diagram for llvm::HexagonSubtarget:
Inheritance graph
[legend]
Collaboration diagram for llvm::HexagonSubtarget:
Collaboration graph
[legend]

Classes

struct  BankConflictMutation
 
struct  CallMutation
 
struct  HVXMemLatencyMutation
 
struct  UsrOverflowMutation
 

Public Member Functions

 HexagonSubtarget (const Triple &TT, StringRef CPU, StringRef FS, const TargetMachine &TM)
 
const TriplegetTargetTriple () const
 
bool isEnvironmentMusl () const
 
const InstrItineraryDatagetInstrItineraryData () const override
 getInstrItins - Return the instruction itineraries based on subtarget selection. More...
 
const HexagonInstrInfogetInstrInfo () const override
 
const HexagonRegisterInfogetRegisterInfo () const override
 
const HexagonTargetLoweringgetTargetLowering () const override
 
const HexagonFrameLoweringgetFrameLowering () const override
 
const HexagonSelectionDAGInfogetSelectionDAGInfo () const override
 
HexagonSubtargetinitializeSubtargetDependencies (StringRef CPU, StringRef FS)
 
void ParseSubtargetFeatures (StringRef CPU, StringRef TuneCPU, StringRef FS)
 ParseSubtargetFeatures - Parses features string setting specified subtarget options. More...
 
bool hasV5Ops () const
 
bool hasV5OpsOnly () const
 
bool hasV55Ops () const
 
bool hasV55OpsOnly () const
 
bool hasV60Ops () const
 
bool hasV60OpsOnly () const
 
bool hasV62Ops () const
 
bool hasV62OpsOnly () const
 
bool hasV65Ops () const
 
bool hasV65OpsOnly () const
 
bool hasV66Ops () const
 
bool hasV66OpsOnly () const
 
bool hasV67Ops () const
 
bool hasV67OpsOnly () const
 
bool useAudioOps () const
 
bool useCompound () const
 
bool useLongCalls () const
 
bool useMemops () const
 
bool usePackets () const
 
bool useNewValueJumps () const
 
bool useNewValueStores () const
 
bool useSmallData () const
 
bool useUnsafeMath () const
 
bool useZRegOps () const
 
bool isTinyCore () const
 
bool isTinyCoreWithDuplex () const
 
bool useHVXOps () const
 
bool useHVXV60Ops () const
 
bool useHVXV62Ops () const
 
bool useHVXV65Ops () const
 
bool useHVXV66Ops () const
 
bool useHVXV67Ops () const
 
bool useHVX128BOps () const
 
bool useHVX64BOps () const
 
bool hasMemNoShuf () const
 
bool hasReservedR19 () const
 
bool usePredicatedCalls () const
 
bool noreturnStackElim () const
 
bool useBSBScheduling () const
 
bool enableMachineScheduler () const override
 
bool enableMachineSchedDefaultSched () const override
 
AntiDepBreakMode getAntiDepBreakMode () const override
 
bool enablePostRAScheduler () const override
 True if the subtarget should run a scheduler after register allocation. More...
 
bool enableSubRegLiveness () const override
 
const std::string & getCPUString () const
 
const Hexagon::ArchEnumgetHexagonArchVersion () const
 
void getPostRAMutations (std::vector< std::unique_ptr< ScheduleDAGMutation >> &Mutations) const override
 
void getSMSMutations (std::vector< std::unique_ptr< ScheduleDAGMutation >> &Mutations) const override
 
bool useAA () const override
 Enable use of alias analysis during code generation (during MI scheduling, DAGCombine, etc.). More...
 
void adjustSchedDependency (SUnit *Def, int DefOpIdx, SUnit *Use, int UseOpIdx, SDep &Dep) const override
 Perform target specific adjustments to the latency of a schedule dependency. More...
 
unsigned getVectorLength () const
 
ArrayRef< MVTgetHVXElementTypes () const
 
bool isHVXElementType (MVT Ty, bool IncludeBool=false) const
 
bool isHVXVectorType (MVT VecTy, bool IncludeBool=false) const
 
bool isTypeForHVX (Type *VecTy, bool IncludeBool=false) const
 
unsigned getTypeAlignment (MVT Ty) const
 
unsigned getL1CacheLineSize () const
 
unsigned getL1PrefetchDistance () const
 

Public Attributes

Hexagon::ArchEnum HexagonArchVersion
 
Hexagon::ArchEnum HexagonHVXVersion = Hexagon::ArchEnum::NoArch
 
CodeGenOpt::Level OptLevel
 
bool UseBSBScheduling
 True if the target should use Back-Skip-Back scheduling. More...
 

Detailed Description

Definition at line 42 of file HexagonSubtarget.h.

Constructor & Destructor Documentation

◆ HexagonSubtarget()

HexagonSubtarget::HexagonSubtarget ( const Triple TT,
StringRef  CPU,
StringRef  FS,
const TargetMachine TM 
)

Member Function Documentation

◆ adjustSchedDependency()

void HexagonSubtarget::adjustSchedDependency ( SUnit Src,
int  SrcOpIdx,
SUnit Dst,
int  DstOpIdx,
SDep Dep 
) const
override

◆ enableMachineSchedDefaultSched()

bool llvm::HexagonSubtarget::enableMachineSchedDefaultSched ( ) const
inlineoverride

Definition at line 230 of file HexagonSubtarget.h.

◆ enableMachineScheduler()

bool HexagonSubtarget::enableMachineScheduler ( ) const
override

Definition at line 445 of file HexagonSubtarget.cpp.

References DisableHexagonMISched, and llvm::cl::Option::getNumOccurrences().

Referenced by useBSBScheduling().

◆ enablePostRAScheduler()

bool llvm::HexagonSubtarget::enablePostRAScheduler ( ) const
inlineoverride

True if the subtarget should run a scheduler after register allocation.

Definition at line 237 of file HexagonSubtarget.h.

References enableSubRegLiveness().

◆ enableSubRegLiveness()

bool HexagonSubtarget::enableSubRegLiveness ( ) const
override

Definition at line 642 of file HexagonSubtarget.cpp.

References EnableSubregLiveness.

Referenced by enablePostRAScheduler().

◆ getAntiDepBreakMode()

AntiDepBreakMode llvm::HexagonSubtarget::getAntiDepBreakMode ( ) const
inlineoverride

Definition at line 234 of file HexagonSubtarget.h.

◆ getCPUString()

const std::string& llvm::HexagonSubtarget::getCPUString ( ) const
inline

Definition at line 241 of file HexagonSubtarget.h.

◆ getFrameLowering()

const HexagonFrameLowering* llvm::HexagonSubtarget::getFrameLowering ( ) const
inlineoverride

◆ getHexagonArchVersion()

const Hexagon::ArchEnum& llvm::HexagonSubtarget::getHexagonArchVersion ( ) const
inline

◆ getHVXElementTypes()

ArrayRef<MVT> llvm::HexagonSubtarget::getHVXElementTypes ( ) const
inline

◆ getInstrInfo()

const HexagonInstrInfo* llvm::HexagonSubtarget::getInstrInfo ( ) const
inlineoverride

◆ getInstrItineraryData()

const InstrItineraryData* llvm::HexagonSubtarget::getInstrItineraryData ( ) const
inlineoverride

getInstrItins - Return the instruction itineraries based on subtarget selection.

Definition at line 116 of file HexagonSubtarget.h.

◆ getL1CacheLineSize()

unsigned HexagonSubtarget::getL1CacheLineSize ( ) const

◆ getL1PrefetchDistance()

unsigned HexagonSubtarget::getL1PrefetchDistance ( ) const

◆ getPostRAMutations()

void HexagonSubtarget::getPostRAMutations ( std::vector< std::unique_ptr< ScheduleDAGMutation >> &  Mutations) const
override

Definition at line 429 of file HexagonSubtarget.cpp.

Referenced by getHexagonArchVersion().

◆ getRegisterInfo()

const HexagonRegisterInfo* llvm::HexagonSubtarget::getRegisterInfo ( ) const
inlineoverride

◆ getSelectionDAGInfo()

const HexagonSelectionDAGInfo* llvm::HexagonSubtarget::getSelectionDAGInfo ( ) const
inlineoverride

◆ getSMSMutations()

void HexagonSubtarget::getSMSMutations ( std::vector< std::unique_ptr< ScheduleDAGMutation >> &  Mutations) const
override

Definition at line 436 of file HexagonSubtarget.cpp.

Referenced by getHexagonArchVersion().

◆ getTargetLowering()

const HexagonTargetLowering* llvm::HexagonSubtarget::getTargetLowering ( ) const
inlineoverride

Definition at line 123 of file HexagonSubtarget.h.

Referenced by isTypeForHVX().

◆ getTargetTriple()

const Triple& llvm::HexagonSubtarget::getTargetTriple ( ) const
inline

Definition at line 109 of file HexagonSubtarget.h.

◆ getTypeAlignment()

unsigned llvm::HexagonSubtarget::getTypeAlignment ( MVT  Ty) const
inline

◆ getVectorLength()

unsigned llvm::HexagonSubtarget::getVectorLength ( ) const
inline

◆ hasMemNoShuf()

bool llvm::HexagonSubtarget::hasMemNoShuf ( ) const
inline

Definition at line 218 of file HexagonSubtarget.h.

◆ hasReservedR19()

bool llvm::HexagonSubtarget::hasReservedR19 ( ) const
inline

Definition at line 219 of file HexagonSubtarget.h.

References usePredicatedCalls().

Referenced by llvm::HexagonRegisterInfo::getReservedRegs().

◆ hasV55Ops()

bool llvm::HexagonSubtarget::hasV55Ops ( ) const
inline

Definition at line 146 of file HexagonSubtarget.h.

References getHexagonArchVersion(), and llvm::Hexagon::V55.

◆ hasV55OpsOnly()

bool llvm::HexagonSubtarget::hasV55OpsOnly ( ) const
inline

Definition at line 149 of file HexagonSubtarget.h.

References getHexagonArchVersion(), and llvm::Hexagon::V55.

◆ hasV5Ops()

bool llvm::HexagonSubtarget::hasV5Ops ( ) const
inline

Definition at line 140 of file HexagonSubtarget.h.

References getHexagonArchVersion(), and llvm::Hexagon::V5.

◆ hasV5OpsOnly()

bool llvm::HexagonSubtarget::hasV5OpsOnly ( ) const
inline

Definition at line 143 of file HexagonSubtarget.h.

References getHexagonArchVersion(), and llvm::Hexagon::V5.

◆ hasV60Ops()

bool llvm::HexagonSubtarget::hasV60Ops ( ) const
inline

◆ hasV60OpsOnly()

bool llvm::HexagonSubtarget::hasV60OpsOnly ( ) const
inline

Definition at line 155 of file HexagonSubtarget.h.

References getHexagonArchVersion(), and llvm::Hexagon::V60.

Referenced by cannotCoexistAsymm().

◆ hasV62Ops()

bool llvm::HexagonSubtarget::hasV62Ops ( ) const
inline

Definition at line 158 of file HexagonSubtarget.h.

References getHexagonArchVersion(), and llvm::Hexagon::V62.

◆ hasV62OpsOnly()

bool llvm::HexagonSubtarget::hasV62OpsOnly ( ) const
inline

Definition at line 161 of file HexagonSubtarget.h.

References getHexagonArchVersion(), and llvm::Hexagon::V62.

◆ hasV65Ops()

bool llvm::HexagonSubtarget::hasV65Ops ( ) const
inline

◆ hasV65OpsOnly()

bool llvm::HexagonSubtarget::hasV65OpsOnly ( ) const
inline

Definition at line 167 of file HexagonSubtarget.h.

References getHexagonArchVersion(), and llvm::Hexagon::V65.

◆ hasV66Ops()

bool llvm::HexagonSubtarget::hasV66Ops ( ) const
inline

◆ hasV66OpsOnly()

bool llvm::HexagonSubtarget::hasV66OpsOnly ( ) const
inline

Definition at line 173 of file HexagonSubtarget.h.

References getHexagonArchVersion(), and llvm::Hexagon::V66.

◆ hasV67Ops()

bool llvm::HexagonSubtarget::hasV67Ops ( ) const
inline

◆ hasV67OpsOnly()

bool llvm::HexagonSubtarget::hasV67OpsOnly ( ) const
inline

Definition at line 179 of file HexagonSubtarget.h.

References getHexagonArchVersion(), and llvm::Hexagon::V67.

◆ initializeSubtargetDependencies()

HexagonSubtarget & HexagonSubtarget::initializeSubtargetDependencies ( StringRef  CPU,
StringRef  FS 
)

◆ isEnvironmentMusl()

bool llvm::HexagonSubtarget::isEnvironmentMusl ( ) const
inline

◆ isHVXElementType()

bool HexagonSubtarget::isHVXElementType ( MVT  Ty,
bool  IncludeBool = false 
) const

◆ isHVXVectorType()

bool HexagonSubtarget::isHVXVectorType ( MVT  VecTy,
bool  IncludeBool = false 
) const

◆ isTinyCore()

bool llvm::HexagonSubtarget::isTinyCore ( ) const
inline

Definition at line 194 of file HexagonSubtarget.h.

Referenced by initializeSubtargetDependencies(), and isTinyCoreWithDuplex().

◆ isTinyCoreWithDuplex()

bool llvm::HexagonSubtarget::isTinyCoreWithDuplex ( ) const
inline

Definition at line 195 of file HexagonSubtarget.h.

References isTinyCore().

◆ isTypeForHVX()

bool HexagonSubtarget::isTypeForHVX ( Type VecTy,
bool  IncludeBool = false 
) const

◆ noreturnStackElim()

bool llvm::HexagonSubtarget::noreturnStackElim ( ) const
inline

Definition at line 222 of file HexagonSubtarget.h.

◆ ParseSubtargetFeatures()

void llvm::HexagonSubtarget::ParseSubtargetFeatures ( StringRef  CPU,
StringRef  TuneCPU,
StringRef  FS 
)

ParseSubtargetFeatures - Parses features string setting specified subtarget options.

Definition of function is auto generated by tblgen.

Referenced by getSelectionDAGInfo(), and initializeSubtargetDependencies().

◆ useAA()

bool HexagonSubtarget::useAA ( ) const
override

Enable use of alias analysis during code generation (during MI scheduling, DAGCombine, etc.).

Definition at line 364 of file HexagonSubtarget.cpp.

References llvm::CodeGenOpt::None, and OptLevel.

Referenced by getHexagonArchVersion().

◆ useAudioOps()

bool llvm::HexagonSubtarget::useAudioOps ( ) const
inline

Definition at line 183 of file HexagonSubtarget.h.

◆ useBSBScheduling()

bool llvm::HexagonSubtarget::useBSBScheduling ( ) const
inline

Definition at line 224 of file HexagonSubtarget.h.

References enableMachineScheduler(), and UseBSBScheduling.

Referenced by usePredicatedCalls().

◆ useCompound()

bool llvm::HexagonSubtarget::useCompound ( ) const
inline

Definition at line 184 of file HexagonSubtarget.h.

Referenced by llvm::HexagonDAGToDAGISel::SelectVAlign().

◆ useHVX128BOps()

bool llvm::HexagonSubtarget::useHVX128BOps ( ) const
inline

◆ useHVX64BOps()

bool llvm::HexagonSubtarget::useHVX64BOps ( ) const
inline

Definition at line 216 of file HexagonSubtarget.h.

References useHVXOps().

Referenced by getVectorLength().

◆ useHVXOps()

bool llvm::HexagonSubtarget::useHVXOps ( ) const
inline

◆ useHVXV60Ops()

bool llvm::HexagonSubtarget::useHVXV60Ops ( ) const
inline

Definition at line 200 of file HexagonSubtarget.h.

References llvm::Hexagon::V60.

◆ useHVXV62Ops()

bool llvm::HexagonSubtarget::useHVXV62Ops ( ) const
inline

Definition at line 203 of file HexagonSubtarget.h.

References llvm::Hexagon::V62.

◆ useHVXV65Ops()

bool llvm::HexagonSubtarget::useHVXV65Ops ( ) const
inline

Definition at line 206 of file HexagonSubtarget.h.

References llvm::Hexagon::V65.

◆ useHVXV66Ops()

bool llvm::HexagonSubtarget::useHVXV66Ops ( ) const
inline

Definition at line 209 of file HexagonSubtarget.h.

References llvm::Hexagon::V66.

◆ useHVXV67Ops()

bool llvm::HexagonSubtarget::useHVXV67Ops ( ) const
inline

Definition at line 212 of file HexagonSubtarget.h.

References llvm::Hexagon::V67.

◆ useLongCalls()

bool llvm::HexagonSubtarget::useLongCalls ( ) const
inline

Definition at line 185 of file HexagonSubtarget.h.

◆ useMemops()

bool llvm::HexagonSubtarget::useMemops ( ) const
inline

Definition at line 186 of file HexagonSubtarget.h.

◆ useNewValueJumps()

bool llvm::HexagonSubtarget::useNewValueJumps ( ) const
inline

Definition at line 188 of file HexagonSubtarget.h.

Referenced by getNewValueJumpOpcode().

◆ useNewValueStores()

bool llvm::HexagonSubtarget::useNewValueStores ( ) const
inline

Definition at line 189 of file HexagonSubtarget.h.

◆ usePackets()

bool llvm::HexagonSubtarget::usePackets ( ) const
inline

Definition at line 187 of file HexagonSubtarget.h.

◆ usePredicatedCalls()

bool HexagonSubtarget::usePredicatedCalls ( ) const

◆ useSmallData()

bool llvm::HexagonSubtarget::useSmallData ( ) const
inline

Definition at line 190 of file HexagonSubtarget.h.

◆ useUnsafeMath()

bool llvm::HexagonSubtarget::useUnsafeMath ( ) const
inline

Definition at line 191 of file HexagonSubtarget.h.

◆ useZRegOps()

bool llvm::HexagonSubtarget::useZRegOps ( ) const
inline

Definition at line 192 of file HexagonSubtarget.h.

Member Data Documentation

◆ HexagonArchVersion

Hexagon::ArchEnum llvm::HexagonSubtarget::HexagonArchVersion

Definition at line 66 of file HexagonSubtarget.h.

Referenced by getHexagonArchVersion(), and initializeSubtargetDependencies().

◆ HexagonHVXVersion

Hexagon::ArchEnum llvm::HexagonSubtarget::HexagonHVXVersion = Hexagon::ArchEnum::NoArch

Definition at line 67 of file HexagonSubtarget.h.

◆ OptLevel

CodeGenOpt::Level llvm::HexagonSubtarget::OptLevel

Definition at line 68 of file HexagonSubtarget.h.

Referenced by useAA().

◆ UseBSBScheduling

bool llvm::HexagonSubtarget::UseBSBScheduling

True if the target should use Back-Skip-Back scheduling.

This is the default for V60.

Definition at line 71 of file HexagonSubtarget.h.

Referenced by initializeSubtargetDependencies(), and useBSBScheduling().


The documentation for this class was generated from the following files: