Thanks to visit codestin.com
Credit goes to llvm.org

LLVM 22.0.0git
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)
LLVM_ABI void emitValue (const AsmPrinter *Asm, dwarf::Form Form) const
 EmitValue - Emit integer of appropriate size.
LLVM_ABI unsigned sizeOf (const dwarf::FormParams &FormParams, dwarf::Form Form) const
 sizeOf - Determine size of integer value in bytes.
LLVM_ABI 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 169 of file DIE.h.

Constructor & Destructor Documentation

◆ DIEInteger()

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

Definition at line 173 of file DIE.h.

References I.

Member Function Documentation

◆ BestForm()

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().

◆ getValue()

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

Definition at line 196 of file DIE.h.

◆ print()

LLVM_DUMP_METHOD void DIEInteger::print ( raw_ostream & O) const

Definition at line 443 of file DIE.cpp.

◆ setValue()

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

Definition at line 197 of file DIE.h.

◆ 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(), and llvm::DIEString::sizeOf().


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