forked from OSchip/llvm-project
CGBuiltin: Remove uses of deprecated CreateCall overloads
Reviewers: t.p.northover Subscribers: cfe-commits, llvm-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D74673
This commit is contained in:
parent
9b12dc98fd
commit
bf197304a6
|
@ -13303,7 +13303,7 @@ Value *CodeGenFunction::EmitAMDGPUBuiltinExpr(unsigned BuiltinID,
|
|||
llvm::Value *Src2 = EmitScalarExpr(E->getArg(2));
|
||||
|
||||
// FIXME-GFX10: How should 32 bit mask be handled?
|
||||
Value *F = CGM.getIntrinsic(Intrinsic::amdgcn_icmp,
|
||||
Function *F = CGM.getIntrinsic(Intrinsic::amdgcn_icmp,
|
||||
{ Builder.getInt64Ty(), Src0->getType() });
|
||||
return Builder.CreateCall(F, { Src0, Src1, Src2 });
|
||||
}
|
||||
|
@ -13314,7 +13314,7 @@ Value *CodeGenFunction::EmitAMDGPUBuiltinExpr(unsigned BuiltinID,
|
|||
llvm::Value *Src2 = EmitScalarExpr(E->getArg(2));
|
||||
|
||||
// FIXME-GFX10: How should 32 bit mask be handled?
|
||||
Value *F = CGM.getIntrinsic(Intrinsic::amdgcn_fcmp,
|
||||
Function *F = CGM.getIntrinsic(Intrinsic::amdgcn_fcmp,
|
||||
{ Builder.getInt64Ty(), Src0->getType() });
|
||||
return Builder.CreateCall(F, { Src0, Src1, Src2 });
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue