[Mlir-commits] [mlir] [mlir]introduce UnrollScopeInterface and apply it to funcOp and gpu.launch Op. (PR #123904)

lonely eagle llvmlistbot at llvm.org
Fri Jan 24 11:47:54 PST 2025


linuxlonelyeagle wrote:

> I claim that the PR you actually want is to change `AffineLoopUnrollPass` to work on an arbitrary operation, thus allowing you to `-pass-pipeline='builtin.module(func.func(gpu.launch(affine-loop-unroll)))`
> 
> I can't think why the affine loop unroller needs to run on functions specifically

But one thing is that it doesn't matter if unroll is done in a funcOp or on the whole moduleOp. The IR of gpu.launch is indeed broken by the unroll pass. This PR is needed.An unroll follow-up on the whole moduleOp I'd be happy to implement it. If you think it makes sense.

https://github.com/llvm/llvm-project/pull/123904


More information about the Mlir-commits mailing list