aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorRob Suderman <rob.suderman@gmail.com>2020-04-23 19:01:51 -0700
committerRiver Riddle <riddleriver@gmail.com>2020-04-23 19:02:15 -0700
commit5b89c1dd68966b7fc8d19a0197da4f95eaab066a (patch)
treed20088758894e3434aab7566e53af311006bac0d /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parent2c3ee8812c14ab13203de22e0d0ece90f4a8291e (diff)
downloadllvm-5b89c1dd68966b7fc8d19a0197da4f95eaab066a.zip
llvm-5b89c1dd68966b7fc8d19a0197da4f95eaab066a.tar.gz
llvm-5b89c1dd68966b7fc8d19a0197da4f95eaab066a.tar.bz2
[mlir] DenseStringElementsAttr added to default attribute types
Summary: Implemented a DenseStringsElements attr for handling arrays / tensors of strings. This includes the necessary logic for parsing and printing the attribute from MLIR's text format. To store the attribute we perform a single allocation that includes all wrapped string data tightly packed. This means no padding characters and no null terminators (as they could be present in the string). This buffer includes a first chunk of data that represents an array of StringRefs, that contain address pointers into the string data, with the length of each string wrapped. At this point there is no Sparse representation however strings are not typically represented sparsely. Differential Revision: https://reviews.llvm.org/D78600
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions