12#define DEBUG_TYPE "orc"
21 return "<Absolute Symbols>";
24void AbsoluteSymbolsMaterializationUnit::materialize(
25 std::unique_ptr<MaterializationResponsibility> R) {
31 if (
auto Err = R->notifyResolved(Symbols)) {
32 R->getExecutionSession().reportError(std::move(Err));
33 R->failMaterialization();
36 if (
auto Err = R->notifyEmitted({})) {
37 R->getExecutionSession().reportError(std::move(Err));
38 R->failMaterialization();
43void AbsoluteSymbolsMaterializationUnit::discard(
const JITDylib &JD,
44 const SymbolStringPtr &
Name) {
49MaterializationUnit::Interface
50AbsoluteSymbolsMaterializationUnit::extractFlags(
const SymbolMap &Symbols) {
52 for (
const auto &[
Name, Def] : Symbols)
54 return MaterializationUnit::Interface(std::move(Flags),
nullptr);
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
bool erase(const KeyT &Val)
size_type count(const_arg_type_t< KeyT > Val) const
Return 1 if the specified key is in the map, 0 otherwise.
StringRef - Represent a constant reference to a string, i.e.
StringRef getName() const override
Return the name of this materialization unit.
AbsoluteSymbolsMaterializationUnit(SymbolMap Symbols)
A MaterializationUnit represents a set of symbol definitions that can be materialized as a group,...
DenseMap< SymbolStringPtr, ExecutorSymbolDef > SymbolMap
A map from symbol names (as SymbolStringPtrs) to JITSymbols (address/flags pairs).
DenseMap< SymbolStringPtr, JITSymbolFlags > SymbolFlagsMap
A map from symbol names (as SymbolStringPtrs) to JITSymbolFlags.
NodeAddr< DefNode * > Def
OutputIt move(R &&Range, OutputIt Out)
Provide wrappers to std::move which take ranges instead of having to pass begin/end explicitly.
Implement std::hash so that hash_code can be used in STL containers.