Home
last modified time | relevance | path

Searched refs:Unsigned (Results 1 – 25 of 153) sorted by relevance

1234567

/llvm-project-15.0.7/clang/test/SemaCXX/
H A Dbitfield.cpp6 typedef unsigned Unsigned; typedef
11 typedef __typeof__(t.n) Unsigned; // Bitfield is unsigned typedef
16 typedef __typeof__(t.n = 0) Unsigned; // Assignment produces an lvalue... typedef
17 typedef __typeof__(t.n += 0) Unsigned; typedef
18 typedef __typeof__(t.n *= 0) Unsigned; typedef
23 typedef __typeof__(++t.n) Unsigned; // Increment is equivalent to compound-assignment. typedef
24 typedef __typeof__(--t.n) Unsigned; typedef
28 typedef __typeof__(t.n++) Unsigned; // Post-increment's result has the type typedef
29 typedef __typeof__(t.n--) Unsigned; // of the operand... typedef
30 typedef __typeof__(+(t.n++)) Unsigned; // ... and is not a bit-field (because typedef
[all …]
/llvm-project-15.0.7/llvm/include/llvm/ADT/
H A DBitfields.h99 using Unsigned = typename std::make_unsigned<T>::type; member
100 static_assert(sizeof(Unsigned) == sizeof(T), "Types must have same size");
102 static constexpr unsigned TypeBits = sizeof(Unsigned) * CHAR_BIT;
106 static constexpr Unsigned AllZeros = Unsigned(0); // 00000000
107 static constexpr Unsigned AllOnes = ~Unsigned(0); // 11111111
108 static constexpr Unsigned Umin = AllZeros; // 00000000
109 static constexpr Unsigned Umax = AllOnes >> (TypeBits - Bits); // 00111111
110 static constexpr Unsigned SignBitMask = Unsigned(1) << (Bits - 1); // 00100000
111 static constexpr Unsigned Smax = Umax >> 1U; // 00011111
112 static constexpr Unsigned Smin = ~Smax; // 11100000
[all …]
H A DAPSInt.h283 static APSInt getMaxValue(uint32_t numBits, bool Unsigned) { in getMaxValue() argument
284 return APSInt(Unsigned ? APInt::getMaxValue(numBits) in getMaxValue()
285 : APInt::getSignedMaxValue(numBits), Unsigned); in getMaxValue()
290 static APSInt getMinValue(uint32_t numBits, bool Unsigned) { in getMinValue() argument
291 return APSInt(Unsigned ? APInt::getMinValue(numBits) in getMinValue()
292 : APInt::getSignedMinValue(numBits), Unsigned); in getMinValue()
/llvm-project-15.0.7/lldb/source/Plugins/SymbolFile/DWARF/
H A DDWARFASTParser.cpp65 num_elements = form_value.Unsigned(); in ParseChildArrayInfo()
69 array_info.bit_stride = form_value.Unsigned(); in ParseChildArrayInfo()
73 array_info.byte_stride = form_value.Unsigned(); in ParseChildArrayInfo()
77 lower_bound = form_value.Unsigned(); in ParseChildArrayInfo()
82 upper_bound = form_value.Unsigned(); in ParseChildArrayInfo()
H A DDWARFDebugInfoEntry.cpp212 ? unit.FindRnglistFromIndex(value.Unsigned()) in GetRangesOrReportError()
213 : unit.FindRnglistFromOffset(value.Unsigned()); in GetRangesOrReportError()
280 hi_pc = form_value.Unsigned(); in GetDIENamesAndRanges()
314 decl_file = form_value.Unsigned(); in GetDIENamesAndRanges()
319 decl_line = form_value.Unsigned(); in GetDIENamesAndRanges()
324 decl_column = form_value.Unsigned(); in GetDIENamesAndRanges()
329 call_file = form_value.Unsigned(); in GetDIENamesAndRanges()
334 call_line = form_value.Unsigned(); in GetDIENamesAndRanges()
339 call_column = form_value.Unsigned(); in GetDIENamesAndRanges()
545 return form_value.Unsigned(); in GetAttributeValueAsUnsigned()
[all …]
H A DDWARFASTParserClang.cpp312 bit_stride = form_value.Unsigned(); in ParsedDWARFTypeAttributes()
316 byte_size = form_value.Unsigned(); in ParsedDWARFTypeAttributes()
320 byte_stride = form_value.Unsigned(); in ParsedDWARFTypeAttributes()
337 decl.SetLine(form_value.Unsigned()); in ParsedDWARFTypeAttributes()
340 decl.SetColumn(form_value.Unsigned()); in ParsedDWARFTypeAttributes()
348 encoding = form_value.Unsigned(); in ParsedDWARFTypeAttributes()
360 if (form_value.Unsigned()) in ParsedDWARFTypeAttributes()
1968 uval64 = form_value.Unsigned(); in ParseTemplateDIE()
2256 form_value.Unsigned())); in ParseChildEnumerators()
2435 bit_size = form_value.Unsigned(); in MemberAttributes()
[all …]
H A DDWARFUnit.cpp364 SetAddrBase(form_value.Unsigned()); in AddUnitDIE()
376 SetLoclistsBase(form_value.Unsigned()); in AddUnitDIE()
379 SetRangesBase(form_value.Unsigned()); in AddUnitDIE()
382 SetStrOffsetsBase(form_value.Unsigned()); in AddUnitDIE()
393 m_line_table_offset = form_value.Unsigned(); in AddUnitDIE()
396 m_gnu_addr_base = form_value.Unsigned(); in AddUnitDIE()
399 m_gnu_ranges_base = form_value.Unsigned(); in AddUnitDIE()
402 m_dwo_id = form_value.Unsigned(); in AddUnitDIE()
/llvm-project-15.0.7/clang/test/Index/
H A Dindex-templates.cpp42 typedef unsigned Unsigned; typedef
44 template<typename T, Unsigned Value>
54 f<Unsigned, OneDimension, value>(value<Unsigned, OneDimension>()); in template_exprs()
55 Z4().getAs<Unsigned>(); in template_exprs()
/llvm-project-15.0.7/llvm/test/CodeGen/AVR/
H A Ddiv.ll3 ; Unsigned 8-bit division
23 ; Unsigned 16-bit division
43 ; Unsigned 32-bit division
65 ; Unsigned 64-bit division
83 ; Unsigned 128-bit division
H A Drem.ll3 ; Unsigned 8-bit remision
23 ; Unsigned 16-bit remision
41 ; Unsigned 32-bit remision
/llvm-project-15.0.7/clang/test/Sema/
H A Dbitfield.c62 typedef unsigned Unsigned; typedef
79 typedef __typeof__(+(t5.n++)) Unsigned; // Post-increment is underspecified, but seems to typedef
80 typedef __typeof__(+(t5.n--)) Unsigned; // also act like compound-assignment. typedef
/llvm-project-15.0.7/mlir/test/mlir-tblgen/
H A Dtypedefs.td124 Unsigned, /// Unsigned integer
135 bool isUnsigned() const { return getSignedness() == Unsigned; }
142 // DECL-NEXT: Unsigned, /// Unsigned integer
152 // DECL-NEXT: bool isUnsigned() const { return getSignedness() == Unsigned; }
/llvm-project-15.0.7/llvm/test/MC/PowerPC/
H A Dppc64-errors.s27 # Unsigned 1-bit immediate operands
45 # Unsigned 2-bit immediate operands
59 # Unsigned 3-bit immediate operands
75 # Unsigned 16-bit immediate operands
/llvm-project-15.0.7/llvm/unittests/ADT/
H A DStringRefTest.cpp624 } Unsigned[] = variable
671 for (size_t i = 0; i < array_lengthof(Unsigned); ++i) { in TEST()
672 bool U8Success = StringRef(Unsigned[i].Str).getAsInteger(0, U8); in TEST()
673 if (static_cast<uint8_t>(Unsigned[i].Expected) == Unsigned[i].Expected) { in TEST()
675 EXPECT_EQ(U8, Unsigned[i].Expected); in TEST()
679 bool U16Success = StringRef(Unsigned[i].Str).getAsInteger(0, U16); in TEST()
680 if (static_cast<uint16_t>(Unsigned[i].Expected) == Unsigned[i].Expected) { in TEST()
682 EXPECT_EQ(U16, Unsigned[i].Expected); in TEST()
687 if (static_cast<uint32_t>(Unsigned[i].Expected) == Unsigned[i].Expected) { in TEST()
689 EXPECT_EQ(U32, Unsigned[i].Expected); in TEST()
[all …]
/llvm-project-15.0.7/clang/test/SemaTemplate/
H A Dtemp-param-subst-linear.cpp12 template<unsigned> using Unsigned = unsigned; typedef
13 template<typename T, T ...N> using ListOfNUnsignedsImpl = TypeList<Unsigned<N>...>;
/llvm-project-15.0.7/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DAPSIntType.h24 constexpr APSIntType(uint32_t Width, bool Unsigned) in APSIntType() argument
25 : BitWidth(Width), IsUnsigned(Unsigned) {} in APSIntType()
/llvm-project-15.0.7/clang/include/clang/ASTMatchers/Dynamic/
H A DVariantValue.h265 VariantValue(unsigned Unsigned);
290 void setUnsigned(unsigned Unsigned);
343 unsigned Unsigned; member
/llvm-project-15.0.7/llvm/test/MC/Disassembler/AArch64/
H A Dneon-instructions.txt308 # Vector Integer Halving Add (Unsigned)
310 # Vector Integer Halving Sub (Unsigned)
344 # Vector Integer Saturating Add (Unsigned)
346 # Vector Integer Saturating Sub (Unsigned)
365 # Scalar Integer Saturating Add (Unsigned)
367 # Scalar Integer Saturating Add (Unsigned)
736 #Integer shift right (Unsigned)
808 #Integer rounding shift right (Unsigned)
934 #Integer saturating shift left (Unsigned)
1565 # Scalar Compare Unsigned Higher Or Same
[all …]
/llvm-project-15.0.7/llvm/include/llvm/Support/
H A DScaledNumber.h435 uint64_t Unsigned = N == INT64_MIN ? UINT64_C(1) << 63 : uint64_t(-N); in splitSigned() local
436 return std::make_pair(Unsigned, true); in splitSigned()
660 std::pair<uint64_t, bool> Unsigned = splitSigned(N); in scale() local
661 return joinSigned(scale(Unsigned.first), Unsigned.second); in scale()
664 std::pair<uint64_t, bool> Unsigned = splitSigned(N); in scaleByInverse() local
665 return joinSigned(scaleByInverse(Unsigned.first), Unsigned.second); in scaleByInverse()
/llvm-project-15.0.7/llvm/unittests/FileCheck/
H A DFileCheckTest.cpp336 std::make_tuple(ExpressionFormat::Kind::Unsigned, 0, false),
343 std::make_tuple(ExpressionFormat::Kind::Unsigned, 1, false),
350 std::make_tuple(ExpressionFormat::Kind::Unsigned, 16, false),
371 ExpressionFormat UnsignedFormat(ExpressionFormat::Kind::Unsigned); in TEST_F()
387 ExpressionFormat UnsignedFormat(ExpressionFormat::Kind::Unsigned); in TEST_F()
388 EXPECT_TRUE(UnsignedFormat == ExpressionFormat::Kind::Unsigned); in TEST_F()
389 EXPECT_FALSE(UnsignedFormat != ExpressionFormat::Kind::Unsigned); in TEST_F()
746 EXPECT_EQ(*ImplicitFormat, ExpressionFormat::Kind::Unsigned); in TEST_F()
812 EXPECT_EQ(*ImplicitFormat, ExpressionFormat::Kind::Unsigned); in TEST_F()
837 EXPECT_EQ(*ImplicitFormat, ExpressionFormat::Kind::Unsigned); in TEST_F()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/RISCV/MCTargetDesc/
H A DRISCVMatInt.cpp109 bool Unsigned = false; in generateInstSeqImpl() local
129 Unsigned = true; in generateInstSeqImpl()
139 Unsigned = true; in generateInstSeqImpl()
147 if (Unsigned) in generateInstSeqImpl()
/llvm-project-15.0.7/clang/lib/ASTMatchers/Dynamic/
H A DVariantValue.cpp266 VariantValue::VariantValue(unsigned Unsigned) : Type(VT_Nothing) { in VariantValue() argument
267 setUnsigned(Unsigned); in VariantValue()
370 return Value.Unsigned; in getUnsigned()
376 Value.Unsigned = NewValue; in setUnsigned()
/llvm-project-15.0.7/mlir/lib/Dialect/Arithmetic/Transforms/
H A DUnsignedWhenEquivalent.cpp81 template <typename Signed, typename Unsigned>
87 rw.replaceOpWithNewOp<Unsigned>(op, op->getResultTypes(), in matchAndRewrite()
/llvm-project-15.0.7/lldb/tools/debugserver/source/
H A DJSON.cpp51 case DataType::Unsigned: in GetAsUnsigned()
62 case DataType::Unsigned: in GetAsSigned()
73 case DataType::Unsigned: in GetAsDouble()
84 case DataType::Unsigned: in Write()
/llvm-project-15.0.7/polly/lib/External/isl/imath/tests/
H A Dinit.tc1 #Unsigned integer initialization. Assumes sizeof(long) == 8.

1234567