[ORC-RT] Add a SymbolStringPool class to the ORC runtime.
authorLang Hames <lhames@gmail.com>
Wed, 9 Nov 2022 23:21:45 +0000 (15:21 -0800)
committerLang Hames <lhames@gmail.com>
Thu, 10 Nov 2022 05:26:18 +0000 (21:26 -0800)
commit8fda8901e29bf80bd91574f29b50868958195a4e
tree2cdb2f54fec29082a1f088720a47e28c0295ba10
parent90bf4170a74f3c5b0da3732e265f5a77f301f9ea
[ORC-RT] Add a SymbolStringPool class to the ORC runtime.

This is a counterpart to llvm::orc::SymbolStringPool. It holds uniqued,
ref-counted strings; and can be used to avoid redundant storage of strings,
and speed up comparison of strings held in the pool (these become pointer
comparisons).
compiler-rt/lib/orc/string_pool.h [new file with mode: 0644]
compiler-rt/lib/orc/tests/unit/CMakeLists.txt
compiler-rt/lib/orc/tests/unit/string_pool_test.cpp [new file with mode: 0644]