aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/TapiFile.cpp
diff options
context:
space:
mode:
authorRiver Riddle <riddleriver@gmail.com>2020-10-16 11:56:52 -0700
committerRiver Riddle <riddleriver@gmail.com>2020-10-16 12:08:48 -0700
commit7bc7d0ac7ae2e2c578463758422214e80ce5e056 (patch)
treebbd455f9568863dca914ae6bc1f6548d0cedf136 /llvm/lib/Object/TapiFile.cpp
parentf3df3b58e7dd7c400f9c18d16d92631823705ebd (diff)
downloadllvm-7bc7d0ac7ae2e2c578463758422214e80ce5e056.zip
llvm-7bc7d0ac7ae2e2c578463758422214e80ce5e056.tar.gz
llvm-7bc7d0ac7ae2e2c578463758422214e80ce5e056.tar.bz2
[mlir] Optimize symbol related checks in SymbolDCE
This revision contains two optimizations related to symbol checking: * Optimize SymbolOpInterface to only check for a name attribute if the operation is an optional symbol. This removes an otherwise unnecessary attribute lookup from a majority of symbols. * Add a new SymbolTableCollection class to represent a collection of SymbolTables. This allows for perfoming non-flat symbol lookups in O(1) time by caching SymbolTables for symbol table operations. This class is very useful for algorithms that operate on multiple symbol tables, either recursively or not. Differential Revision: https://reviews.llvm.org/D89505
Diffstat (limited to 'llvm/lib/Object/TapiFile.cpp')
0 files changed, 0 insertions, 0 deletions