mini-llvm 0.1.0
Loading...
Searching...
No Matches
mini_llvm::mc::GlobalValue Class Reference

#include <GlobalValue.h>

Public Types

using iterator = IndirectIterator<StatementList::iterator, Statement>
using const_iterator = IndirectIterator<StatementList::const_iterator, const Statement>
using reverse_iterator = IndirectIterator<StatementList::reverse_iterator, Statement>
using const_reverse_iterator = IndirectIterator<StatementList::const_reverse_iterator, const Statement>

Public Member Functions

 GlobalValue (Symbol symbol, std::string section, bool isGlobal, int alignment)
 GlobalValue (Symbol symbol, std::string section, bool isGlobal)
 GlobalValue (const GlobalValue &)=delete
 GlobalValue (GlobalValue &&)=default
GlobalValueoperator= (const GlobalValue &)=delete
GlobalValueoperator= (GlobalValue &&)=default
const Symbolsymbol () const
void setSymbol (Symbol symbol)
const std::string & section () const &
std::string && section () &&
void setSection (std::string section)
bool isGlobal () const
void setGlobal (bool isGlobal)
int alignment () const
void setAlignment (int alignment)
iterator begin ()
const_iterator begin () const
iterator end ()
const_iterator end () const
reverse_iterator rbegin ()
const_reverse_iterator rbegin () const
reverse_iterator rend ()
const_reverse_iterator rend () const
Statementfront ()
const Statementfront () const
Statementback ()
const Statementback () const
bool empty () const
size_t size () const
Statementadd (const_iterator pos, std::unique_ptr< Statement > stmt)
Statementprepend (std::unique_ptr< Statement > stmt)
Statementappend (std::unique_ptr< Statement > stmt)
void remove (const_iterator pos)
void removeFirst ()
void removeLast ()
void clear ()
std::string format () const

Member Typedef Documentation

◆ const_iterator

using mini_llvm::mc::GlobalValue::const_iterator = IndirectIterator<StatementList::const_iterator, const Statement>

◆ const_reverse_iterator

using mini_llvm::mc::GlobalValue::const_reverse_iterator = IndirectIterator<StatementList::const_reverse_iterator, const Statement>

◆ iterator

◆ reverse_iterator

using mini_llvm::mc::GlobalValue::reverse_iterator = IndirectIterator<StatementList::reverse_iterator, Statement>

Constructor & Destructor Documentation

◆ GlobalValue() [1/4]

mini_llvm::mc::GlobalValue::GlobalValue ( Symbol symbol,
std::string section,
bool isGlobal,
int alignment )
inline

◆ GlobalValue() [2/4]

mini_llvm::mc::GlobalValue::GlobalValue ( Symbol symbol,
std::string section,
bool isGlobal )
inline

◆ GlobalValue() [3/4]

mini_llvm::mc::GlobalValue::GlobalValue ( const GlobalValue & )
delete

◆ GlobalValue() [4/4]

mini_llvm::mc::GlobalValue::GlobalValue ( GlobalValue && )
default

Member Function Documentation

◆ add()

Statement & mini_llvm::mc::GlobalValue::add ( const_iterator pos,
std::unique_ptr< Statement > stmt )

◆ alignment()

int mini_llvm::mc::GlobalValue::alignment ( ) const
inline

◆ append()

Statement & mini_llvm::mc::GlobalValue::append ( std::unique_ptr< Statement > stmt)
inline

◆ back() [1/2]

Statement & mini_llvm::mc::GlobalValue::back ( )
inline

◆ back() [2/2]

const Statement & mini_llvm::mc::GlobalValue::back ( ) const
inline

◆ begin() [1/2]

iterator mini_llvm::mc::GlobalValue::begin ( )
inline

◆ begin() [2/2]

const_iterator mini_llvm::mc::GlobalValue::begin ( ) const
inline

◆ clear()

void mini_llvm::mc::GlobalValue::clear ( )

◆ empty()

bool mini_llvm::mc::GlobalValue::empty ( ) const
inline

◆ end() [1/2]

iterator mini_llvm::mc::GlobalValue::end ( )
inline

◆ end() [2/2]

const_iterator mini_llvm::mc::GlobalValue::end ( ) const
inline

◆ format()

std::string mini_llvm::mc::GlobalValue::format ( ) const

◆ front() [1/2]

Statement & mini_llvm::mc::GlobalValue::front ( )
inline

◆ front() [2/2]

const Statement & mini_llvm::mc::GlobalValue::front ( ) const
inline

◆ isGlobal()

bool mini_llvm::mc::GlobalValue::isGlobal ( ) const
inline

◆ operator=() [1/2]

GlobalValue & mini_llvm::mc::GlobalValue::operator= ( const GlobalValue & )
delete

◆ operator=() [2/2]

GlobalValue & mini_llvm::mc::GlobalValue::operator= ( GlobalValue && )
default

◆ prepend()

Statement & mini_llvm::mc::GlobalValue::prepend ( std::unique_ptr< Statement > stmt)
inline

◆ rbegin() [1/2]

reverse_iterator mini_llvm::mc::GlobalValue::rbegin ( )
inline

◆ rbegin() [2/2]

const_reverse_iterator mini_llvm::mc::GlobalValue::rbegin ( ) const
inline

◆ remove()

void mini_llvm::mc::GlobalValue::remove ( const_iterator pos)

◆ removeFirst()

void mini_llvm::mc::GlobalValue::removeFirst ( )
inline

◆ removeLast()

void mini_llvm::mc::GlobalValue::removeLast ( )
inline

◆ rend() [1/2]

reverse_iterator mini_llvm::mc::GlobalValue::rend ( )
inline

◆ rend() [2/2]

const_reverse_iterator mini_llvm::mc::GlobalValue::rend ( ) const
inline

◆ section() [1/2]

std::string && mini_llvm::mc::GlobalValue::section ( ) &&
inline

◆ section() [2/2]

const std::string & mini_llvm::mc::GlobalValue::section ( ) const &
inline

◆ setAlignment()

void mini_llvm::mc::GlobalValue::setAlignment ( int alignment)
inline

◆ setGlobal()

void mini_llvm::mc::GlobalValue::setGlobal ( bool isGlobal)
inline

◆ setSection()

void mini_llvm::mc::GlobalValue::setSection ( std::string section)
inline

◆ setSymbol()

void mini_llvm::mc::GlobalValue::setSymbol ( Symbol symbol)
inline

◆ size()

size_t mini_llvm::mc::GlobalValue::size ( ) const
inline

◆ symbol()

const Symbol & mini_llvm::mc::GlobalValue::symbol ( ) const
inline

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