Lines Matching refs:CallInst
73 bool TDOFold(CallInst *CI, const FuncInfo &FInfo);
84 bool sincosUseNative(CallInst *aCI, const FuncInfo &FInfo);
89 bool evaluateCall(CallInst *aCI, const FuncInfo &FInfo);
102 bool fold_read_write_pipe(CallInst *CI, IRBuilder<> &B,
110 bool shouldReplaceLibcallWithIntrinsic(const CallInst *CI,
114 void replaceLibCallWithSimpleIntrinsic(IRBuilder<> &B, CallInst *CI,
117 bool tryReplaceLibcallWithSimpleIntrinsic(IRBuilder<> &B, CallInst *CI,
141 bool fold(CallInst *CI);
147 bool useNative(CallInst *CI);
153 static CallInst *CreateCallEx(IRB &B, FunctionCallee Callee, Value *Arg, in CreateCallEx()
155 CallInst *R = B.CreateCall(Callee, Arg, Name); in CreateCallEx()
162 static CallInst *CreateCallEx2(IRB &B, FunctionCallee Callee, Value *Arg1, in CreateCallEx2()
164 CallInst *R = B.CreateCall(Callee, {Arg1, Arg2}, Name); in CreateCallEx2()
454 bool AMDGPULibCalls::sincosUseNative(CallInst *aCI, const FuncInfo &FInfo) { in sincosUseNative()
475 CallInst::Create(sinExpr, opr0, "splitsin", aCI->getIterator()); in sincosUseNative()
477 CallInst::Create(cosExpr, opr0, "splitcos", aCI->getIterator()); in sincosUseNative()
490 bool AMDGPULibCalls::useNative(CallInst *aCI) { in useNative()
524 bool AMDGPULibCalls::fold_read_write_pipe(CallInst *CI, IRBuilder<> &B, in fold_read_write_pipe()
623 const CallInst *CI = cast<CallInst>(I); in isKnownIntegral()
648 bool AMDGPULibCalls::fold(CallInst *CI) { in fold()
765 CallInst *Call = cast<CallInst>(FPOp); in fold()
831 bool AMDGPULibCalls::TDOFold(CallInst *CI, const FuncInfo &FInfo) { in TDOFold()
1175 CallInst *CI = cast<CallInst>(FPOp); in fold_rootn()
1183 CallInst *NewCall = B.CreateUnaryIntrinsic(Intrinsic::sqrt, opr0, CI); in fold_rootn()
1229 CallInst *Sqrt = B.CreateUnaryIntrinsic(Intrinsic::sqrt, opr0, CI); in fold_rootn()
1258 bool AMDGPULibCalls::shouldReplaceLibcallWithIntrinsic(const CallInst *CI, in shouldReplaceLibcallWithIntrinsic()
1285 CallInst *CI, in replaceLibCallWithSimpleIntrinsic()
1306 IRBuilder<> &B, CallInst *CI, Intrinsic::ID IntrID, bool AllowMinSizeF32, in tryReplaceLibcallWithSimpleIntrinsic()
1342 CallInst *SinCos = CreateCallEx2(B, Fsincos, Arg, CastAlloc); in insertSinCos()
1365 CallInst *CI = cast<CallInst>(FPOp); in fold_sincos()
1386 SmallVector<CallInst *> SinCalls; in fold_sincos()
1387 SmallVector<CallInst *> CosCalls; in fold_sincos()
1388 SmallVector<CallInst *> SinCosCalls; in fold_sincos()
1405 CallInst *XI = dyn_cast<CallInst>(U); in fold_sincos()
1444 auto replaceTrigInsts = [](ArrayRef<CallInst *> Calls, Value *Res) { in fold_sincos()
1445 for (CallInst *C : Calls) in fold_sincos()
1625 bool AMDGPULibCalls::evaluateCall(CallInst *aCI, const FuncInfo &FInfo) { in evaluateCall()
1720 CallInst *CI = dyn_cast<CallInst>(I); in run()
1745 CallInst *CI = dyn_cast<CallInst>(I); in run()