LLVM 20.0.0git
|
#include "Interpreter.h"
#include "llvm/ADT/APInt.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/Config/config.h"
#include "llvm/ExecutionEngine/GenericValue.h"
#include "llvm/IR/DataLayout.h"
#include "llvm/IR/DerivedTypes.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/Type.h"
#include "llvm/Support/Casting.h"
#include "llvm/Support/DynamicLibrary.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/Mutex.h"
#include "llvm/Support/raw_ostream.h"
#include <cassert>
#include <cmath>
#include <csignal>
#include <cstdint>
#include <cstdio>
#include <cstring>
#include <map>
#include <mutex>
#include <string>
#include <utility>
#include <vector>
Go to the source code of this file.
Functions | |
static char | getTypeID (Type *Ty) |
static ExFunc | lookupFunction (const Function *F) |
static GenericValue | lle_X_atexit (FunctionType *FT, ArrayRef< GenericValue > Args) |
static GenericValue | lle_X_exit (FunctionType *FT, ArrayRef< GenericValue > Args) |
static GenericValue | lle_X_abort (FunctionType *FT, ArrayRef< GenericValue > Args) |
static GenericValue | lle_X_sprintf (FunctionType *FT, ArrayRef< GenericValue > Args) |
static GenericValue | lle_X_printf (FunctionType *FT, ArrayRef< GenericValue > Args) |
static GenericValue | lle_X_sscanf (FunctionType *FT, ArrayRef< GenericValue > args) |
static GenericValue | lle_X_scanf (FunctionType *FT, ArrayRef< GenericValue > args) |
static GenericValue | lle_X_fprintf (FunctionType *FT, ArrayRef< GenericValue > Args) |
static GenericValue | lle_X_memset (FunctionType *FT, ArrayRef< GenericValue > Args) |
static GenericValue | lle_X_memcpy (FunctionType *FT, ArrayRef< GenericValue > Args) |
Variables | |
static Interpreter * | TheInterpreter |
Definition at line 82 of file ExternalFunctions.cpp.
References llvm::Type::ArrayTyID, llvm::Type::DoubleTyID, llvm::Type::FloatTyID, llvm::Type::FunctionTyID, getBitWidth(), 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 340 of file ExternalFunctions.cpp.
|
static |
Definition at line 324 of file ExternalFunctions.cpp.
References llvm::Interpreter::addAtExitHandler(), assert(), llvm::GVTOP(), llvm::GenericValue::IntVal, and TheInterpreter.
|
static |
Definition at line 334 of file ExternalFunctions.cpp.
References llvm::Interpreter::exitCalled(), and TheInterpreter.
|
static |
Definition at line 482 of file ExternalFunctions.cpp.
References assert(), llvm::GVTOP(), lle_X_sprintf(), and llvm::PTOGV().
|
static |
Definition at line 507 of file ExternalFunctions.cpp.
References llvm::GVTOP(), and llvm::GenericValue::IntVal.
|
static |
Definition at line 495 of file ExternalFunctions.cpp.
References llvm::GVTOP(), and llvm::GenericValue::IntVal.
|
static |
Definition at line 440 of file ExternalFunctions.cpp.
References llvm::append_range(), lle_X_sprintf(), llvm::outs(), and llvm::PTOGV().
|
static |
Definition at line 467 of file ExternalFunctions.cpp.
References args, assert(), llvm::GVTOP(), and llvm::GenericValue::IntVal.
|
static |
Definition at line 355 of file ExternalFunctions.cpp.
References llvm::errs(), llvm::ExecutionEngine::getDataLayout(), llvm::DataLayout::getPointerSizeInBits(), llvm::GVTOP(), llvm::GenericValue::IntVal, llvm::Last, Size, and TheInterpreter.
Referenced by lle_X_fprintf(), and lle_X_printf().
|
static |
Definition at line 452 of file ExternalFunctions.cpp.
References args, assert(), llvm::GVTOP(), and llvm::GenericValue::IntVal.
Definition at line 109 of file ExternalFunctions.cpp.
References F, getTypeID(), and llvm::sys::DynamicLibrary::SearchForAddressOfSymbol().
Referenced by llvm::Interpreter::callExternalFunction().
|
static |
Definition at line 80 of file ExternalFunctions.cpp.
Referenced by llvm::Interpreter::callExternalFunction(), lle_X_atexit(), lle_X_exit(), and lle_X_sprintf().