[Mlir-commits] [mlir] Adding mlir models (PR #141158)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Tue May 27 12:10:31 PDT 2025


================

----------------
Jaddyen wrote:

The best I could do with this (for now) was to have a bool flag that when set, we check that some other 2 flags are also set. When I tried to have all these cl options initialized in `TranslateToCpp.cpp`, I was unable to have the options in the terminal. My understanding is that `registerToCppTranslation` is probably called when loading cl options whereas `translateToCpp` is not hence we can't initialize the cl options in `translateToCpp` and expect to see them later.
I may have missed something about how mlir works. I'm open to discussing this further.

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


More information about the Mlir-commits mailing list