[all-commits] [llvm/llvm-project] eded5d: [ORC] Add a NonOwningSymbolStringPtr utility.
lhames via All-commits
all-commits at lists.llvm.org
Tue Jan 31 14:28:35 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: eded5d381565d1d2f0951b745dd767fc5fba3576
https://github.com/llvm/llvm-project/commit/eded5d381565d1d2f0951b745dd767fc5fba3576
Author: Lang Hames <lhames at gmail.com>
Date: 2023-01-31 (Tue, 31 Jan 2023)
Changed paths:
M llvm/include/llvm/ExecutionEngine/Orc/SymbolStringPool.h
M llvm/unittests/ExecutionEngine/Orc/SymbolStringPoolTest.cpp
Log Message:
-----------
[ORC] Add a NonOwningSymbolStringPtr utility.
Introduces a non-owning SymbolStringPool entry pointer. Instances of the new
type can be compared with SymbolStringPtr instances, but do not participate in
ref-counting and are therefore cheaper to copy. This makes it efficient to use
in algorithms that use symbol-strings as ids, e.g. ORC's waiting-on graph. A
future commit will rewrite ORC's waiting-on graph.
Reviewed By: dblaikie
Differential Revision: https://reviews.llvm.org/D142314
More information about the All-commits
mailing list