LLVM  6.0.0svn
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
llvm::WebAssemblyFunctionInfo Class Referencefinal

This class is derived from MachineFunctionInfo and contains private WebAssembly-specific information for each MachineFunction. More...

#include "Target/WebAssembly/WebAssemblyMachineFunctionInfo.h"

Inheritance diagram for llvm::WebAssemblyFunctionInfo:
Inheritance graph
[legend]
Collaboration diagram for llvm::WebAssemblyFunctionInfo:
Collaboration graph
[legend]

Public Member Functions

 WebAssemblyFunctionInfo (MachineFunction &MF)
 
 ~WebAssemblyFunctionInfo () override
 
void addParam (MVT VT)
 
const std::vector< MVT > & getParams () const
 
void addResult (MVT VT)
 
const std::vector< MVT > & getResults () const
 
void setNumLocals (size_t NumLocals)
 
void setLocal (size_t i, MVT VT)
 
void addLocal (MVT VT)
 
const std::vector< MVT > & getLocals () const
 
unsigned getVarargBufferVreg () const
 
void setVarargBufferVreg (unsigned Reg)
 
unsigned getBasePointerVreg () const
 
void setBasePointerVreg (unsigned Reg)
 
void stackifyVReg (unsigned VReg)
 
bool isVRegStackified (unsigned VReg) const
 
void initWARegs ()
 
void setWAReg (unsigned VReg, unsigned WAReg)
 
unsigned getWAReg (unsigned Reg) const
 
- Public Member Functions inherited from llvm::MachineFunctionInfo
virtual ~MachineFunctionInfo ()
 

Static Public Member Functions

static unsigned getWARegStackId (unsigned Reg)
 
- Static Public Member Functions inherited from llvm::MachineFunctionInfo
template<typename Ty >
static Ty * create (BumpPtrAllocator &Allocator, MachineFunction &MF)
 Factory function: default behavior is to call new using the supplied allocator. More...
 

Static Public Attributes

static const unsigned UnusedReg = -1u
 

Detailed Description

This class is derived from MachineFunctionInfo and contains private WebAssembly-specific information for each MachineFunction.

Definition at line 26 of file WebAssemblyMachineFunctionInfo.h.

Constructor & Destructor Documentation

◆ WebAssemblyFunctionInfo()

llvm::WebAssemblyFunctionInfo::WebAssemblyFunctionInfo ( MachineFunction MF)
inlineexplicit

Definition at line 54 of file WebAssemblyMachineFunctionInfo.h.

References ~WebAssemblyFunctionInfo().

◆ ~WebAssemblyFunctionInfo()

WebAssemblyFunctionInfo::~WebAssemblyFunctionInfo ( )
override

Definition at line 22 of file WebAssemblyMachineFunctionInfo.cpp.

Referenced by WebAssemblyFunctionInfo().

Member Function Documentation

◆ addLocal()

void llvm::WebAssemblyFunctionInfo::addLocal ( MVT  VT)
inline

◆ addParam()

void llvm::WebAssemblyFunctionInfo::addParam ( MVT  VT)
inline

Definition at line 57 of file WebAssemblyMachineFunctionInfo.h.

◆ addResult()

void llvm::WebAssemblyFunctionInfo::addResult ( MVT  VT)
inline

Definition at line 60 of file WebAssemblyMachineFunctionInfo.h.

◆ getBasePointerVreg()

unsigned llvm::WebAssemblyFunctionInfo::getBasePointerVreg ( ) const
inline

Definition at line 74 of file WebAssemblyMachineFunctionInfo.h.

References assert().

◆ getLocals()

const std::vector<MVT>& llvm::WebAssemblyFunctionInfo::getLocals ( ) const
inline

◆ getParams()

const std::vector<MVT>& llvm::WebAssemblyFunctionInfo::getParams ( ) const
inline

◆ getResults()

const std::vector<MVT>& llvm::WebAssemblyFunctionInfo::getResults ( ) const
inline

Definition at line 61 of file WebAssemblyMachineFunctionInfo.h.

Referenced by FixEndsAtEndOfFunction().

◆ getVarargBufferVreg()

unsigned llvm::WebAssemblyFunctionInfo::getVarargBufferVreg ( ) const
inline

Definition at line 68 of file WebAssemblyMachineFunctionInfo.h.

References assert().

◆ getWAReg()

unsigned llvm::WebAssemblyFunctionInfo::getWAReg ( unsigned  Reg) const
inline

◆ getWARegStackId()

static unsigned llvm::WebAssemblyFunctionInfo::getWARegStackId ( unsigned  Reg)
inlinestatic

◆ initWARegs()

void WebAssemblyFunctionInfo::initWARegs ( )

◆ isVRegStackified()

bool llvm::WebAssemblyFunctionInfo::isVRegStackified ( unsigned  VReg) const
inline

◆ setBasePointerVreg()

void llvm::WebAssemblyFunctionInfo::setBasePointerVreg ( unsigned  Reg)
inline

Definition at line 78 of file WebAssemblyMachineFunctionInfo.h.

◆ setLocal()

void llvm::WebAssemblyFunctionInfo::setLocal ( size_t  i,
MVT  VT 
)
inline

Definition at line 64 of file WebAssemblyMachineFunctionInfo.h.

Referenced by FindStartOfTree().

◆ setNumLocals()

void llvm::WebAssemblyFunctionInfo::setNumLocals ( size_t  NumLocals)
inline

Definition at line 63 of file WebAssemblyMachineFunctionInfo.h.

References llvm::MVT::i32.

Referenced by FindStartOfTree().

◆ setVarargBufferVreg()

void llvm::WebAssemblyFunctionInfo::setVarargBufferVreg ( unsigned  Reg)
inline

Definition at line 72 of file WebAssemblyMachineFunctionInfo.h.

◆ setWAReg()

void llvm::WebAssemblyFunctionInfo::setWAReg ( unsigned  VReg,
unsigned  WAReg 
)
inline

◆ stackifyVReg()

void llvm::WebAssemblyFunctionInfo::stackifyVReg ( unsigned  VReg)
inline

Member Data Documentation

◆ UnusedReg

const unsigned llvm::WebAssemblyFunctionInfo::UnusedReg = -1u
static

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