[Mlir-commits] [mlir] [mlir][affine]introduce AffineSymbol trait and use it for using gpu.threadid op in the inner loops. (PR #118478)

Uday Bondhugula llvmlistbot at llvm.org
Sat Jan 11 14:24:14 PST 2025


bondhugula wrote:

> I designed AffineSymbol at the beginning by referring to constant's properties for design.
> 1.The ops should be pure.

But `gpu.thread_id` not pure! It's not marked so.

> 2.Yes.
> 3.Yes.

Why can't an `AffineSymbol` trait op as proposed here be allowed to have operand which are also in turn valid affine symbols? Can we generalize/extend this?

If "zero operand" is a hard implied property, the trait verifier should be checking for it, but it isn't in the PR.



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


More information about the Mlir-commits mailing list