[flang-commits] [flang] [flang][cuda] Update target rewrite to work on gpu.func (PR #119283)
Valentin Clement バレンタイン クレメン via flang-commits
flang-commits at lists.llvm.org
Tue Dec 10 09:30:13 PST 2024
================
@@ -719,12 +726,15 @@ class TargetRewrite : public fir::impl::TargetRewritePassBase<TargetRewrite> {
if (targetFeaturesAttr)
fn->setAttr("target_features", targetFeaturesAttr);
- convertSignature(fn);
+ convertSignature<mlir::func::ReturnOp>(fn);
----------------
clementval wrote:
```suggestion
convertSignature<mlir::func::ReturnOp, mlir::func::FuncOp>(fn);
```
https://github.com/llvm/llvm-project/pull/119283
More information about the flang-commits
mailing list