diff options
author | lhames <lhames@gmail.com> | 2024-01-31 13:06:09 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-31 13:06:09 -0800 |
commit | ebe8733a11e735bb9f5ca45ec752c2a416380c8d (patch) | |
tree | 73fa740ab2c0f52097c4288bd337fd7a831438d8 /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | |
parent | 9107904e9b6a56636d06bba120c7c19d332430f0 (diff) | |
download | llvm-ebe8733a11e735bb9f5ca45ec752c2a416380c8d.zip llvm-ebe8733a11e735bb9f5ca45ec752c2a416380c8d.tar.gz llvm-ebe8733a11e735bb9f5ca45ec752c2a416380c8d.tar.bz2 |
[ORC] Merge MaterializationResponsibility notifyEmitted and addDependencies
Removes the MaterializationResponsibility::addDependencies and
addDependenciesForAll methods, and transfers dependency registration to
the notifyEmitted operation. The new dependency registration allows
dependencies to be specified for arbitrary subsets of the
MaterializationResponsibility's symbols (rather than just single symbols
or all symbols) via an array of SymbolDependenceGroups (pairs of symbol
sets and corresponding dependencies for that set).
This patch aims to both improve emission performance and simplify
dependence tracking. By eliminating some states (e.g. symbols having
registered dependencies but not yet being resolved or emitted) we make
some errors impossible by construction, and reduce the number of error
cases that we need to check. NonOwningSymbolStringPtrs are used for
dependence tracking under the session lock, which should reduce
ref-counting operations, and intra-emit dependencies are resolved
outside the session lock, which should provide better performance when
JITing concurrently (since some dependence tracking can happen in
parallel).
The Orc C API is updated to account for this change, with the
LLVMOrcMaterializationResponsibilityNotifyEmitted API being modified and
the LLVMOrcMaterializationResponsibilityAddDependencies and
LLVMOrcMaterializationResponsibilityAddDependenciesForAll operations
being removed.
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
0 files changed, 0 insertions, 0 deletions