struct DataLayout; struct TargetLoweringBase { void getTypeLegalizationCost(const DataLayout &DL) const; }; struct TargetTransformInfoImplBase { const DataLayout &DL; }; template struct TargetTransformInfoImplCRTPBase : public TargetTransformInfoImplBase {}; template struct BasicTTIImplBase : public TargetTransformInfoImplCRTPBase { const TargetLoweringBase *getTLI() const; using TargetTransformInfoImplBase::DL; void getArithmeticInstrCost() { const TargetLoweringBase *TLI = getTLI(); TLI->getTypeLegalizationCost(DL); } };