Go to the documentation of this file.
17 std::unique_ptr<IRCompiler> Compile)
18 :
IRLayer(ES, ManglingOpts), BaseLayer(BaseLayer),
20 ManglingOpts = &this->Compile->getManglingOptions();
24 std::lock_guard<std::mutex>
Lock(IRLayerMutex);
25 this->NotifyCompiled =
std::move(NotifyCompiled);
30 assert(TSM &&
"Module must not be null");
34 std::lock_guard<std::mutex>
Lock(IRLayerMutex);
42 R->failMaterialization();
This is an optimization pass for GlobalISel generic memory operations.
void reportError(Error Err)
Report a error for this execution session.
void emit(std::unique_ptr< MaterializationResponsibility > R, ThreadSafeModule TSM) override
Emit should materialize the given IR.
IRCompileLayer(ExecutionSession &ES, ObjectLayer &BaseLayer, std::unique_ptr< IRCompiler > Compile)
std::function< void(MaterializationResponsibility &R, ThreadSafeModule TSM)> NotifyCompiledFunction
Interface for Layers that accept object files.
compiles ldr LCPI1_0 ldr ldr mov lsr tst moveq r1 ldr LCPI1_1 and r0 bx lr It would be better to do something like to fold the shift into the conditional move
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
OutputIt move(R &&Range, OutputIt Out)
Provide wrappers to std::move which take ranges instead of having to pass begin/end explicitly.
ExecutionSession & getExecutionSession()
Returns the ExecutionSession for this layer.
decltype(auto) withModuleDo(Func &&F)
Locks the associated ThreadSafeContext and calls the given function on the contained Module.
virtual void emit(std::unique_ptr< MaterializationResponsibility > R, std::unique_ptr< MemoryBuffer > O)=0
Emit should materialize the given IR.
An ExecutionSession represents a running JIT program.
void setNotifyCompiled(NotifyCompiledFunction NotifyCompiled)
An LLVM Module together with a shared ThreadSafeContext.
Interface for layers that accept LLVM IR.