reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

include/llvm/Support/LEB128.h
  191 extern unsigned getULEB128Size(uint64_t Value);

References

lib/CodeGen/AsmPrinter/DIE.cpp
  288   CUOffset += getULEB128Size(getAbbrevNumber());
  447     return getULEB128Size(Integer);
  673     return getULEB128Size(Entry->getOffset());
  736     return Size + getULEB128Size(Size);
  785   case dwarf::DW_FORM_block:  return Size + getULEB128Size(Size);
lib/CodeGen/AsmPrinter/EHStreamer.cpp
   95     Offset -= getULEB128Size(*I);
lib/MC/MCDwarf.cpp
  177       unsigned Size = getULEB128Size(Discriminator);
lib/ObjectYAML/DWARFEmitter.cpp
  324     Length += getULEB128Size(DIE.AbbrCode);
  332       Length += getULEB128Size(U);
lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp
 1044       Result += getULEB128Size(item.Tag);
 1045       Result += getULEB128Size(item.IntValue);
 1048       Result += getULEB128Size(item.Tag);
 1052       Result += getULEB128Size(item.Tag);
 1053       Result += getULEB128Size(item.IntValue);
tools/dsymutil/DwarfLinker.cpp
  640   uint64_t Offset = DIE.getOffset() + getULEB128Size(Abbrev->getCode());
  680   uint64_t Offset = DIE.getOffset() + getULEB128Size(Abbrev->getCode());
  794   uint64_t Offset = Die.getOffset() + getULEB128Size(Abbrev->getCode());
 1574   Offset += getULEB128Size(Abbrev->getCode());
 1674   OutOffset += getULEB128Size(Die->getAbbrevNumber());
 2485   Size += getULEB128Size(Abbrev.getNumber());
 2491     Size += getULEB128Size(Abbrev.getNumber());
tools/dsymutil/DwarfStreamer.cpp
  506       LineSectionSize += 2 + PointerSize + getULEB128Size(PointerSize + 1);
  521       LineSectionSize += 1 + getULEB128Size(FileNum);
  527       LineSectionSize += 1 + getULEB128Size(Column);
  537       LineSectionSize += 1 + getULEB128Size(Isa);
  577         LineSectionSize += 1 + getULEB128Size(AddressDelta);
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileBinaryUtils.h
   39     unsigned min = llvm::getULEB128Size(value);
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileBinaryWriter.cpp
 1341       nodeSize = llvm::getULEB128Size(_flags);
 1342       nodeSize += llvm::getULEB128Size(_other); // Other contains ordinal.
 1346       nodeSize = llvm::getULEB128Size(_flags) + llvm::getULEB128Size(_address);
 1346       nodeSize = llvm::getULEB128Size(_flags) + llvm::getULEB128Size(_address);
 1348         nodeSize += llvm::getULEB128Size(_other);
 1351     nodeSize += llvm::getULEB128Size(nodeSize);
 1357               + llvm::getULEB128Size(edge._child->_trieOffset); // Offset len.
 1374         uint32_t nodeSize = llvm::getULEB128Size(_flags)
 1375                           + llvm::getULEB128Size(_other)
 1384         uint32_t nodeSize = llvm::getULEB128Size(_flags)
 1385                           + llvm::getULEB128Size(_other) + 1;
 1394       uint32_t nodeSize = llvm::getULEB128Size(_flags)
 1395                         + llvm::getULEB128Size(_address)
 1396                         + llvm::getULEB128Size(_other);
 1404       uint32_t nodeSize = llvm::getULEB128Size(_flags)
 1405                         + llvm::getULEB128Size(_address);
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileFromAtoms.cpp
 1483               6 + targ->name().size() + llvm::getULEB128Size(bind.segOffset);
 1485             offsetInBindInfo += llvm::getULEB128Size(bind.ordinal);
tools/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.cpp
 1220   return GetOffset() + llvm::getULEB128Size(m_abbr_idx);
unittests/Support/LEB128Test.cpp
  324   EXPECT_EQ(1u, getULEB128Size(0)); // special case
  326   EXPECT_EQ(1u, getULEB128Size(0x1ULL));
  327   EXPECT_EQ(1u, getULEB128Size(0x40ULL));
  328   EXPECT_EQ(1u, getULEB128Size(0x7fULL));
  330   EXPECT_EQ(2u, getULEB128Size(0x80ULL));
  331   EXPECT_EQ(2u, getULEB128Size(0x2000ULL));
  332   EXPECT_EQ(2u, getULEB128Size(0x3fffULL));
  334   EXPECT_EQ(3u, getULEB128Size(0x4000ULL));
  335   EXPECT_EQ(3u, getULEB128Size(0x100000ULL));
  336   EXPECT_EQ(3u, getULEB128Size(0x1fffffULL));
  338   EXPECT_EQ(4u, getULEB128Size(0x200000ULL));
  339   EXPECT_EQ(4u, getULEB128Size(0x8000000ULL));
  340   EXPECT_EQ(4u, getULEB128Size(0xfffffffULL));
  342   EXPECT_EQ(5u, getULEB128Size(0x10000000ULL));
  343   EXPECT_EQ(5u, getULEB128Size(0x400000000ULL));
  344   EXPECT_EQ(5u, getULEB128Size(0x7ffffffffULL));
  346   EXPECT_EQ(6u, getULEB128Size(0x800000000ULL));
  347   EXPECT_EQ(6u, getULEB128Size(0x20000000000ULL));
  348   EXPECT_EQ(6u, getULEB128Size(0x3ffffffffffULL));
  350   EXPECT_EQ(7u, getULEB128Size(0x40000000000ULL));
  351   EXPECT_EQ(7u, getULEB128Size(0x1000000000000ULL));
  352   EXPECT_EQ(7u, getULEB128Size(0x1ffffffffffffULL));
  354   EXPECT_EQ(8u, getULEB128Size(0x2000000000000ULL));
  355   EXPECT_EQ(8u, getULEB128Size(0x80000000000000ULL));
  356   EXPECT_EQ(8u, getULEB128Size(0xffffffffffffffULL));
  358   EXPECT_EQ(9u, getULEB128Size(0x100000000000000ULL));
  359   EXPECT_EQ(9u, getULEB128Size(0x4000000000000000ULL));
  360   EXPECT_EQ(9u, getULEB128Size(0x7fffffffffffffffULL));
  362   EXPECT_EQ(10u, getULEB128Size(0x8000000000000000ULL));
  364   EXPECT_EQ(10u, getULEB128Size(UINT64_MAX));