aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Demangle/RustDemangle.cpp
diff options
context:
space:
mode:
authorRiver Riddle <riddleriver@gmail.com>2021-05-18 14:31:33 -0700
committerRiver Riddle <riddleriver@gmail.com>2021-05-18 14:40:32 -0700
commit2257e4a70e4aabe7255161f3a54922d7dcf1c059 (patch)
tree395259b1964cc907d78ea0f5e57c5b0575395b8c /llvm/lib/Demangle/RustDemangle.cpp
parent93cb71a4649ac71b9aca48ba5496f11ffbc4b26d (diff)
downloadllvm-2257e4a70e4aabe7255161f3a54922d7dcf1c059.zip
llvm-2257e4a70e4aabe7255161f3a54922d7dcf1c059.tar.gz
llvm-2257e4a70e4aabe7255161f3a54922d7dcf1c059.tar.bz2
[mlir] Allow derived rewrite patterns to define a non-virtual `initialize` hook
This is a hook that allows for providing custom initialization of the pattern, e.g. if it has bounded recursion, setting the debug name, etc., without needing to define a custom constructor. A non-virtual hook was chosen to avoid polluting the vtable with code that we really just want to be inlined when constructing the pattern. The alternative to this would be to just define a constructor for each pattern, this unfortunately creates a lot of otherwise unnecessary boiler plate for a lot of patterns and a hook provides a much simpler/cleaner interface for the very common case. Differential Revision: https://reviews.llvm.org/D102440
Diffstat (limited to 'llvm/lib/Demangle/RustDemangle.cpp')
0 files changed, 0 insertions, 0 deletions