aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorRiver Riddle <riverriddle@google.com>2019-12-30 20:49:47 -0800
committerRiver Riddle <riverriddle@riverriddle-macbookpro.roam.corp.google.com>2019-12-30 20:50:07 -0800
commit0d6ebb4f0dd7ca81bdfc2a210b1d5ef46e0c9587 (patch)
tree5cb6ed6cdbf2997ce4132751a5ce3e46c3c80ae0 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parent787e078f3ec89bce82a789d2ee01beecc98db4d7 (diff)
downloadllvm-0d6ebb4f0dd7ca81bdfc2a210b1d5ef46e0c9587.zip
llvm-0d6ebb4f0dd7ca81bdfc2a210b1d5ef46e0c9587.tar.gz
llvm-0d6ebb4f0dd7ca81bdfc2a210b1d5ef46e0c9587.tar.bz2
[mlir] Refactor operation results to use a single use list for all results of the operation.
Summary: A new class is added, IRMultiObjectWithUseList, that allows for representing an IR use list that holds multiple sub values(used in this case for OpResults). This class provides all of the same functionality as the base IRObjectWithUseList, but for specific sub-values. This saves a word per operation result and is a necessary step in optimizing the layout of operation results. For now the use list is placed on the operation itself, so zero-result operations grow by a word. When the work for optimizing layout is finished, this can be moved back to being a trailing object based on memory/runtime benchmarking. Reviewed By: jpienaar Differential Revision: https://reviews.llvm.org/D71955
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions