LLVM: include/llvm/ExecutionEngine/ObjectCache.h Source File (original) (raw)

Go to the documentation of this file.

1

2

3

4

5

6

7

8

9#ifndef LLVM_EXECUTIONENGINE_OBJECTCACHE_H

10#define LLVM_EXECUTIONENGINE_OBJECTCACHE_H

11

13#include

14

15namespace llvm {

16

20

21

22

23

25 virtual void anchor();

26

27public:

29

31

32

34

35

36

37

38 virtual std::unique_ptr getObject(const Module* M) = 0;

39};

40

41}

42

43#endif

This interface provides simple read-only access to a block of memory, and provides simple methods for...

A Module instance is used to store all the information related to an LLVM module.

virtual std::unique_ptr< MemoryBuffer > getObject(const Module *M)=0

Returns a pointer to a newly allocated MemoryBuffer that contains the object which corresponds with M...

virtual void notifyObjectCompiled(const Module *M, MemoryBufferRef Obj)=0

notifyObjectCompiled - Provides a pointer to compiled code for Module M.

virtual ~ObjectCache()=default

This is an optimization pass for GlobalISel generic memory operations.