[Mlir-commits] [mlir] [mlir] Refactor opaque properties to make them type-safe (PR #185157)

Fabian Mora llvmlistbot at llvm.org
Sat Mar 21 10:23:49 PDT 2026


fabianmcg wrote:

> We need the void constructioor because `PropertyRef prop;` makes sense in the same way that `Attribute attr;` does

I don't get the comment. In what circumstances are we doing/is it desirable `PropRef prop(opaqueId, void*)`? If it's truly and absolutely needed, I think it's better a  methods similar to fromOpaquePtr, getAsOpaquePtr.

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


More information about the Mlir-commits mailing list