LLVM  6.0.0svn
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 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 FS)
 ParseSubtargetFeatures - Parses features string setting specified subtarget options. More...
 
bool useMemOps () const
 
bool hasV5TOps () const
 
bool hasV5TOpsOnly () const
 
bool hasV55TOps () const
 
bool hasV55TOpsOnly () const
 
bool hasV60TOps () const
 
bool hasV60TOpsOnly () const
 
bool hasV62TOps () const
 
bool hasV62TOpsOnly () const
 
bool hasV65TOps () const
 
bool hasV65TOpsOnly () const
 
bool modeIEEERndNear () const
 
bool useHVXOps () const
 
bool useHVX128BOps () const
 
bool useHVX64BOps () const
 
bool hasMemNoShuf () const
 
bool useLongCalls () const
 
bool usePredicatedCalls () const
 
bool useBSBScheduling () const
 
bool enableMachineScheduler () const override
 
bool enableMachineSchedDefaultSched () const override
 
AntiDepBreakMode getAntiDepBreakMode () const override
 
bool enablePostRAScheduler () const override
 
bool enableSubRegLiveness () const override
 
const std::string & getCPUString () const
 
unsigned getSmallDataThreshold () 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, SUnit *use, SDep &dep) const override
 Perform target specific adjustments to the latency of a schedule dependency. More...
 
unsigned getVectorLength () const
 
bool isHVXVectorType (MVT VecTy) const
 
unsigned getL1CacheLineSize () const
 
unsigned getL1PrefetchDistance () const
 

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...
 

Detailed Description

Definition at line 46 of file HexagonSubtarget.h.

Constructor & Destructor Documentation

◆ HexagonSubtarget()

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

Definition at line 93 of file HexagonSubtarget.cpp.

References assert(), and llvm::InstrItineraryData::Itineraries.

Member Function Documentation

◆ adjustSchedDependency()

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

◆ enableMachineSchedDefaultSched()

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

Definition at line 164 of file HexagonSubtarget.h.

◆ enableMachineScheduler()

bool HexagonSubtarget::enableMachineScheduler ( ) const
override

Definition at line 380 of file HexagonSubtarget.cpp.

References DisableHexagonMISched.

Referenced by useBSBScheduling().

◆ enablePostRAScheduler()

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

Definition at line 167 of file HexagonSubtarget.h.

References enableSubRegLiveness().

◆ enableSubRegLiveness()

bool HexagonSubtarget::enableSubRegLiveness ( ) const
override

Definition at line 569 of file HexagonSubtarget.cpp.

References EnableSubregLiveness.

Referenced by enablePostRAScheduler().

◆ getAntiDepBreakMode()

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

Definition at line 166 of file HexagonSubtarget.h.

◆ getCPUString()

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

Definition at line 171 of file HexagonSubtarget.h.

◆ getFrameLowering()

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

◆ getHexagonArchVersion()

const Hexagon::ArchEnum& llvm::HexagonSubtarget::getHexagonArchVersion ( ) 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 94 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 364 of file HexagonSubtarget.cpp.

Referenced by getHexagonArchVersion().

◆ getRegisterInfo()

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

◆ getSelectionDAGInfo()

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

◆ getSmallDataThreshold()

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

Definition at line 174 of file HexagonSubtarget.h.

References Hexagon_SMALL_DATA_THRESHOLD.

◆ getSMSMutations()

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

Definition at line 371 of file HexagonSubtarget.cpp.

Referenced by getHexagonArchVersion().

◆ getTargetLowering()

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

Definition at line 101 of file HexagonSubtarget.h.

◆ getVectorLength()

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

Definition at line 198 of file HexagonSubtarget.h.

References assert(), llvm_unreachable, useHVX128BOps(), useHVX64BOps(), and useHVXOps().

Referenced by isHVXVectorType().

◆ hasMemNoShuf()

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

Definition at line 154 of file HexagonSubtarget.h.

◆ hasV55TOps()

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

Definition at line 125 of file HexagonSubtarget.h.

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

◆ hasV55TOpsOnly()

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

Definition at line 128 of file HexagonSubtarget.h.

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

◆ hasV5TOps()

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

◆ hasV5TOpsOnly()

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

Definition at line 122 of file HexagonSubtarget.h.

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

◆ hasV60TOps()

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

◆ hasV60TOpsOnly()

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

Definition at line 134 of file HexagonSubtarget.h.

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

Referenced by cannotCoexistAsymm().

◆ hasV62TOps()

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

◆ hasV62TOpsOnly()

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

Definition at line 140 of file HexagonSubtarget.h.

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

◆ hasV65TOps()

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

◆ hasV65TOpsOnly()

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

Definition at line 146 of file HexagonSubtarget.h.

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

◆ initializeSubtargetDependencies()

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

◆ isHVXVectorType()

bool llvm::HexagonSubtarget::isHVXVectorType ( MVT  VecTy) const
inline

◆ modeIEEERndNear()

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

Definition at line 150 of file HexagonSubtarget.h.

◆ ParseSubtargetFeatures()

void llvm::HexagonSubtarget::ParseSubtargetFeatures ( StringRef  CPU,
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 305 of file HexagonSubtarget.cpp.

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

Referenced by getHexagonArchVersion().

◆ useBSBScheduling()

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

Definition at line 158 of file HexagonSubtarget.h.

References enableMachineScheduler(), and UseBSBScheduling.

Referenced by usePredicatedCalls().

◆ useHVX128BOps()

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

◆ useHVX64BOps()

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

◆ useHVXOps()

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

◆ useLongCalls()

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

Definition at line 155 of file HexagonSubtarget.h.

References usePredicatedCalls().

◆ useMemOps()

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

Definition at line 118 of file HexagonSubtarget.h.

◆ usePredicatedCalls()

bool HexagonSubtarget::usePredicatedCalls ( ) const

Member Data Documentation

◆ HexagonArchVersion

Hexagon::ArchEnum llvm::HexagonSubtarget::HexagonArchVersion

Definition at line 56 of file HexagonSubtarget.h.

Referenced by getHexagonArchVersion(), and initializeSubtargetDependencies().

◆ HexagonHVXVersion

Hexagon::ArchEnum llvm::HexagonSubtarget::HexagonHVXVersion = Hexagon::ArchEnum::V4

Definition at line 57 of file HexagonSubtarget.h.

◆ OptLevel

CodeGenOpt::Level llvm::HexagonSubtarget::OptLevel

Definition at line 58 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 61 of file HexagonSubtarget.h.

Referenced by initializeSubtargetDependencies(), and useBSBScheduling().


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