[clang] [Clang][AMDGPU] Add a builtin for llvm.amdgcn.make.buffer.rsrc intrinsic (PR #95276)
Matt Arsenault via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 17 23:05:30 PDT 2024
================
@@ -19082,6 +19082,15 @@ Value *CodeGenFunction::EmitAMDGPUBuiltinExpr(unsigned BuiltinID,
CGM.getIntrinsic(Intrinsic::amdgcn_s_sendmsg_rtn, {ResultType});
return Builder.CreateCall(F, {Arg});
}
+ case AMDGPU::BI__builtin_amdgcn_make_buffer_rsrc: {
+ llvm::Value *Base = EmitScalarExpr(E->getArg(0));
----------------
arsenm wrote:
I guess you need this just for the pointer type mangling. Can you abuse the CreateUnary* functions for this case?
https://github.com/llvm/llvm-project/pull/95276
More information about the cfe-commits
mailing list