LLVM 24.0.0git
llvm::ubi::Library Class Reference

#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.

Detailed Description

Definition at line 24 of file Library.h.

Constructor & Destructor Documentation

◆ Library()

llvm::ubi::Library::Library ( Context & Ctx,
EventHandler & Handler,
const DataLayout & DL,
ExecutorBase & Executor )

Definition at line 27 of file Library.cpp.

Member Function Documentation

◆ executeLibcall()

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().


The documentation for this class was generated from the following files: