LLVM: lib/ExecutionEngine/Orc/RedirectionManager.cpp Source File (original) (raw)

Go to the documentation of this file.

1

2

3

4

5

6

7

8

10

11#define DEBUG_TYPE "orc"

12

13using namespace llvm;

15

16void RedirectionManager::anchor() {}

17

21 return JD.define(std::make_unique(

22 *this, std::move(InitialDests)),

23 RT);

24}

Lightweight error class with error context and mandatory checking.

Error define(std::unique_ptr< MaterializationUnitType > &&MU, ResourceTrackerSP RT=nullptr)

Define all symbols provided by the materialization unit to be part of this JITDylib.

LLVM_ABI Error createRedirectableSymbols(ResourceTrackerSP RT, SymbolMap InitialDests)

Create redirectable symbols with given symbol names and initial desitnation symbol addresses.

Definition RedirectionManager.cpp:18

JITDylib & getJITDylib() const

Return the JITDylib targeted by this tracker.

IntrusiveRefCntPtr< ResourceTracker > ResourceTrackerSP

DenseMap< SymbolStringPtr, ExecutorSymbolDef > SymbolMap

A map from symbol names (as SymbolStringPtrs) to JITSymbols (address/flags pairs).

This is an optimization pass for GlobalISel generic memory operations.