[Mlir-commits] [mlir] [mlir] Add `MLIR_USE_FALLBACK_TYPE_IDS` macro support for `TypeID` (PR #126999)

Mehdi Amini llvmlistbot at llvm.org
Sun Feb 16 06:02:59 PST 2025


joker-eph wrote:

While adding the macro here won't hurt much, the feature seems quite incomplete to me: there is no CMake option to enable it for example. Also it isn't documented right now.
More importantly, with respect to the end goal of making MLIR resilient to shared-libraries builds where TypeID are duplicated, it's not clear that this would cover uses of `TypeID::get<T>()` ; that is all of these are still likely broken in the scenario you're trying to address: https://github.com/search?q=repo%3Allvm%2Fllvm-project%20TypeID%3A%3Aget&type=code

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


More information about the Mlir-commits mailing list