forked from OSchip/llvm-project
[System Model] [TTI] Define AMDGPUTTIImpl::getST and AMDGPUTTIImpl::getTLI
To fix "infinite recursion" warning. llvm-svn: 374222
This commit is contained in:
parent
2d85fd942a
commit
c001144b10
|
@ -46,10 +46,18 @@ class AMDGPUTTIImpl final : public BasicTTIImplBase<AMDGPUTTIImpl> {
|
|||
|
||||
Triple TargetTriple;
|
||||
|
||||
const TargetSubtargetInfo *ST;
|
||||
const TargetLoweringBase *TLI;
|
||||
|
||||
const TargetSubtargetInfo *getST() const { return ST; }
|
||||
const TargetLoweringBase *getTLI() const { return TLI; }
|
||||
|
||||
public:
|
||||
explicit AMDGPUTTIImpl(const AMDGPUTargetMachine *TM, const Function &F)
|
||||
: BaseT(TM, F.getParent()->getDataLayout()),
|
||||
TargetTriple(TM->getTargetTriple()) {}
|
||||
: BaseT(TM, F.getParent()->getDataLayout()),
|
||||
TargetTriple(TM->getTargetTriple()),
|
||||
ST(static_cast<const GCNSubtarget *>(TM->getSubtargetImpl(F))),
|
||||
TLI(ST->getTargetLowering()) {}
|
||||
|
||||
void getUnrollingPreferences(Loop *L, ScalarEvolution &SE,
|
||||
TTI::UnrollingPreferences &UP);
|
||||
|
|
Loading…
Reference in New Issue