LLVM 20.0.0git
Public Member Functions | Static Public Member Functions | List of all members
llvm::DIEInteger Class Reference

An integer value DIE. More...

#include "llvm/CodeGen/DIE.h"

Public Member Functions

 DIEInteger (uint64_t I)
 
uint64_t getValue () const
 
void setValue (uint64_t Val)
 
void emitValue (const AsmPrinter *Asm, dwarf::Form Form) const
 EmitValue - Emit integer of appropriate size.
 
unsigned sizeOf (const dwarf::FormParams &FormParams, dwarf::Form Form) const
 sizeOf - Determine size of integer value in bytes.
 
void print (raw_ostream &O) const
 

Static Public Member Functions

static dwarf::Form BestForm (bool IsSigned, uint64_t Int)
 Choose the best form for integer.
 

Detailed Description

An integer value DIE.

Definition at line 168 of file DIE.h.

Constructor & Destructor Documentation

◆ DIEInteger()

llvm::DIEInteger::DIEInteger ( uint64_t  I)
inlineexplicit

Definition at line 172 of file DIE.h.

References llvm::Integer.

Member Function Documentation

◆ BestForm()

static dwarf::Form llvm::DIEInteger::BestForm ( bool  IsSigned,
uint64_t  Int 
)
inlinestatic

◆ emitValue()

void DIEInteger::emitValue ( const AsmPrinter Asm,
dwarf::Form  Form 
) const

EmitValue - Emit integer of appropriate size.

Definition at line 364 of file DIE.cpp.

References llvm_unreachable, and sizeOf().

Referenced by llvm::DIEString::emitValue(), and llvm::DIEAddrOffset::emitValue().

◆ getValue()

uint64_t llvm::DIEInteger::getValue ( ) const
inline

Definition at line 195 of file DIE.h.

References llvm::Integer.

◆ print()

LLVM_DUMP_METHOD void DIEInteger::print ( raw_ostream O) const

Definition at line 443 of file DIE.cpp.

Referenced by llvm::DIEAddrOffset::print().

◆ setValue()

void llvm::DIEInteger::setValue ( uint64_t  Val)
inline

Definition at line 196 of file DIE.h.

References llvm::Integer.

◆ sizeOf()

unsigned DIEInteger::sizeOf ( const dwarf::FormParams FormParams,
dwarf::Form  Form 
) const

sizeOf - Determine size of integer value in bytes.

Definition at line 421 of file DIE.cpp.

References llvm::dwarf::getFixedFormByteSize(), llvm::getSLEB128Size(), llvm::getULEB128Size(), and llvm_unreachable.

Referenced by emitValue(), llvm::DIEString::sizeOf(), and llvm::DIEAddrOffset::sizeOf().


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