| /llvm-project-15.0.7/libcxx/test/std/numerics/bit/bit.pow.two/ |
| H A D | bit_width.pass.cpp | 33 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 D | ABIWindows_x86_64.cpp | 205 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 D | ABISysV_x86_64.cpp | 189 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 D | ABIMacOSX_i386.cpp | 124 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 D | ABISysV_i386.cpp | 143 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 D | ABISysV_ppc.cpp | 311 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 D | ABISysV_ppc64.cpp | 199 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 D | XFloat.h | 25 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 D | ABISysV_s390x.cpp | 281 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 D | ABISysV_arm.cpp | 1354 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 D | ABIMacOSX_arm.cpp | 1351 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 D | ABIMacOSX_arm64.cpp | 149 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 D | ABISysV_arm64.cpp | 148 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 D | DataLayout.cpp | 106 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 D | ABISysV_mips.cpp | 771 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 D | DataLayout.h | 81 Align pref_align, uint32_t bit_width); 179 Align pref_align, uint32_t bit_width);
|
| /llvm-project-15.0.7/libcxx/include/ |
| H A D | bit | 33 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 D | TypeSystemClang.cpp | 7334 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 D | SemaExpr.cpp | 3894 unsigned bit_width = Context.getTypeInfo(Ty).Width; in ActOnNumericConstant() local 3896 llvm::APInt Val(bit_width, 0, isSigned); in ActOnNumericConstant()
|