================
@@ -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
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to