================
@@ -42,11 +42,18 @@ class SPIRVTargetCIRGenInfo : public TargetCIRGenInfo {
if (!fd)
return;
+ auto func = mlir::cast<cir::FuncOp>(global);
+
if (cgm.getLangOpts().OpenCL &&
DeviceKernelAttr::isOpenCLSpelling(fd->getAttr<DeviceKernelAttr>())) {
- auto func = mlir::cast<cir::FuncOp>(global);
func.setCallingConv(cir::CallingConv::SpirKernel);
+ return;
}
+
+ if (cgm.getLangOpts().HIP &&
+ cgm.getTriple().getVendor() == llvm::Triple::AMD &&
----------------
aobolensk wrote:
Removed the triple check
https://github.com/llvm/llvm-project/pull/214246
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits