[llvm] [mlir] [ADT] Reduce boilerplate in DenseSet (NFC) (PR #158456)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 14 09:17:10 PDT 2025
kazutakahirata wrote:
> Could we do something else and retain the `DenseSet`/`SmallDenseSet` classes so that we can still use forward declaration and have nicer named produced by tooling?
@kuhar I've put in one more layer. A type alias eliminates the boiler plate. The user facing "forwarding" class allows us to keep the forward declaration in mlir as is. We still manage to reduce the total line count.
https://github.com/llvm/llvm-project/pull/158456
More information about the llvm-commits
mailing list