aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectExpression.cpp
diff options
context:
space:
mode:
authorRiver Riddle <riddleriver@gmail.com>2022-02-22 14:49:12 -0800
committerRiver Riddle <riddleriver@gmail.com>2022-03-16 22:15:25 -0700
commit77eee5795e2cf753e4400fb089d01018417c4ee0 (patch)
tree601a8dc0788a018c5cf69b2e3c2459c87a64d892 /lldb/source/Commands/CommandObjectExpression.cpp
parent8212b41b7b7d76d18b29494cd0f141959e27c187 (diff)
downloadllvm-77eee5795e2cf753e4400fb089d01018417c4ee0.zip
llvm-77eee5795e2cf753e4400fb089d01018417c4ee0.tar.gz
llvm-77eee5795e2cf753e4400fb089d01018417c4ee0.tar.bz2
[mlir] Refactor DialectRegistry delayed interface support into a general DialectExtension mechanism
The current dialect registry allows for attaching delayed interfaces, that are added to attrs/dialects/ops/etc. when the owning dialect gets loaded. This is clunky for quite a few reasons, e.g. each interface type has a separate tracking structure, and is also quite limiting. This commit refactors this delayed mutation of dialect constructs into a more general DialectExtension mechanism. This mechanism is essentially a registration callback that is invoked when a set of dialects have been loaded. This allows for attaching interfaces directly on the loaded constructs, and also allows for loading new dependent dialects. The latter of which is extremely useful as it will now enable dependent dialects to only apply in the contexts in which they are necessary. For example, a dialect dependency can now be conditional on if a user actually needs the interface that relies on it. Differential Revision: https://reviews.llvm.org/D120367
Diffstat (limited to 'lldb/source/Commands/CommandObjectExpression.cpp')
0 files changed, 0 insertions, 0 deletions