LLVM API Documentation

ExecutionEngine.cpp File Reference

#include "llvm/Constants.h"
#include "llvm/DerivedTypes.h"
#include "llvm/Module.h"
#include "llvm/ModuleProvider.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/Config/alloca.h"
#include "llvm/ExecutionEngine/ExecutionEngine.h"
#include "llvm/ExecutionEngine/GenericValue.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/MutexGuard.h"
#include "llvm/System/DynamicLibrary.h"
#include "llvm/System/Host.h"
#include "llvm/Target/TargetData.h"
#include <cmath>
#include <cstring>

Include dependency graph for ExecutionEngine.cpp:

Go to the source code of this file.

Defines

#define DEBUG_TYPE   "jit"

Functions

 STATISTIC (NumInitBytes,"Number of bytes of global vars initialized")
 STATISTIC (NumGlobals,"Number of global vars initialized")
static void * CreateArgv (ExecutionEngine *EE, const std::vector< std::string > &InputArgv)
static bool isTargetNullPtr (ExecutionEngine *EE, void *Loc)
 isTargetNullPtr - Return whether the target pointer stored at Loc is null.
static void StoreIntToMemory (const APInt &IntVal, uint8_t *Dst, unsigned StoreBytes)
static void LoadIntFromMemory (APInt &IntVal, uint8_t *Src, unsigned LoadBytes)


Define Documentation

#define DEBUG_TYPE   "jit"

Definition at line 15 of file ExecutionEngine.cpp.


Function Documentation

static void* CreateArgv ( ExecutionEngine EE,
const std::vector< std::string > &  InputArgv 
) [static]

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

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

Definition at line 288 of file ExecutionEngine.cpp.

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

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 761 of file ExecutionEngine.cpp.

References llvm::APInt::getBitWidth(), llvm::APInt::getRawData(), and llvm::sys::littleEndianHost().

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

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

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

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 690 of file ExecutionEngine.cpp.

References llvm::APInt::getBitWidth(), llvm::APInt::getRawData(), llvm::sys::littleEndianHost(), and Src.

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




This web site is hosted by the Computer Science Department at the University of Illinois at Urbana-Champaign.