LLVM API Documentation
#include "Interpreter.h"
#include "llvm/Config/config.h"
#include "llvm/IR/DataLayout.h"
#include "llvm/IR/DerivedTypes.h"
#include "llvm/IR/Module.h"
#include "llvm/Support/DynamicLibrary.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/ManagedStatic.h"
#include "llvm/Support/Mutex.h"
#include <cmath>
#include <csignal>
#include <cstdio>
#include <cstring>
#include <map>
Go to the source code of this file.
Typedefs | |
typedef GenericValue(* | ExFunc )(FunctionType *, const std::vector< GenericValue > &) |
Variables | |
static ManagedStatic< sys::Mutex > | FunctionsLock |
static ManagedStatic< std::map < const Function *, ExFunc > > | ExportedFunctions |
static std::map< std::string, ExFunc > | FuncNames |
static Interpreter * | TheInterpreter |
typedef GenericValue(* ExFunc)(FunctionType *, const std::vector< GenericValue > &) |
Definition at line 51 of file ExternalFunctions.cpp.
|
static |
Definition at line 63 of file ExternalFunctions.cpp.
References llvm::Type::ArrayTyID, llvm::Type::DoubleTyID, llvm::Type::FloatTyID, llvm::Type::FunctionTyID, llvm::Type::getTypeID(), llvm::Type::IntegerTyID, llvm::Type::PointerTyID, llvm::Type::StructTyID, and llvm::Type::VoidTyID.
Referenced by llvm::ConstantDataSequential::getElementAsAPFloat(), LLVMCreateGenericValueOfFloat(), LLVMGenericValueToFloat(), LLVMGetTypeKind(), and lookupFunction().
|
static |
Definition at line 321 of file ExternalFunctions.cpp.
|
static |
Definition at line 302 of file ExternalFunctions.cpp.
References llvm::Interpreter::addAtExitHandler(), llvm::GVTOP(), llvm::GenericValue::IntVal, and TheInterpreter.
|
static |
Definition at line 313 of file ExternalFunctions.cpp.
References llvm::Interpreter::exitCalled(), and TheInterpreter.
|
static |
Definition at line 461 of file ExternalFunctions.cpp.
References llvm::LibFunc::fputs, llvm::GVTOP(), lle_X_sprintf(), and llvm::PTOGV().
|
static |
Definition at line 486 of file ExternalFunctions.cpp.
References llvm::GVTOP(), llvm::GenericValue::IntVal, llvm::tgtok::IntVal, and llvm::Intrinsic::memcpy.
|
static |
Definition at line 474 of file ExternalFunctions.cpp.
References llvm::GVTOP(), llvm::GenericValue::IntVal, llvm::tgtok::IntVal, and llvm::Intrinsic::memset.
|
static |
Definition at line 415 of file ExternalFunctions.cpp.
References lle_X_sprintf(), llvm::outs(), and llvm::PTOGV().
|
static |
Definition at line 444 of file ExternalFunctions.cpp.
References llvm::GVTOP(), llvm::GenericValue::IntVal, and llvm::LibFunc::scanf.
|
static |
Definition at line 332 of file ExternalFunctions.cpp.
References llvm::errs(), llvm::ExecutionEngine::getDataLayout(), llvm::DataLayout::getPointerSizeInBits(), llvm::GVTOP(), llvm::GenericValue::IntVal, llvm::tgtok::IntVal, llvm::Intrinsic::memcpy, llvm::LibFunc::sprintf, llvm::LibFunc::strlen, and TheInterpreter.
Referenced by lle_X_fprintf(), and lle_X_printf().
|
static |
Definition at line 428 of file ExternalFunctions.cpp.
References llvm::GVTOP(), llvm::GenericValue::IntVal, and llvm::LibFunc::sscanf.
Definition at line 90 of file ExternalFunctions.cpp.
References ExportedFunctions, FuncNames, FunctionsLock, llvm::Type::getContainedType(), llvm::Function::getFunctionType(), llvm::Value::getName(), llvm::Type::getNumContainedTypes(), getTypeID(), llvm::sys::DynamicLibrary::SearchForAddressOfSymbol(), and llvm::StringRef::str().
Referenced by llvm::Interpreter::callExternalFunction().
|
static |
Definition at line 53 of file ExternalFunctions.cpp.
Referenced by llvm::Interpreter::callExternalFunction(), and lookupFunction().
|
static |
Definition at line 54 of file ExternalFunctions.cpp.
Referenced by lookupFunction().
|
static |
Definition at line 49 of file ExternalFunctions.cpp.
Referenced by llvm::Interpreter::callExternalFunction(), and lookupFunction().
|
static |
Definition at line 61 of file ExternalFunctions.cpp.
Referenced by llvm::Interpreter::callExternalFunction(), lle_X_atexit(), lle_X_exit(), and lle_X_sprintf().