• Home
  • Raw
  • Download

Lines Matching refs:CallInst

76   bool replaceWithNative(CallInst *CI, const FuncInfo &FInfo);
81 bool TDOFold(CallInst *CI, const FuncInfo &FInfo);
86 bool fold_recip(CallInst *CI, IRBuilder<> &B, const FuncInfo &FInfo);
89 bool fold_divide(CallInst *CI, IRBuilder<> &B, const FuncInfo &FInfo);
92 bool fold_pow(CallInst *CI, IRBuilder<> &B, const FuncInfo &FInfo);
95 bool fold_rootn(CallInst *CI, IRBuilder<> &B, const FuncInfo &FInfo);
98 bool fold_fma_mad(CallInst *CI, IRBuilder<> &B, const FuncInfo &FInfo);
101 bool sincosUseNative(CallInst *aCI, const FuncInfo &FInfo);
106 bool evaluateCall(CallInst *aCI, FuncInfo &FInfo);
109 bool fold_exp(CallInst *CI, IRBuilder<> &B, const FuncInfo &FInfo);
112 bool fold_exp2(CallInst *CI, IRBuilder<> &B, const FuncInfo &FInfo);
115 bool fold_exp10(CallInst *CI, IRBuilder<> &B, const FuncInfo &FInfo);
118 bool fold_log(CallInst *CI, IRBuilder<> &B, const FuncInfo &FInfo);
121 bool fold_log2(CallInst *CI, IRBuilder<> &B, const FuncInfo &FInfo);
124 bool fold_log10(CallInst *CI, IRBuilder<> &B, const FuncInfo &FInfo);
127 bool fold_sqrt(CallInst *CI, IRBuilder<> &B, const FuncInfo &FInfo);
130 bool fold_sincos(CallInst * CI, IRBuilder<> &B, AliasAnalysis * AA);
133 bool fold_read_write_pipe(CallInst *CI, IRBuilder<> &B, FuncInfo &FInfo);
136 bool fold_wavefrontsize(CallInst *CI, IRBuilder<> &B);
139 BasicBlock::iterator getEntryIns(CallInst * UI);
141 AllocaInst* insertAlloca(CallInst * UI, IRBuilder<> &B, const char *prefix);
146 CallInst *CI;
148 bool isUnsafeMath(const CallInst *CI) const;
158 bool fold(CallInst *CI, AliasAnalysis *AA = nullptr);
163 bool useNative(CallInst *CI);
220 static CallInst *CreateCallEx(IRB &B, FunctionCallee Callee, Value *Arg, in INITIALIZE_PASS_DEPENDENCY()
222 CallInst *R = B.CreateCall(Callee, Arg, Name); in INITIALIZE_PASS_DEPENDENCY()
229 static CallInst *CreateCallEx2(IRB &B, FunctionCallee Callee, Value *Arg1, in CreateCallEx2()
231 CallInst *R = B.CreateCall(Callee, {Arg1, Arg2}, Name); in CreateCallEx2()
488 bool AMDGPULibCalls::isUnsafeMath(const CallInst *CI) const { in isUnsafeMath()
507 bool AMDGPULibCalls::sincosUseNative(CallInst *aCI, const FuncInfo &FInfo) { in sincosUseNative()
527 Value *sinval = CallInst::Create(sinExpr, opr0, "splitsin", aCI); in sincosUseNative()
528 Value *cosval = CallInst::Create(cosExpr, opr0, "splitcos", aCI); in sincosUseNative()
541 bool AMDGPULibCalls::useNative(CallInst *aCI) { in useNative()
574 bool AMDGPULibCalls::fold_read_write_pipe(CallInst *CI, IRBuilder<> &B, in fold_read_write_pipe()
635 bool AMDGPULibCalls::fold(CallInst *CI, AliasAnalysis *AA) { in fold()
731 bool AMDGPULibCalls::TDOFold(CallInst *CI, const FuncInfo &FInfo) { in TDOFold()
795 bool AMDGPULibCalls::replaceWithNative(CallInst *CI, const FuncInfo &FInfo) { in replaceWithNative()
817 bool AMDGPULibCalls::fold_recip(CallInst *CI, IRBuilder<> &B, in fold_recip()
835 bool AMDGPULibCalls::fold_divide(CallInst *CI, IRBuilder<> &B, in fold_divide()
865 bool AMDGPULibCalls::fold_pow(CallInst *CI, IRBuilder<> &B, in fold_pow()
1150 bool AMDGPULibCalls::fold_rootn(CallInst *CI, IRBuilder<> &B, in fold_rootn()
1204 bool AMDGPULibCalls::fold_fma_mad(CallInst *CI, IRBuilder<> &B, in fold_fma_mad()
1259 bool AMDGPULibCalls::fold_sqrt(CallInst *CI, IRBuilder<> &B, in fold_sqrt()
1277 bool AMDGPULibCalls::fold_sincos(CallInst *CI, IRBuilder<> &B, in fold_sincos()
1312 CallInst *UI = nullptr; in fold_sincos()
1314 CallInst *XI = dyn_cast_or_null<CallInst>(U); in fold_sincos()
1359 CallInst *Call = CreateCallEx2(B, Fsincos, UI->getArgOperand(0), P); in fold_sincos()
1381 bool AMDGPULibCalls::fold_wavefrontsize(CallInst *CI, IRBuilder<> &B) { in fold_wavefrontsize()
1405 BasicBlock::iterator AMDGPULibCalls::getEntryIns(CallInst * UI) { in getEntryIns()
1414 AllocaInst* AMDGPULibCalls::insertAlloca(CallInst *UI, IRBuilder<> &B, in insertAlloca()
1622 bool AMDGPULibCalls::evaluateCall(CallInst *aCI, FuncInfo &FInfo) { in evaluateCall()
1734 CallInst *CI = dyn_cast<CallInst>(I); in runOnFunction()
1761 CallInst *CI = dyn_cast<CallInst>(I); in runOnFunction()