Home
last modified time | relevance | path

Searched refs:byte_size (Results 1 – 25 of 180) sorted by relevance

12345678

/llvm-project-15.0.7/lldb/source/Plugins/ObjectFile/ELF/
H A DELFHeader.cpp27 uint32_t byte_size) { in GetMaxU64() argument
29 *value = data.GetMaxU64(offset, byte_size); in GetMaxU64()
39 if (!GetMaxU64(data, offset, value, byte_size)) { in GetMaxU64()
49 uint32_t byte_size) { in GetMaxS64() argument
51 *value = data.GetMaxS64(offset, byte_size); in GetMaxS64()
61 if (!GetMaxS64(data, offset, value, byte_size)) { in GetMaxS64()
120 const unsigned byte_size = Is32Bit() ? 4 : 8; in Parse() local
122 data.SetAddressByteSize(byte_size); in Parse()
234 if (!GetMaxU64(data, offset, &sh_flags, byte_size)) in Parse()
325 const bool parsing_32 = byte_size == 4; in Parse()
[all …]
/llvm-project-15.0.7/lldb/source/Utility/
H A DRegisterValue.cpp183 if (reg_info->byte_size == 0) { in SetValueFromData()
299 if (bytes.size() != byte_size) in ParseVectorEncoding()
348 const uint32_t byte_size = reg_info->byte_size; in SetValueFromString() local
377 uval64, byte_size); in SetValueFromString()
406 ival64, byte_size); in SetValueFromString()
735 if (byte_size == 0) { in SetUInt()
737 } else if (byte_size == 1) { in SetUInt()
739 } else if (byte_size <= 2) { in SetUInt()
741 } else if (byte_size <= 4) { in SetUInt()
743 } else if (byte_size <= 8) { in SetUInt()
[all …]
H A DScalar.cpp85 size_t byte_size = GetByteSize(); in GetData() local
86 if (byte_size == 0) { in GetData()
94 if (limit_byte_size < byte_size) { in GetData()
98 byte_size = limit_byte_size; in GetData()
103 offset = byte_size - limit_byte_size; in GetData()
104 byte_size = limit_byte_size; in GetData()
660 fits = integer.isIntN(byte_size * 8); in SetValueFromCString()
664 value_str, byte_size); in SetValueFromCString()
713 if (data.GetByteSize() < byte_size) in SetValueFromData()
730 if (byte_size == sizeof(float)) in SetValueFromData()
[all …]
H A DDataExtractor.cpp112 for (size_t i = 0; i < byte_size; ++i) in ReadMaxInt64()
116 for (size_t i = 0; i < byte_size; ++i) in ReadMaxInt64()
117 res = (res << 8) | data[byte_size - 1 - i]; in ReadMaxInt64()
520 lldbassert(byte_size > 0 && byte_size <= 4 && "GetMaxU32 invalid byte_size!"); in GetMaxU32()
521 return GetMaxU64(offset_ptr, byte_size); in GetMaxU32()
526 lldbassert(byte_size > 0 && byte_size <= 8 && "GetMaxU64 invalid byte_size!"); in GetMaxU64()
527 switch (byte_size) { in GetMaxU64()
550 switch (byte_size) { in GetMaxU64_unchecked()
561 *offset_ptr += byte_size; in GetMaxU64_unchecked()
569 uint64_t u64 = GetMaxU64(offset_ptr, byte_size); in GetMaxS64()
[all …]
/llvm-project-15.0.7/lldb/source/Plugins/Process/elf-core/
H A DRegisterContextPOSIXCore_ppc64le.cpp71 offset = m_fpr.CopyData(offset, reg_info->byte_size, &v); in ReadRegister()
73 if (offset == reg_info->byte_size) { in ReadRegister()
80 offset = m_vmx.CopyData(offset, reg_info->byte_size, &v); in ReadRegister()
82 if (offset == reg_info->byte_size) { in ReadRegister()
83 value.SetBytes(v, reg_info->byte_size, m_vmx.GetByteOrder()); in ReadRegister()
94 if (tmp_offset != reg_info->byte_size / 2) { in ReadRegister()
101 if (tmp_offset != reg_info->byte_size / 2) { in ReadRegister()
110 if (offset == reg_info->byte_size) { in ReadRegister()
116 uint64_t v = m_gpr.GetMaxU64(&offset, reg_info->byte_size); in ReadRegister()
118 if (offset == reg_info->byte_offset + reg_info->byte_size) { in ReadRegister()
[all …]
H A DRegisterContextPOSIXCore_powerpc.cpp69 uint64_t v = m_fpr.GetMaxU64(&offset, reg_info->byte_size); in ReadRegister()
70 if (offset == reg_info->byte_offset + reg_info->byte_size) { in ReadRegister()
76 offset = m_vec.CopyData(offset, reg_info->byte_size, &v); in ReadRegister()
77 if (offset == reg_info->byte_size) { in ReadRegister()
78 value.SetBytes(v, reg_info->byte_size, m_vec.GetByteOrder()); in ReadRegister()
82 uint64_t v = m_gpr.GetMaxU64(&offset, reg_info->byte_size); in ReadRegister()
83 if (offset == reg_info->byte_offset + reg_info->byte_size) { in ReadRegister()
84 if (reg_info->byte_size < sizeof(v)) in ReadRegister()
H A DRegisterContextPOSIXCore_s390x.cpp60 uint64_t v = m_gpr.GetMaxU64(&offset, reg_info->byte_size); in ReadRegister()
61 if (offset == reg_info->byte_offset + reg_info->byte_size) { in ReadRegister()
62 value.SetUInt(v, reg_info->byte_size); in ReadRegister()
69 uint64_t v = m_fpr.GetMaxU64(&offset, reg_info->byte_size); in ReadRegister()
70 if (offset == reg_info->byte_offset + reg_info->byte_size) { in ReadRegister()
71 value.SetUInt(v, reg_info->byte_size); in ReadRegister()
H A DRegisterContextPOSIXCore_arm64.cpp133 if (offset + reg_info->byte_size <= GetGPRSize()) { in ReadRegister()
134 uint64_t v = m_gpr_data.GetMaxU64(&offset, reg_info->byte_size); in ReadRegister()
135 if (offset == reg_info->byte_offset + reg_info->byte_size) { in ReadRegister()
151 reg_info->byte_size, lldb::eByteOrderLittle, in ReadRegister()
184 reg_info->byte_size, lldb::eByteOrderLittle, in ReadRegister()
198 uint64_t byte_size = 1; in ReadRegister() local
202 byte_size = 16; in ReadRegister()
207 value.SetFromMemoryData(reg_info, src, byte_size, lldb::eByteOrderLittle, in ReadRegister()
214 reg_info->byte_size, lldb::eByteOrderLittle, in ReadRegister()
225 reg_info->byte_size, lldb::eByteOrderLittle, error); in ReadRegister()
/llvm-project-15.0.7/lldb/source/Interpreter/
H A DOptionGroupFormat.cpp110 uint32_t byte_size = 0; in SetOptionValue() local
114 byte_size)) { in SetOptionValue()
134 byte_size); in SetOptionValue()
140 if (byte_size == 0) in SetOptionValue()
142 byte_size); in SetOptionValue()
169 m_byte_size.SetCurrentValue(byte_size); in SetOptionValue()
187 uint32_t &byte_size) { in ParserGDBFormatLetter() argument
255 byte_size = 1; in ParserGDBFormatLetter()
257 byte_size = 2; in ParserGDBFormatLetter()
259 byte_size = 4; in ParserGDBFormatLetter()
[all …]
/llvm-project-15.0.7/lldb/source/Plugins/ABI/AArch64/
H A DABIMacOSX_arm64.cpp272 if (byte_size <= 16) { in SetReturnValueObject()
274 if (byte_size <= 8) { in SetReturnValueObject()
316 byte_size); in SetReturnValueObject()
328 if (byte_size > 0) { in SetReturnValueObject()
332 if (byte_size <= v0_info->byte_size) { in SetReturnValueObject()
499 if (!byte_size || *byte_size == 0) in LoadValueFromConsecutiveGPRRegisters()
655 if (!byte_size) in GetReturnValueObjectImpl()
665 if (*byte_size <= 8) { in GetReturnValueObjectImpl()
684 x0_reg_info->byte_size + x1_reg_info->byte_size) { in GetReturnValueObjectImpl()
779 if (*byte_size > 0) { in GetReturnValueObjectImpl()
[all …]
H A DABISysV_arm64.cpp244 if (byte_size <= 16) { in SetReturnValueObject()
247 if (byte_size <= 8) { in SetReturnValueObject()
289 byte_size); in SetReturnValueObject()
301 if (byte_size > 0) { in SetReturnValueObject()
305 if (byte_size <= v0_info->byte_size) { in SetReturnValueObject()
474 if (byte_size || *byte_size == 0) in LoadValueFromConsecutiveGPRRegisters()
625 if (!byte_size) in GetReturnValueObjectImpl()
635 if (*byte_size <= 8) { in GetReturnValueObjectImpl()
644 switch (*byte_size) { in GetReturnValueObjectImpl()
656 x0_reg_info->byte_size + x1_reg_info->byte_size) { in GetReturnValueObjectImpl()
[all …]
/llvm-project-15.0.7/lldb/source/Plugins/Process/gdb-remote/
H A DGDBRemoteRegisterContext.cpp103 parent_reg->byte_size) in ReadRegister()
105 offset += parent_reg->byte_size; in ReadRegister()
131 const size_t reg_byte_size = reg_info->byte_size; in PrivateSetRegisterValue()
233 (reginfo.byte_offset + reginfo.byte_size <= in ReadRegisterBytes()
308 combined_size += parent_reg->byte_size; in WriteRegister()
323 offset += parent_reg->byte_size; in WriteRegister()
345 reg_info->byte_size}); in SetPrimordialRegister()
362 reg_info->byte_offset + reg_info->byte_size); in WriteRegisterBytes()
805 reg.byte_size = z_reg_byte_size; in UpdateARM64SVERegistersInfos()
807 reg.byte_size = vg; in UpdateARM64SVERegistersInfos()
[all …]
/llvm-project-15.0.7/lldb/source/Plugins/ABI/X86/
H A DABISysV_i386.cpp154 current_stack_argument += byte_size; in ReadIntegerArgument()
389 llvm::Optional<uint64_t> byte_size = in GetReturnValueObjectSimple() local
391 if (!byte_size) in GetReturnValueObjectSimple()
406 switch (*byte_size) { in GetReturnValueObjectSimple()
474 if (*byte_size == 4) { in GetReturnValueObjectSimple()
478 } else if (*byte_size == 8) { in GetReturnValueObjectSimple()
485 } else if (*byte_size == 12) { in GetReturnValueObjectSimple()
514 llvm::Optional<uint64_t> byte_size = in GetReturnValueObjectSimple() local
516 if (byte_size && *byte_size > 0) { in GetReturnValueObjectSimple()
522 if (*byte_size <= vec_reg->byte_size) { in GetReturnValueObjectSimple()
[all …]
H A DABISysV_x86_64.cpp208 current_stack_argument += byte_size; in ReadIntegerArgument()
409 llvm::Optional<uint64_t> byte_size = in GetReturnValueObjectSimple() local
411 if (!byte_size) in GetReturnValueObjectSimple()
416 switch (*byte_size) { in GetReturnValueObjectSimple()
456 llvm::Optional<uint64_t> byte_size = in GetReturnValueObjectSimple() local
458 if (byte_size && *byte_size <= sizeof(long double)) { in GetReturnValueObjectSimple()
466 if (*byte_size == sizeof(float)) { in GetReturnValueObjectSimple()
495 llvm::Optional<uint64_t> byte_size = in GetReturnValueObjectSimple() local
497 if (byte_size && *byte_size > 0) { in GetReturnValueObjectSimple()
504 if (*byte_size <= altivec_reg->byte_size) { in GetReturnValueObjectSimple()
[all …]
H A DABIWindows_x86_64.cpp225 current_stack_argument += byte_size; in ReadIntegerArgument()
417 llvm::Optional<uint64_t> byte_size = in GetReturnValueObjectSimple() local
419 if (!byte_size) in GetReturnValueObjectSimple()
424 switch (*byte_size) { in GetReturnValueObjectSimple()
464 llvm::Optional<uint64_t> byte_size = in GetReturnValueObjectSimple() local
466 if (byte_size && *byte_size <= sizeof(long double)) { in GetReturnValueObjectSimple()
474 if (*byte_size == sizeof(float)) { in GetReturnValueObjectSimple()
502 llvm::Optional<uint64_t> byte_size = in GetReturnValueObjectSimple() local
504 if (byte_size && *byte_size > 0) { in GetReturnValueObjectSimple()
511 if (*byte_size <= xmm_reg->byte_size) { in GetReturnValueObjectSimple()
[all …]
/llvm-project-15.0.7/lldb/source/Target/
H A DMemory.cpp102 lldb::addr_t byte_size) { in AddInvalidRange() argument
103 if (byte_size > 0) { in AddInvalidRange()
105 InvalidRanges::Entry range(base_addr, byte_size); in AddInvalidRange()
112 lldb::addr_t byte_size) { in RemoveInvalidRange() argument
113 if (byte_size > 0) { in RemoveInvalidRange()
119 entry->GetByteSize() == byte_size) in RemoveInvalidRange()
255 : m_range(addr, byte_size), m_permissions(permissions), in AllocatedBlock()
260 assert(byte_size > chunk_size); in AllocatedBlock()
350 const size_t num_pages = (byte_size + page_size - 1) / page_size; in AllocatePage()
383 addr = (*pos).second->ReserveBlock(byte_size); in AllocateMemory()
[all …]
/llvm-project-15.0.7/lldb/include/lldb/Core/
H A DAddressRange.h48 lldb::addr_t byte_size);
63 AddressRange(lldb::addr_t file_addr, lldb::addr_t byte_size,
76 AddressRange(const Address &so_addr, lldb::addr_t byte_size);
237 void SetByteSize(lldb::addr_t byte_size) { m_byte_size = byte_size; } in SetByteSize() argument
/llvm-project-15.0.7/lldb/source/Expression/
H A DExpressionVariable.cpp20 llvm::Optional<uint64_t> byte_size = m_frozen_sp->GetByteSize(); in GetValueBytes() local
21 if (byte_size && *byte_size) { in GetValueBytes()
22 if (m_frozen_sp->GetDataExtractor().GetByteSize() < *byte_size) { in GetValueBytes()
23 m_frozen_sp->GetValue().ResizeData(*byte_size); in GetValueBytes()
/llvm-project-15.0.7/lldb/examples/python/
H A Dtypes.py166 byte_size = type.GetByteSize()
171 print('Total byte size: %u' % (byte_size))
174 print('Padding percentage: %2.2f %%' % ((float(padding) / float(byte_size)) * 100.0))
188 byte_size = type.GetByteSize()
190 … print('%+4u <%3u> %s%s %s;' % (base_offset, byte_size, ' ' * depth, typename, member_name))
192 print('%+4u {%3u} %s%s' % (base_offset, byte_size, ' ' * depth, typename))
197 return (base_offset + byte_size, padding)
240 if prev_end_offset < byte_size:
241 last_member_padding = byte_size - prev_end_offset
249 prev_end_offset = base_offset + byte_size
/llvm-project-15.0.7/lldb/source/Plugins/SymbolFile/DWARF/
H A DUniqueDWARFASTType.h25 const lldb_private::Declaration &decl, int32_t byte_size) in UniqueDWARFASTType() argument
27 m_byte_size(byte_size) {} in UniqueDWARFASTType()
64 const int32_t byte_size, UniqueDWARFASTType &entry) const;
83 const lldb_private::Declaration &decl, const int32_t byte_size, in Find() argument
88 return pos->second.Find(die, decl, byte_size, entry); in Find()
/llvm-project-15.0.7/lldb/source/Symbol/
H A DCompilerType.cpp799 if (!byte_size) in GetValueAsScalar()
808 if (*byte_size <= sizeof(unsigned long long)) { in GetValueAsScalar()
810 if (*byte_size <= sizeof(unsigned int)) { in GetValueAsScalar()
825 if (*byte_size <= sizeof(long long)) { in GetValueAsScalar()
827 if (*byte_size <= sizeof(int)) { in GetValueAsScalar()
830 } else if (*byte_size <= sizeof(long)) { in GetValueAsScalar()
833 } else if (*byte_size <= sizeof(long long)) { in GetValueAsScalar()
842 if (*byte_size <= sizeof(long double)) { in GetValueAsScalar()
845 if (*byte_size == sizeof(float)) { in GetValueAsScalar()
855 } else if (*byte_size == sizeof(double)) { in GetValueAsScalar()
[all …]
/llvm-project-15.0.7/lldb/source/Core/
H A DAddressRange.cpp33 AddressRange::AddressRange(addr_t file_addr, addr_t byte_size, in AddressRange() argument
35 : m_base_addr(file_addr, section_list), m_byte_size(byte_size) {} in AddressRange()
38 addr_t byte_size) in AddressRange() argument
39 : m_base_addr(section, offset), m_byte_size(byte_size) {} in AddressRange()
41 AddressRange::AddressRange(const Address &so_addr, addr_t byte_size) in AddressRange() argument
42 : m_base_addr(so_addr), m_byte_size(byte_size) {} in AddressRange()
/llvm-project-15.0.7/lldb/source/Plugins/ABI/Mips/
H A DABISysV_mips64.cpp718 llvm::Optional<uint64_t> byte_size = in GetReturnValueObjectImpl() local
720 if (!byte_size) in GetReturnValueObjectImpl()
740 switch (*byte_size) { in GetReturnValueObjectImpl()
781 switch (*byte_size) { in GetReturnValueObjectImpl()
806 if (*byte_size <= sizeof(long double)) { in GetReturnValueObjectImpl()
817 if (*byte_size == sizeof(float)) { in GetReturnValueObjectImpl()
820 } else if (*byte_size == sizeof(double)) { in GetReturnValueObjectImpl()
869 if (*byte_size <= 16) { in GetReturnValueObjectImpl()
1046 if (*byte_size <= 8) in GetReturnValueObjectImpl()
1060 if (bytes_copied != r2_info->byte_size) in GetReturnValueObjectImpl()
[all …]
/llvm-project-15.0.7/lldb/source/Plugins/Process/Windows/Common/x64/
H A DRegisterContextWindows_x64.cpp427 reg_info->byte_size, endian::InlHostByteOrder()); in ReadRegister()
431 reg_info->byte_size, endian::InlHostByteOrder()); in ReadRegister()
435 reg_info->byte_size, endian::InlHostByteOrder()); in ReadRegister()
439 reg_info->byte_size, endian::InlHostByteOrder()); in ReadRegister()
443 reg_info->byte_size, endian::InlHostByteOrder()); in ReadRegister()
447 reg_info->byte_size, endian::InlHostByteOrder()); in ReadRegister()
451 reg_info->byte_size, endian::InlHostByteOrder()); in ReadRegister()
455 reg_info->byte_size, endian::InlHostByteOrder()); in ReadRegister()
459 reg_info->byte_size, endian::InlHostByteOrder()); in ReadRegister()
463 reg_info->byte_size, endian::InlHostByteOrder()); in ReadRegister()
[all …]
/llvm-project-15.0.7/lldb/source/Plugins/ABI/ARC/
H A DABISysV_arc.cpp461 const size_t byte_size = compiler_type.GetByteSize(&thread).value_or(0); in GetReturnValueObjectSimple() local
462 auto raw_value = ReadRawValue(reg_ctx, byte_size); in GetReturnValueObjectSimple()
486 auto raw_value = ReadRawValue(reg_ctx, byte_size); in GetReturnValueObjectSimple()
488 if (!SetSizedFloat(value.GetScalar(), raw_value, byte_size)) in GetReturnValueObjectSimple()
524 size_t byte_size = retType.getPrimitiveSizeInBits(); in GetReturnValueObjectImpl() local
525 if (1 != byte_size) // For boolean type. in GetReturnValueObjectImpl()
526 byte_size /= CHAR_BIT; in GetReturnValueObjectImpl()
528 auto raw_value = ReadRawValue(reg_ctx, byte_size); in GetReturnValueObjectImpl()
543 const size_t byte_size = retType.getPrimitiveSizeInBits() / CHAR_BIT; in GetReturnValueObjectImpl() local
544 auto raw_value = ReadRawValue(reg_ctx, byte_size); in GetReturnValueObjectImpl()
[all …]

12345678