LLVM  8.0.1
Macros | Functions
ExecutionEngine.cpp File Reference
#include "llvm/ExecutionEngine/ExecutionEngine.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/ExecutionEngine/GenericValue.h"
#include "llvm/ExecutionEngine/JITEventListener.h"
#include "llvm/ExecutionEngine/ObjectCache.h"
#include "llvm/ExecutionEngine/RTDyldMemoryManager.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/DataLayout.h"
#include "llvm/IR/DerivedTypes.h"
#include "llvm/IR/Mangler.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/Operator.h"
#include "llvm/IR/ValueHandle.h"
#include "llvm/Object/Archive.h"
#include "llvm/Object/ObjectFile.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/DynamicLibrary.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/Host.h"
#include "llvm/Support/MutexGuard.h"
#include "llvm/Support/TargetRegistry.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Target/TargetMachine.h"
#include <cmath>
#include <cstring>
Include dependency graph for ExecutionEngine.cpp:

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "jit"
 

Functions

 STATISTIC (NumInitBytes, "Number of bytes of global vars initialized")
 
 STATISTIC (NumGlobals, "Number of global vars initialized")
 
static bool isTargetNullPtr (ExecutionEngine *EE, void *Loc)
 isTargetNullPtr - Return whether the target pointer stored at Loc is null. More...
 
static void StoreIntToMemory (const APInt &IntVal, uint8_t *Dst, unsigned StoreBytes)
 StoreIntToMemory - Fills the StoreBytes bytes of memory starting from Dst with the integer held in IntVal. More...
 
static void LoadIntFromMemory (APInt &IntVal, uint8_t *Src, unsigned LoadBytes)
 LoadIntFromMemory - Loads the integer stored in the LoadBytes bytes starting from Src into IntVal, which is assumed to be wide enough and to hold zero. More...
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "jit"

Definition at line 44 of file ExecutionEngine.cpp.

Function Documentation

◆ isTargetNullPtr()

static bool isTargetNullPtr ( ExecutionEngine EE,
void *  Loc 
)
static

isTargetNullPtr - Return whether the target pointer stored at Loc is null.

Definition at line 418 of file ExecutionEngine.cpp.

References llvm::ExecutionEngine::getDataLayout(), and llvm::DataLayout::getPointerSize().

Referenced by llvm::ExecutionEngine::runFunctionAsMain().

◆ LoadIntFromMemory()

static void LoadIntFromMemory ( APInt IntVal,
uint8_t *  Src,
unsigned  LoadBytes 
)
static

LoadIntFromMemory - Loads the integer stored in the LoadBytes bytes starting from Src into IntVal, which is assumed to be wide enough and to hold zero.

Definition at line 1098 of file ExecutionEngine.cpp.

References assert(), llvm::APInt::getBitWidth(), llvm::APInt::getRawData(), llvm::sys::IsLittleEndianHost, and llvm::Intrinsic::memcpy.

Referenced by llvm::ExecutionEngine::LoadValueFromMemory().

◆ STATISTIC() [1/2]

STATISTIC ( NumInitBytes  ,
"Number of bytes of global vars initialized"   
)

◆ STATISTIC() [2/2]

STATISTIC ( NumGlobals  ,
"Number of global vars initialized"   
)

◆ StoreIntToMemory()

static void StoreIntToMemory ( const APInt IntVal,
uint8_t *  Dst,
unsigned  StoreBytes 
)
static

StoreIntToMemory - Fills the StoreBytes bytes of memory starting from Dst with the integer held in IntVal.

Definition at line 1025 of file ExecutionEngine.cpp.

References assert(), llvm::APInt::getBitWidth(), llvm::APInt::getRawData(), llvm::sys::IsLittleEndianHost, and llvm::Intrinsic::memcpy.

Referenced by llvm::ExecutionEngine::StoreValueToMemory().