Home
last modified time | relevance | path

Searched refs:bit_size (Results 1 – 25 of 36) sorted by relevance

12

/freebsd/contrib/processor-trace/libipt/src/
H A Dpt_tnt_cache.c71 uint8_t bit_size; in pt_tnt_cache_update_tnt() local
81 bit_size = packet->bit_size; in pt_tnt_cache_update_tnt()
82 if (!bit_size) in pt_tnt_cache_update_tnt()
86 cache->index = 1ull << (bit_size - 1); in pt_tnt_cache_update_tnt()
H A Dpt_packet.c182 uint8_t bit_size; in pt_pkt_read_tnt() local
187 bit_size = pt_pkt_tnt_bit_size(payload); in pt_pkt_read_tnt()
188 if (!bit_size) in pt_pkt_read_tnt()
192 payload &= ~(1ull << bit_size); in pt_pkt_read_tnt()
195 packet->bit_size = bit_size; in pt_pkt_read_tnt()
H A Dpt_encoder.c327 if (packet->payload.tnt.bit_size >= 7) in pt_enc_next()
334 stop = packet->payload.tnt.bit_size + pt_opm_tnt_8_shr; in pt_enc_next()
351 if (packet->payload.tnt.bit_size >= pt_pl_tnt_64_bits) in pt_enc_next()
354 stop = 1ull << packet->payload.tnt.bit_size; in pt_enc_next()
736 packet.payload.tnt.bit_size = (uint8_t) size; in pt_encode_tnt_8()
747 packet.payload.tnt.bit_size = (uint8_t) size; in pt_encode_tnt_64()
/freebsd/contrib/llvm-project/lldb/source/Plugins/Language/CPlusPlus/
H A DGenericBitset.cpp118 std::optional<uint64_t> bit_size = llvm::expectedToOptional( in GetChildAtIndex() local
120 if (!bit_size || *bit_size == 0) in GetChildAtIndex()
122 chunk = m_first->GetChildAtIndex(idx / *bit_size); in GetChildAtIndex()
130 std::optional<uint64_t> bit_size = llvm::expectedToOptional( in GetChildAtIndex() local
132 if (!bit_size || *bit_size == 0) in GetChildAtIndex()
134 size_t chunk_idx = idx % *bit_size; in GetChildAtIndex()
/freebsd/contrib/llvm-project/lldb/source/Plugins/SymbolFile/NativePDB/
H A DUdtRecordCompleter.cpp56 m_layout.bit_size = m_cvr.ur.getSize() * 8; in UdtRecordCompleter()
63 m_layout.bit_size = m_cvr.cr.getSize() * 8; in UdtRecordCompleter()
350 uint64_t bit_size = 0; in AddMember() local
356 bit_size = field->bit_size; in AddMember()
380 bit_size = std::max(bit_size, member_offset + member_bit_size); in AddMember()
382 bit_size = std::max(bit_size, member_bit_size); in AddMember()
384 layout.bit_size = bit_size; in AddMember()
401 return bit_size; in AddMember()
475 uint64_t end_offset = offset + fields.back()->bit_size; in ConstructRecord()
494 int64_t bit_size = field->bit_size; in ConstructRecord() local
[all …]
H A DUdtRecordCompleter.h86 uint64_t bit_size; member
96 : kind(kind), name(), bit_offset(0), bit_size(0), qt(), in Member()
98 Member(llvm::StringRef name, uint64_t bit_offset, uint64_t bit_size, in Member()
100 : kind(Field), name(name), bit_offset(bit_offset), bit_size(bit_size), in Member()
106 fields.push_back(std::make_unique<Member>(name, bit_offset, bit_size, qt, in ConvertToStruct()
111 bit_offset = bit_size = bitfield_width = 0; in ConvertToStruct()
/freebsd/contrib/llvm-project/lldb/source/Plugins/TypeSystem/Clang/
H A DTypeSystemClang.cpp754 static inline bool QualTypeMatchesBitSize(const uint64_t bit_size, in QualTypeMatchesBitSize() argument
757 return qual_type_bit_size == bit_size; in QualTypeMatchesBitSize()
762 size_t bit_size) { in GetBuiltinTypeForEncodingAndBitSize() argument
770 if (QualTypeMatchesBitSize(bit_size, ast, ast.VoidPtrTy)) in GetBuiltinTypeForEncodingAndBitSize()
775 if (QualTypeMatchesBitSize(bit_size, ast, ast.UnsignedCharTy)) in GetBuiltinTypeForEncodingAndBitSize()
777 if (QualTypeMatchesBitSize(bit_size, ast, ast.UnsignedShortTy)) in GetBuiltinTypeForEncodingAndBitSize()
779 if (QualTypeMatchesBitSize(bit_size, ast, ast.UnsignedIntTy)) in GetBuiltinTypeForEncodingAndBitSize()
781 if (QualTypeMatchesBitSize(bit_size, ast, ast.UnsignedLongTy)) in GetBuiltinTypeForEncodingAndBitSize()
783 if (QualTypeMatchesBitSize(bit_size, ast, ast.UnsignedLongLongTy)) in GetBuiltinTypeForEncodingAndBitSize()
785 if (QualTypeMatchesBitSize(bit_size, ast, ast.UnsignedInt128Ty)) in GetBuiltinTypeForEncodingAndBitSize()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Plugins/ABI/X86/
H A DABIMacOSX_i386.cpp168 std::optional<uint64_t> bit_size = in GetArgumentValues() local
170 if (bit_size) { in GetArgumentValues()
173 ReadIntegerArgument(value->GetScalar(), *bit_size, is_signed, in GetArgumentValues()
176 ReadIntegerArgument(value->GetScalar(), *bit_size, false, in GetArgumentValues()
H A DABISysV_i386.cpp185 std::optional<uint64_t> bit_size = in GetArgumentValues() local
187 if (bit_size) { in GetArgumentValues()
190 ReadIntegerArgument(value->GetScalar(), *bit_size, is_signed, in GetArgumentValues()
193 ReadIntegerArgument(value->GetScalar(), *bit_size, false, in GetArgumentValues()
H A DABIWindows_x86_64.cpp278 std::optional<uint64_t> bit_size = in GetArgumentValues() local
280 if (!bit_size) in GetArgumentValues()
285 ReadIntegerArgument(value->GetScalar(), *bit_size, is_signed, thread, in GetArgumentValues()
289 ReadIntegerArgument(value->GetScalar(), *bit_size, false, thread, in GetArgumentValues()
H A DABISysV_x86_64.cpp273 std::optional<uint64_t> bit_size = in GetArgumentValues() local
275 if (!bit_size) in GetArgumentValues()
280 ReadIntegerArgument(value->GetScalar(), *bit_size, is_signed, thread, in GetArgumentValues()
284 ReadIntegerArgument(value->GetScalar(), *bit_size, false, thread, in GetArgumentValues()
/freebsd/contrib/llvm-project/lldb/source/Plugins/SymbolFile/DWARF/
H A DDWARFASTParserClang.h275 uint64_t bit_size = 0; member
307 return (bit_size + bit_offset) <= next_bit_offset; in NextBitfieldOffsetIsValid()
312 uint64_t GetFieldEnd() const { return bit_size + bit_offset; } in GetFieldEnd()
335 size_t bit_size = 0; member
H A DDWARFUnit.cpp709 uint64_t bit_size = die.GetAttributeValueAsUnsigned(DW_AT_byte_size, 0) * 8; in GetDIEBitSizeAndSign() local
710 if (!bit_size) in GetDIEBitSizeAndSign()
711 bit_size = die.GetAttributeValueAsUnsigned(DW_AT_bit_size, 0); in GetDIEBitSizeAndSign()
712 if (!bit_size) in GetDIEBitSizeAndSign()
727 return std::pair{bit_size, sign}; in GetDIEBitSizeAndSign()
H A DDWARFASTParserClang.cpp2236 layout_info.bit_size = in CompleteRecordType()
2694 bit_size = form_value.Unsigned(); in MemberAttributes()
2740 bit_size = 0; in MemberAttributes()
3000 if (attrs.bit_size > 0) { in ParseSingleMember()
3003 this_field_info.bit_size = attrs.bit_size; in ParseSingleMember()
3015 this_field_info.bit_offset -= (attrs.bit_offset + attrs.bit_size); in ParseSingleMember()
3072 this_field_info.bit_size = *clang_type_size * character_width; in ParseSingleMember()
3133 attrs.bit_size); in ParseSingleMember()
3786 last_field_info.bit_offset == 0 && last_field_info.bit_size == 0; in ShouldCreateUnnamedBitfield()
/freebsd/contrib/llvm-project/lldb/source/Plugins/ABI/SystemZ/
H A DABISysV_s390x.cpp359 std::optional<uint64_t> bit_size = in GetArgumentValues() local
361 if (!bit_size) in GetArgumentValues()
366 ReadIntegerArgument(value->GetScalar(), *bit_size, is_signed, thread, in GetArgumentValues()
370 ReadIntegerArgument(value->GetScalar(), *bit_size, false, thread, in GetArgumentValues()
/freebsd/contrib/llvm-project/lldb/source/Plugins/ABI/AArch64/
H A DABIMacOSX_arm64.cpp142 std::optional<uint64_t> bit_size = in GetArgumentValues() local
144 if (!bit_size) in GetArgumentValues()
150 bit_width = *bit_size; in GetArgumentValues()
152 bit_width = *bit_size; in GetArgumentValues()
H A DABISysV_arm64.cpp216 std::optional<uint64_t> bit_size = in GetArgumentValues() local
218 if (!bit_size) in GetArgumentValues()
221 bit_width = *bit_size; in GetArgumentValues()
223 bit_width = *bit_size; in GetArgumentValues()
/freebsd/contrib/llvm-project/lldb/source/Expression/
H A DDWARFExpression.cpp1968 uint32_t bit_size = piece_byte_size * 8; in Evaluate() local
1970 if (!scalar.ExtractBitfield(bit_size, bit_offset)) { in Evaluate()
1981 assert(ap_int.getBitWidth() >= bit_size); in Evaluate()
1984 curr_piece.GetScalar() = Scalar(llvm::APInt(bit_size, buf)); in Evaluate()
2163 uint64_t bit_size; in Evaluate() local
2172 bit_size = module_sp->GetArchitecture().GetAddressByteSize() * 8; in Evaluate()
2173 if (!bit_size) in Evaluate()
2180 bit_size = bit_size_sign_or_err->first; in Evaluate()
2184 top.TruncOrExtendTo(bit_size, sign); in Evaluate()
/freebsd/contrib/llvm-project/lldb/source/Plugins/ABI/PowerPC/
H A DABISysV_ppc64.cpp275 std::optional<uint64_t> bit_size = in GetArgumentValues() local
277 if (!bit_size) in GetArgumentValues()
282 ReadIntegerArgument(value->GetScalar(), *bit_size, is_signed, thread, in GetArgumentValues()
286 ReadIntegerArgument(value->GetScalar(), *bit_size, false, thread, in GetArgumentValues()
H A DABISysV_ppc.cpp398 std::optional<uint64_t> bit_size = in GetArgumentValues() local
400 if (!bit_size) in GetArgumentValues()
404 ReadIntegerArgument(value->GetScalar(), *bit_size, is_signed, thread, in GetArgumentValues()
408 ReadIntegerArgument(value->GetScalar(), *bit_size, false, thread, in GetArgumentValues()
/freebsd/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DClangASTImporter.cpp753 const clang::RecordDecl *record_decl, uint64_t &bit_size, in LayoutRecordType() argument
765 bit_size = pos->second.bit_size; in LayoutRecordType()
778 if (importRecordLayoutFromOrigin(record_decl, bit_size, alignment, in LayoutRecordType()
783 bit_size = 0; in LayoutRecordType()
H A DClangASTImporter.h72 uint64_t bit_size = 0; member
123 const clang::RecordDecl *record_decl, uint64_t &bit_size,
/freebsd/contrib/processor-trace/libipt/test/src/
H A Dptunit-tnt_cache.c169 packet.bit_size = 4ull; in update_tnt()
/freebsd/contrib/llvm-project/lldb/source/Utility/
H A DScalar.cpp796 bool Scalar::ExtractBitfield(uint32_t bit_size, uint32_t bit_offset) { in ExtractBitfield() argument
797 if (bit_size == 0) in ExtractBitfield()
807 m_integer = m_integer.extOrTrunc(bit_size).extOrTrunc(8 * GetByteSize()); in ExtractBitfield()
/freebsd/contrib/llvm-project/lldb/source/Plugins/ABI/ARM/
H A DABIMacOSX_arm.cpp1450 std::optional<uint64_t> bit_size = in GetArgumentValues() local
1452 if (!bit_size) in GetArgumentValues()
1455 bit_width = *bit_size; in GetArgumentValues()
1457 bit_width = *bit_size; in GetArgumentValues()

12