Lines Matching refs:CallInst
72 bool TDOFold(CallInst *CI, const FuncInfo &FInfo);
83 bool sincosUseNative(CallInst *aCI, const FuncInfo &FInfo);
88 bool evaluateCall(CallInst *aCI, const FuncInfo &FInfo);
101 bool fold_read_write_pipe(CallInst *CI, IRBuilder<> &B,
109 bool shouldReplaceLibcallWithIntrinsic(const CallInst *CI,
113 void replaceLibCallWithSimpleIntrinsic(IRBuilder<> &B, CallInst *CI,
116 bool tryReplaceLibcallWithSimpleIntrinsic(IRBuilder<> &B, CallInst *CI,
140 bool fold(CallInst *CI);
146 bool useNative(CallInst *CI);
152 static CallInst *CreateCallEx(IRB &B, FunctionCallee Callee, Value *Arg, in CreateCallEx()
154 CallInst *R = B.CreateCall(Callee, Arg, Name); in CreateCallEx()
161 static CallInst *CreateCallEx2(IRB &B, FunctionCallee Callee, Value *Arg1, in CreateCallEx2()
163 CallInst *R = B.CreateCall(Callee, {Arg1, Arg2}, Name); in CreateCallEx2()
453 bool AMDGPULibCalls::sincosUseNative(CallInst *aCI, const FuncInfo &FInfo) { in sincosUseNative()
473 Value *sinval = CallInst::Create(sinExpr, opr0, "splitsin", aCI); in sincosUseNative()
474 Value *cosval = CallInst::Create(cosExpr, opr0, "splitcos", aCI); in sincosUseNative()
487 bool AMDGPULibCalls::useNative(CallInst *aCI) { in useNative()
521 bool AMDGPULibCalls::fold_read_write_pipe(CallInst *CI, IRBuilder<> &B, in fold_read_write_pipe()
612 const CallInst *CI = cast<CallInst>(I); in isKnownIntegral()
637 bool AMDGPULibCalls::fold(CallInst *CI) { in fold()
752 CallInst *Call = cast<CallInst>(FPOp); in fold()
817 bool AMDGPULibCalls::TDOFold(CallInst *CI, const FuncInfo &FInfo) { in TDOFold()
1216 bool AMDGPULibCalls::shouldReplaceLibcallWithIntrinsic(const CallInst *CI, in shouldReplaceLibcallWithIntrinsic()
1243 CallInst *CI, in replaceLibCallWithSimpleIntrinsic()
1264 IRBuilder<> &B, CallInst *CI, Intrinsic::ID IntrID, bool AllowMinSizeF32, in tryReplaceLibcallWithSimpleIntrinsic()
1300 CallInst *SinCos = CreateCallEx2(B, Fsincos, Arg, CastAlloc); in insertSinCos()
1323 CallInst *CI = cast<CallInst>(FPOp); in fold_sincos()
1344 SmallVector<CallInst *> SinCalls; in fold_sincos()
1345 SmallVector<CallInst *> CosCalls; in fold_sincos()
1346 SmallVector<CallInst *> SinCosCalls; in fold_sincos()
1363 CallInst *XI = dyn_cast<CallInst>(U); in fold_sincos()
1402 auto replaceTrigInsts = [](ArrayRef<CallInst *> Calls, Value *Res) { in fold_sincos()
1403 for (CallInst *C : Calls) in fold_sincos()
1583 bool AMDGPULibCalls::evaluateCall(CallInst *aCI, const FuncInfo &FInfo) { in evaluateCall()
1678 CallInst *CI = dyn_cast<CallInst>(I); in run()
1703 CallInst *CI = dyn_cast<CallInst>(I); in run()