|
LLVM 24.0.0git
|
#include "UBAwareInterpreter/Library.h"
Public Member Functions | |
| Library (Context &Ctx, EventHandler &Handler, const DataLayout &DL, ExecutorBase &Executor) | |
| std::optional< AnyValue > | executeLibcall (LibFunc LF, StringRef Name, FunctionType *FuncType, ArrayRef< AnyValue > Args) |
| Simulates a libcall. | |
| llvm::ubi::Library::Library | ( | Context & | Ctx, |
| EventHandler & | Handler, | ||
| const DataLayout & | DL, | ||
| ExecutorBase & | Executor ) |
Definition at line 27 of file Library.cpp.
| std::optional< AnyValue > llvm::ubi::Library::executeLibcall | ( | LibFunc | LF, |
| StringRef | Name, | ||
| FunctionType * | FuncType, | ||
| ArrayRef< AnyValue > | Args ) |
Simulates a libcall.
Returns std::nullopt if an unsupported LibFunc is passed. Note that the caller is responsible for ensuring the types and number of the arguments are correct.
Definition at line 365 of file Library.cpp.
References llvm::FunctionType::getParamType(), llvm::Type::getPointerAddressSpace(), llvm::FunctionType::getReturnType(), llvm::ubi::Malloc, llvm::ubi::New, llvm::ubi::NewArray, and llvm::ubi::AnyValue::poison().