llir-opt  0.0.1
Low-Level Post-Link Optimiser for OCaml and C
Public Member Functions | Friends | List of all members
Data Class Referencefinal

#include <core/data.h>

Inheritance diagram for Data:
Inheritance graph
[legend]
Collaboration diagram for Data:
Collaboration graph
[legend]

Public Member Functions

 Data (const std::string_view name)
 
 ~Data ()
 Deletes the data segment.
 
bool IsConstant ()
 Returns true if the values in this segment can be forwarded to code.
 
bool IsZeroed () const
 Returns true if the section is BSS.
 
bool IsWritable () const
 Returns true if the section is writeable.
 
void removeFromParent ()
 Removes the segment from the parent.
 
void eraseFromParent ()
 Removes an parent from the data section.
 
ProggetParent () const
 Returns a pointer to the parent section.
 
std::string_view GetName () const
 
llvm::StringRef getName () const
 Returns the segment name.
 
bool IsEmpty () const
 
void remove (iterator it)
 Removes an object.
 
void erase (iterator it)
 Erases an object.
 
void AddObject (Object *object, Object *before=nullptr)
 Adds an object to the segment.
 
bool empty () const
 
size_t size () const
 
iterator begin ()
 
iterator end ()
 
const_iterator begin () const
 
const_iterator end () const
 
reverse_iterator rbegin ()
 
reverse_iterator rend ()
 
const_reverse_iterator rbegin () const
 
const_reverse_iterator rend () const
 

Friends

struct llvm::ilist_traits< Data >
 
struct llvm::ilist_traits< Object >
 

Detailed Description

The data segment of a program.


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