aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/MemoryBuffer.cpp
diff options
context:
space:
mode:
authorRiver Riddle <riddleriver@gmail.com>2022-11-09 20:59:40 -0800
committerRiver Riddle <riddleriver@gmail.com>2022-11-12 14:38:45 -0800
commite50941b8d7bad9af091286afe45403b554824ce3 (patch)
tree536c49002ab125bafbba3593721164764782a1b5 /llvm/lib/Support/MemoryBuffer.cpp
parentdf5ea69105189e71b47aaa96a9060863c4101109 (diff)
downloadllvm-e50941b8d7bad9af091286afe45403b554824ce3.zip
llvm-e50941b8d7bad9af091286afe45403b554824ce3.tar.gz
llvm-e50941b8d7bad9af091286afe45403b554824ce3.tar.bz2
[mlir] Add a new AttrTypeReplacer class to simplify sub element replacements
We currently only have the SubElement interface API for attribute/type replacement, but this suffers from several issues; namely that it doesn't allow caching across multiple replacements (very common), and also creates a somewhat awkward/limited API. The new AttrTypeReplacer class allows for registering replacements using a much cleaner API, similarly to the TypeConverter class, removes a lot of manual interaction with the sub element interfaces, and also better enables large scale replacements. Differential Revision: https://reviews.llvm.org/D137764
Diffstat (limited to 'llvm/lib/Support/MemoryBuffer.cpp')
0 files changed, 0 insertions, 0 deletions