Lines Matching refs:AddrDelta

53 static inline uint64_t ScaleAddrDelta(uint64_t AddrDelta) {  in ScaleAddrDelta()  argument
55 return AddrDelta; in ScaleAddrDelta()
56 if (AddrDelta % DWARF2_LINE_MIN_INSN_LENGTH != 0) { in ScaleAddrDelta()
60 return AddrDelta / DWARF2_LINE_MIN_INSN_LENGTH; in ScaleAddrDelta()
327 uint64_t AddrDelta) { in Write() argument
330 MCDwarfLineAddr::Encode(LineDelta, AddrDelta, OS); in Write()
336 uint64_t AddrDelta) { in Emit() argument
339 MCDwarfLineAddr::Encode(LineDelta, AddrDelta, OS); in Emit()
344 void MCDwarfLineAddr::Encode(int64_t LineDelta, uint64_t AddrDelta, in Encode() argument
350 AddrDelta = ScaleAddrDelta(AddrDelta); in Encode()
356 if (AddrDelta == MAX_SPECIAL_ADDR_DELTA) in Encode()
360 MCObjectWriter::EncodeULEB128(AddrDelta, OS); in Encode()
386 if (LineDelta == 0 && AddrDelta == 0) { in Encode()
395 if (AddrDelta < 256 + MAX_SPECIAL_ADDR_DELTA) { in Encode()
397 Opcode = Temp + AddrDelta * DWARF2_LINE_RANGE; in Encode()
404 Opcode = Temp + (AddrDelta - MAX_SPECIAL_ADDR_DELTA) * DWARF2_LINE_RANGE; in Encode()
416 MCObjectWriter::EncodeULEB128(AddrDelta, OSE); in Encode()
1061 uint64_t AddrDelta) { in EmitAdvanceLoc() argument
1064 MCDwarfFrameEmitter::EncodeAdvanceLoc(AddrDelta, OS); in EmitAdvanceLoc()
1068 void MCDwarfFrameEmitter::EncodeAdvanceLoc(uint64_t AddrDelta, in EncodeAdvanceLoc() argument
1071 if (AddrDelta == 0) { in EncodeAdvanceLoc()
1072 } else if (isUIntN(6, AddrDelta)) { in EncodeAdvanceLoc()
1073 uint8_t Opcode = dwarf::DW_CFA_advance_loc | AddrDelta; in EncodeAdvanceLoc()
1075 } else if (isUInt<8>(AddrDelta)) { in EncodeAdvanceLoc()
1077 OS << uint8_t(AddrDelta); in EncodeAdvanceLoc()
1078 } else if (isUInt<16>(AddrDelta)) { in EncodeAdvanceLoc()
1081 OS << uint8_t( AddrDelta & 0xff); in EncodeAdvanceLoc()
1082 OS << uint8_t((AddrDelta >> 8) & 0xff); in EncodeAdvanceLoc()
1085 assert(isUInt<32>(AddrDelta)); in EncodeAdvanceLoc()
1087 OS << uint8_t( AddrDelta & 0xff); in EncodeAdvanceLoc()
1088 OS << uint8_t((AddrDelta >> 8) & 0xff); in EncodeAdvanceLoc()
1089 OS << uint8_t((AddrDelta >> 16) & 0xff); in EncodeAdvanceLoc()
1090 OS << uint8_t((AddrDelta >> 24) & 0xff); in EncodeAdvanceLoc()