LLVM  14.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. More...
unsigned SizeOf (const AsmPrinter *AP, dwarf::Form Form) const
 SizeOf - Determine size of integer value in bytes. More...
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. More...

Detailed Description

An integer value DIE.

Definition at line 163 of file DIE.h.

Constructor & Destructor Documentation

◆ DIEInteger()

llvm::DIEInteger::DIEInteger ( uint64_t  I)

Definition at line 167 of file DIE.h.

References Integer.

Member Function Documentation

◆ BestForm()

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

Choose the best form for integer.

Definition at line 170 of file DIE.h.

Referenced by llvm::DwarfUnit::addSInt(), and llvm::DwarfUnit::addUInt().

◆ emitValue()

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

EmitValue - Emit integer of appropriate size.

Definition at line 375 of file DIE.cpp.

References llvm::HexStyle::Asm, llvm_unreachable, and SizeOf().

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

◆ getValue()

uint64_t llvm::DIEInteger::getValue ( ) const

Definition at line 190 of file DIE.h.

References Integer.

◆ print()

LLVM_DUMP_METHOD void DIEInteger::print ( raw_ostream O) const

Definition at line 455 of file DIE.cpp.

References llvm::RISCVFenceField::O.

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

◆ setValue()

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

Definition at line 191 of file DIE.h.

References Integer.

◆ SizeOf()

unsigned DIEInteger::SizeOf ( const AsmPrinter AP,
dwarf::Form  Form 
) const

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