MLIR  20.0.0git
Public Member Functions | List of all members
mlir::SimpleObjectCache Class Reference

A simple object cache following Lang's LLJITWithObjectCache example. More...

#include "mlir/ExecutionEngine/ExecutionEngine.h"

+ Inheritance diagram for mlir::SimpleObjectCache:

Public Member Functions

void notifyObjectCompiled (const llvm::Module *m, llvm::MemoryBufferRef objBuffer) override
 
std::unique_ptr< llvm::MemoryBuffer > getObject (const llvm::Module *m) override
 
void dumpToObjectFile (StringRef filename)
 Dump cached object to output file filename. More...
 
bool isEmpty ()
 Returns true if cache hasn't been populated yet. More...
 

Detailed Description

A simple object cache following Lang's LLJITWithObjectCache example.

Definition at line 41 of file ExecutionEngine.h.

Member Function Documentation

◆ dumpToObjectFile()

void SimpleObjectCache::dumpToObjectFile ( StringRef  filename)

Dump cached object to output file filename.

Definition at line 83 of file ExecutionEngine.cpp.

References mlir::openOutputFile().

◆ getObject()

std::unique_ptr< MemoryBuffer > SimpleObjectCache::getObject ( const llvm::Module *  m)
override

Definition at line 71 of file ExecutionEngine.cpp.

◆ isEmpty()

bool SimpleObjectCache::isEmpty ( )

Returns true if cache hasn't been populated yet.

Definition at line 99 of file ExecutionEngine.cpp.

◆ notifyObjectCompiled()

void SimpleObjectCache::notifyObjectCompiled ( const llvm::Module *  m,
llvm::MemoryBufferRef  objBuffer 
)
override

Definition at line 65 of file ExecutionEngine.cpp.


The documentation for this class was generated from the following files: