retdec
Public Member Functions | Private Attributes | List of all members
retdec::bin2llvmir::FunctionEntry Class Reference

#include <data_entries.h>

Inheritance diagram for retdec::bin2llvmir::FunctionEntry:
Inheritance graph
[legend]
Collaboration diagram for retdec::bin2llvmir::FunctionEntry:
Collaboration graph
[legend]

Public Member Functions

bool isVariadic () const
 
bool isWrapper () const
 
void addRetEntry (const ReturnEntry &ret)
 
ReturnEntrycreateRetEntry (llvm::ReturnInst *ret)
 
void setArgs (std::vector< llvm::Value * > &&args)
 
void setVariadic (bool variadic=true)
 
void setWrappedCall (llvm::CallInst *wrap)
 
void setRetType (llvm::Type *type)
 
void setRetValue (llvm::Value *val)
 
void setCallingConvention (const CallingConvention::ID &cc)
 
llvm::Value * getRetValue () const
 
llvm::Type * getRetType () const
 
llvm::CallInst * getWrappedCall () const
 
CallingConvention::ID getCallingConvention () const
 
const std::vector< ReturnEntry > & retEntries () const
 
std::vector< ReturnEntry > & retEntries ()
 
- Public Member Functions inherited from retdec::bin2llvmir::CallableEntry
bool isVoidarg () const
 
void addArg (llvm::Value *arg)
 
void setVoidarg (bool voidarg=true)
 
void setArgTypes (std::vector< llvm::Type * > &&types, std::vector< std::string > &&names={})
 
const std::vector< llvm::Value * > & args () const
 
const std::vector< llvm::Type * > & argTypes () const
 
const std::vector< std::string > & argNames () const
 

Private Attributes

llvm::CallInst * _wrap = nullptr
 
llvm::Type * _retType = nullptr
 
llvm::Value * _retVal = nullptr
 
bool _variadic = false
 
CallingConvention::ID _callconv = CallingConvention::ID::CC_UNKNOWN
 
std::vector< ReturnEntry_retEntries
 

Additional Inherited Members

- Protected Attributes inherited from retdec::bin2llvmir::CallableEntry
std::vector< llvm::Value * > _args
 
std::vector< llvm::Type * > _argTypes
 
std::vector< std::string > _argNames
 
bool _voidarg = false
 

Member Function Documentation

◆ addRetEntry()

void retdec::bin2llvmir::FunctionEntry::addRetEntry ( const ReturnEntry ret)

◆ createRetEntry()

ReturnEntry * retdec::bin2llvmir::FunctionEntry::createRetEntry ( llvm::ReturnInst *  ret)

◆ getCallingConvention()

CallingConvention::ID retdec::bin2llvmir::FunctionEntry::getCallingConvention ( ) const

◆ getRetType()

llvm::Type * retdec::bin2llvmir::FunctionEntry::getRetType ( ) const

◆ getRetValue()

llvm::Value * retdec::bin2llvmir::FunctionEntry::getRetValue ( ) const

◆ getWrappedCall()

llvm::CallInst * retdec::bin2llvmir::FunctionEntry::getWrappedCall ( ) const

◆ isVariadic()

bool retdec::bin2llvmir::FunctionEntry::isVariadic ( ) const

◆ isWrapper()

bool retdec::bin2llvmir::FunctionEntry::isWrapper ( ) const

◆ retEntries() [1/2]

std::vector< ReturnEntry > & retdec::bin2llvmir::FunctionEntry::retEntries ( )

◆ retEntries() [2/2]

const std::vector< ReturnEntry > & retdec::bin2llvmir::FunctionEntry::retEntries ( ) const

◆ setArgs()

void retdec::bin2llvmir::FunctionEntry::setArgs ( std::vector< llvm::Value * > &&  args)

◆ setCallingConvention()

void retdec::bin2llvmir::FunctionEntry::setCallingConvention ( const CallingConvention::ID cc)

◆ setRetType()

void retdec::bin2llvmir::FunctionEntry::setRetType ( llvm::Type *  type)

◆ setRetValue()

void retdec::bin2llvmir::FunctionEntry::setRetValue ( llvm::Value *  val)

◆ setVariadic()

void retdec::bin2llvmir::FunctionEntry::setVariadic ( bool  variadic = true)

◆ setWrappedCall()

void retdec::bin2llvmir::FunctionEntry::setWrappedCall ( llvm::CallInst *  wrap)

Member Data Documentation

◆ _callconv

CallingConvention::ID retdec::bin2llvmir::FunctionEntry::_callconv = CallingConvention::ID::CC_UNKNOWN
private

◆ _retEntries

std::vector<ReturnEntry> retdec::bin2llvmir::FunctionEntry::_retEntries
private

◆ _retType

llvm::Type* retdec::bin2llvmir::FunctionEntry::_retType = nullptr
private

◆ _retVal

llvm::Value* retdec::bin2llvmir::FunctionEntry::_retVal = nullptr
private

◆ _variadic

bool retdec::bin2llvmir::FunctionEntry::_variadic = false
private

◆ _wrap

llvm::CallInst* retdec::bin2llvmir::FunctionEntry::_wrap = nullptr
private

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