Lines Matching refs:CallInst

64   bool TDOFold(CallInst *CI, const FuncInfo &FInfo);
69 bool fold_recip(CallInst *CI, IRBuilder<> &B, const FuncInfo &FInfo);
72 bool fold_divide(CallInst *CI, IRBuilder<> &B, const FuncInfo &FInfo);
75 bool fold_pow(CallInst *CI, IRBuilder<> &B, const FuncInfo &FInfo);
78 bool fold_rootn(CallInst *CI, IRBuilder<> &B, const FuncInfo &FInfo);
81 bool fold_fma_mad(CallInst *CI, IRBuilder<> &B, const FuncInfo &FInfo);
84 bool sincosUseNative(CallInst *aCI, const FuncInfo &FInfo);
89 bool evaluateCall(CallInst *aCI, const FuncInfo &FInfo);
92 bool fold_sqrt(CallInst *CI, IRBuilder<> &B, const FuncInfo &FInfo);
95 bool fold_sincos(CallInst * CI, IRBuilder<> &B, AliasAnalysis * AA);
98 bool fold_read_write_pipe(CallInst *CI, IRBuilder<> &B,
102 bool fold_wavefrontsize(CallInst *CI, IRBuilder<> &B);
105 BasicBlock::iterator getEntryIns(CallInst * UI);
107 AllocaInst* insertAlloca(CallInst * UI, IRBuilder<> &B, const char *prefix);
112 CallInst *CI;
114 bool isUnsafeMath(const CallInst *CI) const;
124 bool fold(CallInst *CI, AliasAnalysis *AA = nullptr);
129 bool useNative(CallInst *CI);
186 static CallInst *CreateCallEx(IRB &B, FunctionCallee Callee, Value *Arg, in INITIALIZE_PASS_DEPENDENCY()
188 CallInst *R = B.CreateCall(Callee, Arg, Name); in INITIALIZE_PASS_DEPENDENCY()
195 static CallInst *CreateCallEx2(IRB &B, FunctionCallee Callee, Value *Arg1, in CreateCallEx2()
197 CallInst *R = B.CreateCall(Callee, {Arg1, Arg2}, Name); in CreateCallEx2()
446 bool AMDGPULibCalls::isUnsafeMath(const CallInst *CI) const { in isUnsafeMath()
465 bool AMDGPULibCalls::sincosUseNative(CallInst *aCI, const FuncInfo &FInfo) { in sincosUseNative()
485 Value *sinval = CallInst::Create(sinExpr, opr0, "splitsin", aCI); in sincosUseNative()
486 Value *cosval = CallInst::Create(cosExpr, opr0, "splitcos", aCI); in sincosUseNative()
499 bool AMDGPULibCalls::useNative(CallInst *aCI) { in useNative()
532 bool AMDGPULibCalls::fold_read_write_pipe(CallInst *CI, IRBuilder<> &B, in fold_read_write_pipe()
593 bool AMDGPULibCalls::fold(CallInst *CI, AliasAnalysis *AA) { in fold()
690 bool AMDGPULibCalls::TDOFold(CallInst *CI, const FuncInfo &FInfo) { in TDOFold()
754 bool AMDGPULibCalls::fold_recip(CallInst *CI, IRBuilder<> &B, in fold_recip()
772 bool AMDGPULibCalls::fold_divide(CallInst *CI, IRBuilder<> &B, in fold_divide()
802 bool AMDGPULibCalls::fold_pow(CallInst *CI, IRBuilder<> &B, in fold_pow()
1087 bool AMDGPULibCalls::fold_rootn(CallInst *CI, IRBuilder<> &B, in fold_rootn()
1141 bool AMDGPULibCalls::fold_fma_mad(CallInst *CI, IRBuilder<> &B, in fold_fma_mad()
1196 bool AMDGPULibCalls::fold_sqrt(CallInst *CI, IRBuilder<> &B, in fold_sqrt()
1214 bool AMDGPULibCalls::fold_sincos(CallInst *CI, IRBuilder<> &B, in fold_sincos()
1249 CallInst *UI = nullptr; in fold_sincos()
1251 CallInst *XI = dyn_cast_or_null<CallInst>(U); in fold_sincos()
1296 CallInst *Call = CreateCallEx2(B, Fsincos, UI->getArgOperand(0), P); in fold_sincos()
1318 bool AMDGPULibCalls::fold_wavefrontsize(CallInst *CI, IRBuilder<> &B) { in fold_wavefrontsize()
1341 BasicBlock::iterator AMDGPULibCalls::getEntryIns(CallInst * UI) { in getEntryIns()
1350 AllocaInst* AMDGPULibCalls::insertAlloca(CallInst *UI, IRBuilder<> &B, in insertAlloca()
1558 bool AMDGPULibCalls::evaluateCall(CallInst *aCI, const FuncInfo &FInfo) { in evaluateCall()
1671 CallInst *CI = dyn_cast<CallInst>(I); in runOnFunction()
1705 CallInst *CI = dyn_cast<CallInst>(I); in run()
1733 CallInst *CI = dyn_cast<CallInst>(I); in runOnFunction()
1761 CallInst *CI = dyn_cast<CallInst>(I); in run()