LLVM API Documentation

Public Member Functions | Friends
llvm::MCAtom Class Reference

#include <MCAtom.h>

List of all members.

Public Member Functions

bool isTextAtom () const
bool isDataAtom () const
void addInst (const MCInst &I, uint64_t Address, unsigned Size)
void addData (const MCData &D)
MCAtomsplit (uint64_t SplitPt)
void truncate (uint64_t TruncPt)

Friends

class MCModule

Detailed Description

MCAtom - Represents a contiguous range of either instructions (a TextAtom) or data (a DataAtom). Address ranges are expressed as _closed_ intervals.

Definition at line 33 of file MCAtom.h.


Member Function Documentation

void MCAtom::addData ( const MCData D)

Definition at line 27 of file MCAtom.cpp.

References llvm::object::macho::Data.

void MCAtom::addInst ( const MCInst I,
uint64_t  Address,
unsigned  Size 
)

Definition at line 16 of file MCAtom.cpp.

bool llvm::MCAtom::isDataAtom ( ) const [inline]

Definition at line 50 of file MCAtom.h.

Referenced by split(), and truncate().

bool llvm::MCAtom::isTextAtom ( ) const [inline]

Definition at line 49 of file MCAtom.h.

Referenced by split(), and truncate().

MCAtom * MCAtom::split ( uint64_t  SplitPt)

split - Splits the atom in two at a given address, which must align with and instruction boundary if this is a TextAtom. Returns the newly created atom representing the high part of the split.

Definition at line 34 of file MCAtom.cpp.

References llvm::MCModule::createAtom(), llvm::object::macho::Data, llvm::ARM_PROC::I, isDataAtom(), isTextAtom(), and llvm_unreachable.

void MCAtom::truncate ( uint64_t  TruncPt)

truncate - Truncates an atom so that TruncPt is the last byte address contained in the atom.

Definition at line 76 of file MCAtom.cpp.

References llvm::object::macho::Data, llvm::ARM_PROC::I, isDataAtom(), isTextAtom(), and llvm_unreachable.


Friends And Related Function Documentation

friend class MCModule [friend]

Definition at line 34 of file MCAtom.h.


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