Home
last modified time | relevance | path

Searched refs:bit_width (Results 1 – 19 of 19) sorted by relevance

/llvm-project-15.0.7/libcxx/test/std/numerics/bit/bit.pow.two/
H A Dbit_width.pass.cpp33 ASSERT_NOEXCEPT(std::bit_width(T())); in test()
36 assert(std::bit_width(T(0)) == 0); in test()
37 assert(std::bit_width(T(1)) == 1); in test()
38 assert(std::bit_width(T(2)) == 2); in test()
39 assert(std::bit_width(T(3)) == 2); in test()
40 assert(std::bit_width(T(4)) == 3); in test()
41 assert(std::bit_width(T(5)) == 3); in test()
42 assert(std::bit_width(T(6)) == 3); in test()
43 assert(std::bit_width(T(7)) == 3); in test()
44 assert(std::bit_width(T(8)) == 4); in test()
[all …]
/llvm-project-15.0.7/lldb/source/Plugins/ABI/X86/
H A DABIWindows_x86_64.cpp205 static bool ReadIntegerArgument(Scalar &scalar, unsigned int bit_width, in ReadIntegerArgument() argument
210 if (bit_width > 64) in ReadIntegerArgument()
218 scalar.SignExtend(bit_width); in ReadIntegerArgument()
221 uint32_t byte_size = (bit_width + (CHAR_BIT - 1)) / CHAR_BIT; in ReadIntegerArgument()
347 llvm::Optional<uint64_t> bit_width = in SetReturnValueObject() local
349 if (!bit_width) { in SetReturnValueObject()
353 if (*bit_width <= 64) { in SetReturnValueObject()
614 llvm::Optional<uint64_t> bit_width = return_compiler_type.GetBitSize(&thread); in GetReturnValueObjectImpl() local
615 if (!bit_width) { in GetReturnValueObjectImpl()
636 bool is_memory = *bit_width > max_register_value_bit_width || in GetReturnValueObjectImpl()
[all …]
H A DABISysV_x86_64.cpp189 static bool ReadIntegerArgument(Scalar &scalar, unsigned int bit_width, in ReadIntegerArgument() argument
194 if (bit_width > 64) in ReadIntegerArgument()
202 scalar.SignExtend(bit_width); in ReadIntegerArgument()
204 uint32_t byte_size = (bit_width + (8 - 1)) / 8; in ReadIntegerArgument()
340 llvm::Optional<uint64_t> bit_width = in SetReturnValueObject() local
342 if (!bit_width) { in SetReturnValueObject()
346 if (*bit_width <= 64) { in SetReturnValueObject()
633 llvm::Optional<uint64_t> bit_width = return_compiler_type.GetBitSize(&thread); in GetReturnValueObjectImpl() local
634 if (!bit_width) in GetReturnValueObjectImpl()
643 *bit_width <= 128 && in GetReturnValueObjectImpl()
H A DABIMacOSX_i386.cpp124 static bool ReadIntegerArgument(Scalar &scalar, unsigned int bit_width, in ReadIntegerArgument() argument
128 uint32_t byte_size = (bit_width + (8 - 1)) / 8; in ReadIntegerArgument()
276 llvm::Optional<uint64_t> bit_width = compiler_type.GetBitSize(&thread); in GetReturnValueObjectImpl() local
277 if (!bit_width) in GetReturnValueObjectImpl()
284 switch (*bit_width) { in GetReturnValueObjectImpl()
H A DABISysV_i386.cpp143 static bool ReadIntegerArgument(Scalar &scalar, unsigned int bit_width, in ReadIntegerArgument() argument
146 uint32_t byte_size = (bit_width + (8 - 1)) / 8; in ReadIntegerArgument()
/llvm-project-15.0.7/lldb/source/Plugins/ABI/PowerPC/
H A DABISysV_ppc.cpp311 static bool ReadIntegerArgument(Scalar &scalar, unsigned int bit_width, in ReadIntegerArgument() argument
316 if (bit_width > 64) in ReadIntegerArgument()
324 scalar.SignExtend(bit_width); in ReadIntegerArgument()
326 uint32_t byte_size = (bit_width + (8 - 1)) / 8; in ReadIntegerArgument()
465 llvm::Optional<uint64_t> bit_width = in SetReturnValueObject() local
467 if (!bit_width) { in SetReturnValueObject()
471 if (*bit_width <= 64) { in SetReturnValueObject()
661 llvm::Optional<uint64_t> bit_width = return_compiler_type.GetBitSize(&thread); in GetReturnValueObjectImpl() local
662 if (!bit_width) in GetReturnValueObjectImpl()
667 if (*bit_width <= 128) { in GetReturnValueObjectImpl()
H A DABISysV_ppc64.cpp199 static bool ReadIntegerArgument(Scalar &scalar, unsigned int bit_width, in ReadIntegerArgument() argument
204 if (bit_width > 64) in ReadIntegerArgument()
212 scalar.SignExtend(bit_width); in ReadIntegerArgument()
214 uint32_t byte_size = (bit_width + (8 - 1)) / 8; in ReadIntegerArgument()
344 llvm::Optional<uint64_t> bit_width = in SetReturnValueObject() local
346 if (!bit_width) { in SetReturnValueObject()
350 if (*bit_width <= 64) { in SetReturnValueObject()
/llvm-project-15.0.7/libc/src/__support/FPUtil/
H A DXFloat.h25 size_t bit_width(uint64_t x) { in bit_width() function
65 size_t carry_width = bit_width(carry); in mul()
111 size_t carry_width = bit_width(carry); in mul()
/llvm-project-15.0.7/lldb/source/Plugins/ABI/SystemZ/
H A DABISysV_s390x.cpp281 static bool ReadIntegerArgument(Scalar &scalar, unsigned int bit_width, in ReadIntegerArgument() argument
286 if (bit_width > 64) in ReadIntegerArgument()
294 scalar.SignExtend(bit_width); in ReadIntegerArgument()
296 uint32_t byte_size = (bit_width + (8 - 1)) / 8; in ReadIntegerArgument()
429 llvm::Optional<uint64_t> bit_width = in SetReturnValueObject() local
431 if (!bit_width) { in SetReturnValueObject()
435 if (*bit_width <= 64) { in SetReturnValueObject()
/llvm-project-15.0.7/lldb/source/Plugins/ABI/ARM/
H A DABISysV_arm.cpp1354 size_t bit_width = 0; in GetArgumentValues() local
1358 bit_width = *size; in GetArgumentValues()
1364 if (bit_width <= (exe_ctx.GetProcessRef().GetAddressByteSize() * 8)) { in GetArgumentValues()
1375 reg_value.SignExtend(bit_width); in GetArgumentValues()
1391 const uint32_t arg_byte_size = (bit_width + (8 - 1)) / 8; in GetArgumentValues()
1464 llvm::Optional<uint64_t> bit_width = compiler_type.GetBitSize(&thread); in GetReturnValueObjectImpl() local
1466 if (!bit_width || !byte_size) in GetReturnValueObjectImpl()
1470 switch (*bit_width) { in GetReturnValueObjectImpl()
1538 switch (*bit_width) { in GetReturnValueObjectImpl()
1588 } else if (!GetReturnValuePassedInMemory(thread, reg_ctx, *bit_width / 8, in GetReturnValueObjectImpl()
H A DABIMacOSX_arm.cpp1351 size_t bit_width = 0; in GetArgumentValues() local
1356 bit_width = *bit_size; in GetArgumentValues()
1358 bit_width = *bit_size; in GetArgumentValues()
1363 if (bit_width <= (exe_ctx.GetProcessRef().GetAddressByteSize() * 8)) { in GetArgumentValues()
1394 reg_value.SignExtend(bit_width); in GetArgumentValues()
1410 const uint32_t arg_byte_size = (bit_width + (8 - 1)) / 8; in GetArgumentValues()
1458 llvm::Optional<uint64_t> bit_width = compiler_type.GetBitSize(&thread); in GetReturnValueObjectImpl() local
1459 if (!bit_width) in GetReturnValueObjectImpl()
1462 switch (*bit_width) { in GetReturnValueObjectImpl()
/llvm-project-15.0.7/lldb/source/Plugins/ABI/AArch64/
H A DABIMacOSX_arm64.cpp149 size_t bit_width = 0; in GetArgumentValues() local
151 bit_width = *bit_size; in GetArgumentValues()
153 bit_width = *bit_size; in GetArgumentValues()
159 if (bit_width <= (exe_ctx.GetProcessRef().GetAddressByteSize() * 8)) { in GetArgumentValues()
202 reg_value.SignExtend(bit_width); in GetArgumentValues()
218 const uint32_t arg_byte_size = (bit_width + (8 - 1)) / 8; in GetArgumentValues()
H A DABISysV_arm64.cpp148 size_t bit_width = 0; in GetArgumentValues() local
153 bit_width = *bit_size; in GetArgumentValues()
155 bit_width = *bit_size; in GetArgumentValues()
161 if (bit_width <= (exe_ctx.GetProcessRef().GetAddressByteSize() * 8)) { in GetArgumentValues()
173 reg_value.SignExtend(bit_width); in GetArgumentValues()
190 const uint32_t arg_byte_size = (bit_width + (8 - 1)) / 8; in GetArgumentValues()
/llvm-project-15.0.7/llvm/lib/IR/
H A DDataLayout.cpp106 Align pref_align, uint32_t bit_width) { in get() argument
112 retval.TypeBitWidth = bit_width; in get()
565 Align pref_align, uint32_t bit_width) { in setAlignment() argument
571 if (!isUInt<24>(bit_width)) in setAlignment()
577 AlignmentsTy::iterator I = findAlignmentLowerBound(align_type, bit_width); in setAlignment()
579 I->AlignType == (unsigned)align_type && I->TypeBitWidth == bit_width) { in setAlignment()
586 pref_align, bit_width)); in setAlignment()
/llvm-project-15.0.7/lldb/source/Plugins/ABI/Mips/
H A DABISysV_mips.cpp771 llvm::Optional<uint64_t> bit_width = return_compiler_type.GetBitSize(&thread); in GetReturnValueObjectImpl() local
772 if (!bit_width) in GetReturnValueObjectImpl()
775 switch (*bit_width) { in GetReturnValueObjectImpl()
834 switch (*bit_width) { in GetReturnValueObjectImpl()
866 switch (*bit_width) { in GetReturnValueObjectImpl()
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DDataLayout.h81 Align pref_align, uint32_t bit_width);
179 Align pref_align, uint32_t bit_width);
/llvm-project-15.0.7/libcxx/include/
H A Dbit33 constexpr int bit_width(T x) noexcept; // C++20
237 _LIBCPP_HIDE_FROM_ABI constexpr int bit_width(_Tp __t) noexcept {
/llvm-project-15.0.7/lldb/source/Plugins/TypeSystem/Clang/
H A DTypeSystemClang.cpp7334 clang::Expr *bit_width = nullptr; in AddFieldToRecordType() local
7338 bit_width = new (clang_ast) in AddFieldToRecordType()
7349 if (bit_width) in AddFieldToRecordType()
7350 field->setBitWidth(bit_width); in AddFieldToRecordType()
7397 if (bit_width) in AddFieldToRecordType()
7398 ivar->setBitWidth(bit_width); in AddFieldToRecordType()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaExpr.cpp3894 unsigned bit_width = Context.getTypeInfo(Ty).Width; in ActOnNumericConstant() local
3896 llvm::APInt Val(bit_width, 0, isSigned); in ActOnNumericConstant()