[all-commits] [llvm/llvm-project] 586603: [mlir] Add `MLIR_USE_FALLBACK_TYPE_IDS` macro supp...
Stef Lindall via All-commits
all-commits at lists.llvm.org
Fri Feb 14 18:21:38 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 5866032834ae6afc548c8240ec7df2a8564ecd95
https://github.com/llvm/llvm-project/commit/5866032834ae6afc548c8240ec7df2a8564ecd95
Author: Stef Lindall <bethebunny at gmail.com>
Date: 2025-02-14 (Fri, 14 Feb 2025)
Changed paths:
M mlir/include/mlir/Support/TypeID.h
M mlir/lib/Support/TypeID.cpp
Log Message:
-----------
[mlir] Add `MLIR_USE_FALLBACK_TYPE_IDS` macro support for `TypeID` (#126999)
Adds a macro definition `MLIR_USE_FALLBACK_TYPE_IDS`. When this is
defined, the `MLIR_{DECLARE,DEFINE}_EXPLICIT_TYPE_ID` functions
explicitly fall back to string comparison.
This is useful for complex shared library setups
where it may be difficult to agree on a source of truth for specific
type ID resolution. As long as there is a single resolution for
`registerImplicitTypeID`, all type IDs can be reference a shared
registration. This way types which are logically shared across multiple
DSOs can have the same type ID, even if their definitions are
duplicated.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list