Home
last modified time | relevance | path

Searched refs:TargetTransformInfo (Results 1 – 25 of 36) sorted by relevance

12

/external/llvm/lib/Analysis/
DTargetTransformInfo.cpp24 INITIALIZE_ANALYSIS_GROUP(TargetTransformInfo, "Target Information", NoTTI)
25 char TargetTransformInfo::ID = 0;
27 TargetTransformInfo::~TargetTransformInfo() { in ~TargetTransformInfo()
30 void TargetTransformInfo::pushTTIStack(Pass *P) { in pushTTIStack()
32 PrevTTI = &P->getAnalysis<TargetTransformInfo>(); in pushTTIStack()
35 for (TargetTransformInfo *PTTI = PrevTTI; PTTI; PTTI = PTTI->PrevTTI) in pushTTIStack()
39 void TargetTransformInfo::getAnalysisUsage(AnalysisUsage &AU) const { in getAnalysisUsage()
40 AU.addRequired<TargetTransformInfo>(); in getAnalysisUsage()
43 unsigned TargetTransformInfo::getOperationCost(unsigned Opcode, Type *Ty, in getOperationCost()
48 unsigned TargetTransformInfo::getGEPCost( in getGEPCost()
[all …]
DCostModel.cpp64 const TargetTransformInfo *TTI;
86 TTI = getAnalysisIfAvailable<TargetTransformInfo>(); in runOnFunction()
123 static TargetTransformInfo::OperandValueKind getOperandInfo(Value *V) { in getOperandInfo()
124 TargetTransformInfo::OperandValueKind OpInfo = in getOperandInfo()
125 TargetTransformInfo::OK_AnyValue; in getOperandInfo()
129 OpInfo = TargetTransformInfo::OK_NonUniformConstantValue; in getOperandInfo()
131 OpInfo = TargetTransformInfo::OK_UniformConstantValue; in getOperandInfo()
413 TargetTransformInfo::OperandValueKind Op1VK = in getInstructionCost()
415 TargetTransformInfo::OperandValueKind Op2VK = in getInstructionCost()
496 return TTI->getShuffleCost(TargetTransformInfo::SK_Reverse, VecTypOp0, in getInstructionCost()
[all …]
DCodeMetrics.cpp26 const TargetTransformInfo &TTI) { in analyzeBasicBlock()
/external/llvm/lib/Target/PowerPC/
DPPCTargetTransformInfo.cpp40 class PPCTTI final : public ImmutablePass, public TargetTransformInfo {
60 TargetTransformInfo::getAnalysisUsage(AU); in getAnalysisUsage()
68 if (ID == &TargetTransformInfo::ID) in getAdjustedAnalysisPointer()
69 return (TargetTransformInfo*)this; in getAdjustedAnalysisPointer()
115 INITIALIZE_AG_PASS(PPCTTI, TargetTransformInfo, "ppctti",
140 return TargetTransformInfo::getIntImmCost(Imm, Ty); in getIntImmCost()
170 return TargetTransformInfo::getIntImmCost(IID, Idx, Imm, Ty); in getIntImmCost()
194 return TargetTransformInfo::getIntImmCost(Opcode, Idx, Imm, Ty); in getIntImmCost()
327 return TargetTransformInfo::getArithmeticInstrCost(Opcode, Ty, Op1Info, in getArithmeticInstrCost()
333 return TargetTransformInfo::getShuffleCost(Kind, Tp, Index, SubTp); in getShuffleCost()
[all …]
/external/llvm/lib/Target/XCore/
DXCoreTargetTransformInfo.cpp35 class XCoreTTI final : public ImmutablePass, public TargetTransformInfo {
51 TargetTransformInfo::getAnalysisUsage(AU); in getAnalysisUsage()
57 if (ID == &TargetTransformInfo::ID) in getAdjustedAnalysisPointer()
58 return (TargetTransformInfo*)this; in getAdjustedAnalysisPointer()
72 INITIALIZE_AG_PASS(XCoreTTI, TargetTransformInfo, "xcoretti",
/external/llvm/lib/Target/R600/
DAMDGPUTargetTransformInfo.cpp39 class AMDGPUTTI final : public ImmutablePass, public TargetTransformInfo {
62 TargetTransformInfo::getAnalysisUsage(AU); in getAnalysisUsage()
70 if (ID == &TargetTransformInfo::ID) in getAdjustedAnalysisPointer()
71 return (TargetTransformInfo *)this; in getAdjustedAnalysisPointer()
85 INITIALIZE_AG_PASS(AMDGPUTTI, TargetTransformInfo, "AMDGPUtti",
/external/llvm/lib/Transforms/Scalar/
DLoopUnrollPass.cpp113 AU.addRequired<TargetTransformInfo>(); in getAnalysisUsage()
123 void getUnrollingPreferences(Loop *L, const TargetTransformInfo &TTI, in getUnrollingPreferences()
124 TargetTransformInfo::UnrollingPreferences &UP) { in getUnrollingPreferences()
143 const TargetTransformInfo::UnrollingPreferences &UP,
152 const TargetTransformInfo::UnrollingPreferences &UP, in selectThresholds()
185 INITIALIZE_AG_DEPENDENCY(TargetTransformInfo) in INITIALIZE_AG_DEPENDENCY() argument
204 const TargetTransformInfo &TTI) { in ApproximateLoopSize()
279 unsigned PragmaCount, const TargetTransformInfo::UnrollingPreferences &UP, in selectUnrollCount()
325 const TargetTransformInfo &TTI = getAnalysis<TargetTransformInfo>(); in runOnLoop()
338 TargetTransformInfo::UnrollingPreferences UP; in runOnLoop()
DSimplifyCFGPass.cpp53 AU.addRequired<TargetTransformInfo>(); in getAnalysisUsage()
61 INITIALIZE_AG_DEPENDENCY(TargetTransformInfo) in INITIALIZE_AG_DEPENDENCY() argument
148 static bool iterativelySimplifyCFG(Function &F, const TargetTransformInfo &TTI, in iterativelySimplifyCFG()
175 const TargetTransformInfo &TTI = getAnalysis<TargetTransformInfo>(); in runOnFunction()
DPartiallyInlineLibCalls.cpp56 AU.addRequired<TargetTransformInfo>(); in getAnalysisUsage()
64 const TargetTransformInfo *TTI = &getAnalysis<TargetTransformInfo>(); in runOnFunction()
DConstantHoisting.cpp108 const TargetTransformInfo *TTI;
134 AU.addRequired<TargetTransformInfo>(); in getAnalysisUsage()
141 TTI = &getAnalysis<TargetTransformInfo>(); in setup()
179 INITIALIZE_AG_DEPENDENCY(TargetTransformInfo) in INITIALIZE_PASS_DEPENDENCY()
286 if (Cost > TargetTransformInfo::TCC_Basic) { in collectConstantCandidates()
DLoopRotation.cpp64 AU.addRequired<TargetTransformInfo>(); in getAnalysisUsage()
74 const TargetTransformInfo *TTI;
80 INITIALIZE_AG_DEPENDENCY(TargetTransformInfo) in INITIALIZE_AG_DEPENDENCY() argument
100 TTI = &getAnalysis<TargetTransformInfo>(); in runOnLoop()
DLoopIdiomRecognize.cpp137 const TargetTransformInfo *TTI;
179 AU.addRequired<TargetTransformInfo>(); in getAnalysisUsage()
203 const TargetTransformInfo *getTargetTransformInfo() { in getTargetTransformInfo()
204 return TTI ? TTI : (TTI = &getAnalysis<TargetTransformInfo>()); in getTargetTransformInfo()
225 INITIALIZE_AG_DEPENDENCY(TargetTransformInfo) in INITIALIZE_PASS_DEPENDENCY()
312 const TargetTransformInfo *TTI = LIR.getTargetTransformInfo(); in preliminaryScreen()
313 if (TTI->getPopcntSupport(32) != TargetTransformInfo::PSK_FastHardware) in preliminaryScreen()
DSeparateConstOffsetFromGEP.cpp237 AU.addRequired<TargetTransformInfo>(); in getAnalysisUsage()
302 INITIALIZE_AG_DEPENDENCY(TargetTransformInfo) in INITIALIZE_AG_DEPENDENCY() argument
699 TargetTransformInfo &TTI = getAnalysis<TargetTransformInfo>(); in splitGEP()
DTailRecursionElimination.cpp88 const TargetTransformInfo *TTI;
127 INITIALIZE_AG_DEPENDENCY(TargetTransformInfo) in INITIALIZE_AG_DEPENDENCY() argument
137 AU.addRequired<TargetTransformInfo>(); in getAnalysisUsage()
387 TTI = &getAnalysis<TargetTransformInfo>(); in runTRE()
/external/llvm/lib/Target/ARM/
DARMTargetTransformInfo.cpp36 class ARMTTI final : public ImmutablePass, public TargetTransformInfo {
61 TargetTransformInfo::getAnalysisUsage(AU); in getAnalysisUsage()
69 if (ID == &TargetTransformInfo::ID) in getAdjustedAnalysisPointer()
70 return (TargetTransformInfo*)this; in getAdjustedAnalysisPointer()
76 using TargetTransformInfo::getIntImmCost;
141 INITIALIZE_AG_PASS(ARMTTI, TargetTransformInfo, "armtti",
208 return TargetTransformInfo::getCastInstrCost(Opcode, Dst, Src); in getCastInstrCost()
379 return TargetTransformInfo::getCastInstrCost(Opcode, Dst, Src); in getCastInstrCost()
392 return TargetTransformInfo::getVectorInstrCost(Opcode, ValTy, Index); in getVectorInstrCost()
426 return TargetTransformInfo::getCmpSelInstrCost(Opcode, ValTy, CondTy); in getCmpSelInstrCost()
[all …]
/external/llvm/lib/Target/X86/
DX86TargetTransformInfo.cpp37 class X86TTI final : public ImmutablePass, public TargetTransformInfo {
61 TargetTransformInfo::getAnalysisUsage(AU); in getAnalysisUsage()
69 if (ID == &TargetTransformInfo::ID) in getAdjustedAnalysisPointer()
70 return (TargetTransformInfo*)this; in getAdjustedAnalysisPointer()
119 INITIALIZE_AG_PASS(X86TTI, TargetTransformInfo, "x86tti",
198 if (Op2Info == TargetTransformInfo::OK_UniformConstantValue && in getArithmeticInstrCost()
243 (Op2Info == TargetTransformInfo::OK_UniformConstantValue || in getArithmeticInstrCost()
244 Op2Info == TargetTransformInfo::OK_NonUniformConstantValue)) in getArithmeticInstrCost()
279 if (Op2Info == TargetTransformInfo::OK_UniformConstantValue && in getArithmeticInstrCost()
291 Op2Info == TargetTransformInfo::OK_NonUniformConstantValue) { in getArithmeticInstrCost()
[all …]
/external/llvm/include/llvm/Analysis/
DTargetTransformInfo.h39 class TargetTransformInfo {
46 TargetTransformInfo *PrevTTI;
54 TargetTransformInfo *TopTTI;
67 virtual ~TargetTransformInfo() = 0;
DCodeMetrics.h26 class TargetTransformInfo; variable
88 void analyzeBasicBlock(const BasicBlock *BB, const TargetTransformInfo &TTI);
DInlineCost.h25 class TargetTransformInfo; variable
102 const TargetTransformInfo *TTI;
DScalarEvolutionExpander.h25 class TargetTransformInfo; variable
134 const TargetTransformInfo *TTI = nullptr);
/external/llvm/lib/Target/AArch64/
DAArch64TargetTransformInfo.cpp38 class AArch64TTI final : public ImmutablePass, public TargetTransformInfo {
61 TargetTransformInfo::getAnalysisUsage(AU); in getAnalysisUsage()
69 if (ID == &TargetTransformInfo::ID) in getAdjustedAnalysisPointer()
70 return (TargetTransformInfo *)this; in getAdjustedAnalysisPointer()
132 INITIALIZE_AG_PASS(AArch64TTI, TargetTransformInfo, "aarch64tti",
304 return TargetTransformInfo::getCastInstrCost(Opcode, Dst, Src); in getCastInstrCost()
375 return TargetTransformInfo::getCastInstrCost(Opcode, Dst, Src); in getCastInstrCost()
413 return TargetTransformInfo::getArithmeticInstrCost(Opcode, Ty, Opd1Info, in getArithmeticInstrCost()
469 return TargetTransformInfo::getCmpSelInstrCost(Opcode, ValTy, CondTy); in getCmpSelInstrCost()
/external/llvm/lib/Transforms/Vectorize/
DSLPVectorizer.cpp393 TargetTransformInfo *Tti, TargetLibraryInfo *TLi, AliasAnalysis *Aa, in BoUpSLP()
583 TargetTransformInfo *TTI;
1153 return TTI->getShuffleCost(TargetTransformInfo::SK_Broadcast, VecTy, 0); in getEntryCost()
1233 TargetTransformInfo::OperandValueKind Op1VK = in getEntryCost()
1234 TargetTransformInfo::OK_AnyValue; in getEntryCost()
1235 TargetTransformInfo::OperandValueKind Op2VK = in getEntryCost()
1236 TargetTransformInfo::OK_UniformConstantValue; in getEntryCost()
1247 Op2VK = TargetTransformInfo::OK_AnyValue; in getEntryCost()
1254 if (Op2VK == TargetTransformInfo::OK_UniformConstantValue && in getEntryCost()
1256 Op2VK = TargetTransformInfo::OK_NonUniformConstantValue; in getEntryCost()
[all …]
/external/llvm/lib/CodeGen/
DBasicTargetTransformInfo.cpp35 class BasicTTI final : public ImmutablePass, public TargetTransformInfo {
61 TargetTransformInfo::getAnalysisUsage(AU); in getAnalysisUsage()
69 if (ID == &TargetTransformInfo::ID) in getAdjustedAnalysisPointer()
70 return (TargetTransformInfo*)this; in getAdjustedAnalysisPointer()
129 INITIALIZE_AG_PASS(BasicTTI, TargetTransformInfo, "basictti",
/external/llvm/lib/Analysis/IPA/
DInlineCost.cpp50 const TargetTransformInfo &TTI;
143 CallAnalyzer(const DataLayout *DL, const TargetTransformInfo &TTI, in CallAnalyzer()
427 return TargetTransformInfo::TCC_Free == TTI.getUserCost(&I); in visitPtrToInt()
458 return TargetTransformInfo::TCC_Free == TTI.getUserCost(&I); in visitIntToPtr()
475 return TargetTransformInfo::TCC_Free == TTI.getUserCost(&I); in visitCastInst()
865 if (TargetTransformInfo::TCC_Free == TTI.getUserCost(&I)) in visitInstruction()
1219 INITIALIZE_AG_DEPENDENCY(TargetTransformInfo)
1231 AU.addRequired<TargetTransformInfo>(); in getAnalysisUsage()
1236 TTI = &getAnalysis<TargetTransformInfo>(); in runOnSCC()
/external/llvm/include/llvm/Transforms/Utils/
DLocal.h40 class TargetTransformInfo; variable
138 bool SimplifyCFG(BasicBlock *BB, const TargetTransformInfo &TTI,

12