LLVM 22.0.0git
Public Member Functions | Static Public Member Functions | Friends | List of all members
llvm::MCValue Class Reference

#include "llvm/MC/MCValue.h"

Public Member Functions

 MCValue ()=default
 
int64_t getConstant () const
 
void setConstant (int64_t C)
 
uint32_t getSpecifier () const
 
void setSpecifier (uint32_t S)
 
const MCSymbolgetAddSym () const
 
void setAddSym (const MCSymbol *A)
 
const MCSymbolgetSubSym () const
 
bool isAbsolute () const
 Is this an absolute (as opposed to relocatable) value.
 

Static Public Member Functions

static MCValue get (const MCSymbol *SymA, const MCSymbol *SymB=nullptr, int64_t Val=0, uint32_t Specifier=0)
 
static MCValue get (int64_t Val)
 

Friends

class MCAssembler
 
class MCExpr
 

Detailed Description

Definition at line 30 of file MCValue.h.

Constructor & Destructor Documentation

◆ MCValue()

llvm::MCValue::MCValue ( )
default

Member Function Documentation

◆ get() [1/2]

static MCValue llvm::MCValue::get ( const MCSymbol SymA,
const MCSymbol SymB = nullptr,
int64_t  Val = 0,
uint32_t  Specifier = 0 
)
inlinestatic

◆ get() [2/2]

static MCValue llvm::MCValue::get ( int64_t  Val)
inlinestatic

Definition at line 66 of file MCValue.h.

◆ getAddSym()

const MCSymbol * llvm::MCValue::getAddSym ( ) const
inline

◆ getConstant()

int64_t llvm::MCValue::getConstant ( ) const
inline

◆ getSpecifier()

uint32_t llvm::MCValue::getSpecifier ( ) const
inline

Definition at line 46 of file MCValue.h.

Referenced by llvm::MCExpr::evaluateAsRelocatableImpl().

◆ getSubSym()

const MCSymbol * llvm::MCValue::getSubSym ( ) const
inline

◆ isAbsolute()

bool llvm::MCValue::isAbsolute ( ) const
inline

◆ setAddSym()

void llvm::MCValue::setAddSym ( const MCSymbol A)
inline

Definition at line 50 of file MCValue.h.

References A.

◆ setConstant()

void llvm::MCValue::setConstant ( int64_t  C)
inline

Definition at line 45 of file MCValue.h.

References llvm::CallingConv::C.

◆ setSpecifier()

void llvm::MCValue::setSpecifier ( uint32_t  S)
inline

Friends And Related Function Documentation

◆ MCAssembler

friend class MCAssembler
friend

Definition at line 41 of file MCValue.h.

◆ MCExpr

friend class MCExpr
friend

Definition at line 42 of file MCValue.h.


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