[Mlir-commits] [mlir] [MLIR] Improve translation of DISubrange. (PR #93689)
Tobias Gysi
llvmlistbot at llvm.org
Mon Jun 3 11:22:35 PDT 2024
gysit wrote:
> I spent time on that suggestion today but I have not been able to make it work till now. Build error suggest that PointerUnion does not obey constraints that rest of the code is expecting. I guess some customized parsing/printing code needs to be written before it could be used. I also could not find an example of using an arbitrary type as parameter so it has mostly been trial and error.
Thanks for tying this!
You are right this probably needs a custom parser/printer a bit similar to `LLVM_DIParameter`. Unfortunately the current infrastructure does not provide a nice way to implement such sum types. Let's land as is then.
https://github.com/llvm/llvm-project/pull/93689
More information about the Mlir-commits
mailing list