[clang] [llvm] [CIR][AMDGPU][SPIR-V] Wire AMDGCN SPIR-V into the call convention lowering pass (PR #238348)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 27 02:44:01 PST 2026
================
@@ -47,6 +48,15 @@ const llvm::abi::TargetInfo &AMDGPUABIClassifier::getTargetInfo(cir::FuncOp) {
cir::CIRDialect::getLoweringOptionsAttrName());
llvm::abi::AMDGPUABIOptions opts;
opts.CoerceGenericPtrArgToGlobal = langOpts && langOpts.getHip();
----------------
skc7 wrote:
classic codegen enables `CoerceGenericPtrArgToGlobal` for any device compile ([isTargetDevice()](https://github.com/llvm/llvm-project/blob/4575500af97b282bd799b50c29669c8d2fc6e258/clang/lib/CodeGen/CodeGenModule.cpp#L456)). Could we follow the classic here, may be see the lowering options and set when triple is SPIR-V?
https://github.com/llvm/llvm-project/pull/238348
More information about the cfe-commits
mailing list