[Mlir-commits] [mlir] [mlir][IR] Add `getPropertyAsAttr` and `setPropertyFromAttr` methods. (PR #150060)

Mehdi Amini llvmlistbot at llvm.org
Mon Jul 28 11:56:09 PDT 2025


joker-eph wrote:

> Attrs are a mechanism to specify constant information, the specific semantics are defined by the attr itself [1],

I'm confused: I don't see a "meaning" here? If we're talking semantics and look at for example an IntegerAttr and you're saying that the semantics is that it models an integer, then I don't quite see how different it is from a `int` property...

>  An EnumAttr has semantics and syntax outside an operation

What is the semantics outside of an operation that an EnumAttr has that an EnumProp does not?



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


More information about the Mlir-commits mailing list