Lines Matching refs:CallInst
62 bool replaceWithNative(CallInst *CI, const FuncInfo &FInfo);
67 bool TDOFold(CallInst *CI, const FuncInfo &FInfo);
72 bool fold_recip(CallInst *CI, IRBuilder<> &B, const FuncInfo &FInfo);
75 bool fold_divide(CallInst *CI, IRBuilder<> &B, const FuncInfo &FInfo);
78 bool fold_pow(CallInst *CI, IRBuilder<> &B, const FuncInfo &FInfo);
81 bool fold_rootn(CallInst *CI, IRBuilder<> &B, const FuncInfo &FInfo);
84 bool fold_fma_mad(CallInst *CI, IRBuilder<> &B, const FuncInfo &FInfo);
87 bool sincosUseNative(CallInst *aCI, const FuncInfo &FInfo);
92 bool evaluateCall(CallInst *aCI, FuncInfo &FInfo);
95 bool fold_exp(CallInst *CI, IRBuilder<> &B, const FuncInfo &FInfo);
98 bool fold_exp2(CallInst *CI, IRBuilder<> &B, const FuncInfo &FInfo);
101 bool fold_exp10(CallInst *CI, IRBuilder<> &B, const FuncInfo &FInfo);
104 bool fold_log(CallInst *CI, IRBuilder<> &B, const FuncInfo &FInfo);
107 bool fold_log2(CallInst *CI, IRBuilder<> &B, const FuncInfo &FInfo);
110 bool fold_log10(CallInst *CI, IRBuilder<> &B, const FuncInfo &FInfo);
113 bool fold_sqrt(CallInst *CI, IRBuilder<> &B, const FuncInfo &FInfo);
116 bool fold_sincos(CallInst * CI, IRBuilder<> &B, AliasAnalysis * AA);
119 bool fold_read_write_pipe(CallInst *CI, IRBuilder<> &B, FuncInfo &FInfo);
122 bool fold_wavefrontsize(CallInst *CI, IRBuilder<> &B);
125 BasicBlock::iterator getEntryIns(CallInst * UI);
127 AllocaInst* insertAlloca(CallInst * UI, IRBuilder<> &B, const char *prefix);
132 CallInst *CI;
134 bool isUnsafeMath(const CallInst *CI) const;
144 bool fold(CallInst *CI, AliasAnalysis *AA = nullptr);
149 bool useNative(CallInst *CI);
206 static CallInst *CreateCallEx(IRB &B, FunctionCallee Callee, Value *Arg, in INITIALIZE_PASS_DEPENDENCY()
208 CallInst *R = B.CreateCall(Callee, Arg, Name); in INITIALIZE_PASS_DEPENDENCY()
215 static CallInst *CreateCallEx2(IRB &B, FunctionCallee Callee, Value *Arg1, in CreateCallEx2()
217 CallInst *R = B.CreateCall(Callee, {Arg1, Arg2}, Name); in CreateCallEx2()
474 bool AMDGPULibCalls::isUnsafeMath(const CallInst *CI) const { in isUnsafeMath()
493 bool AMDGPULibCalls::sincosUseNative(CallInst *aCI, const FuncInfo &FInfo) { in sincosUseNative()
513 Value *sinval = CallInst::Create(sinExpr, opr0, "splitsin", aCI); in sincosUseNative()
514 Value *cosval = CallInst::Create(cosExpr, opr0, "splitcos", aCI); in sincosUseNative()
527 bool AMDGPULibCalls::useNative(CallInst *aCI) { in useNative()
560 bool AMDGPULibCalls::fold_read_write_pipe(CallInst *CI, IRBuilder<> &B, in fold_read_write_pipe()
621 bool AMDGPULibCalls::fold(CallInst *CI, AliasAnalysis *AA) { in fold()
717 bool AMDGPULibCalls::TDOFold(CallInst *CI, const FuncInfo &FInfo) { in TDOFold()
781 bool AMDGPULibCalls::replaceWithNative(CallInst *CI, const FuncInfo &FInfo) { in replaceWithNative()
803 bool AMDGPULibCalls::fold_recip(CallInst *CI, IRBuilder<> &B, in fold_recip()
821 bool AMDGPULibCalls::fold_divide(CallInst *CI, IRBuilder<> &B, in fold_divide()
851 bool AMDGPULibCalls::fold_pow(CallInst *CI, IRBuilder<> &B, in fold_pow()
1136 bool AMDGPULibCalls::fold_rootn(CallInst *CI, IRBuilder<> &B, in fold_rootn()
1190 bool AMDGPULibCalls::fold_fma_mad(CallInst *CI, IRBuilder<> &B, in fold_fma_mad()
1245 bool AMDGPULibCalls::fold_sqrt(CallInst *CI, IRBuilder<> &B, in fold_sqrt()
1263 bool AMDGPULibCalls::fold_sincos(CallInst *CI, IRBuilder<> &B, in fold_sincos()
1298 CallInst *UI = nullptr; in fold_sincos()
1300 CallInst *XI = dyn_cast_or_null<CallInst>(U); in fold_sincos()
1345 CallInst *Call = CreateCallEx2(B, Fsincos, UI->getArgOperand(0), P); in fold_sincos()
1367 bool AMDGPULibCalls::fold_wavefrontsize(CallInst *CI, IRBuilder<> &B) { in fold_wavefrontsize()
1391 BasicBlock::iterator AMDGPULibCalls::getEntryIns(CallInst * UI) { in getEntryIns()
1400 AllocaInst* AMDGPULibCalls::insertAlloca(CallInst *UI, IRBuilder<> &B, in insertAlloca()
1608 bool AMDGPULibCalls::evaluateCall(CallInst *aCI, FuncInfo &FInfo) { in evaluateCall()
1720 CallInst *CI = dyn_cast<CallInst>(I); in runOnFunction()
1753 CallInst *CI = dyn_cast<CallInst>(I); in run()
1781 CallInst *CI = dyn_cast<CallInst>(I); in runOnFunction()
1808 CallInst *CI = dyn_cast<CallInst>(I); in run()