[Mlir-commits] [mlir] [mlir][LLVM] Add support for constant struct with multiple fields (PR #102752)

Sirui Mu llvmlistbot at llvm.org
Tue Aug 20 10:24:17 PDT 2024


Lancern wrote:

> So from an LLVM dialect point of view the problem is about a simple struct with two integer elements?

Yes, that's my use case.

> If we do it, we need have a proper verifier and the documentation should clearly specify what kind of structs are supported. E.g. we could initially support structs without pointers and without nesting.

I agree with this. I updated the documentation and listed the constraints on the LLVM struct type of the result constant.

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


More information about the Mlir-commits mailing list