Home
last modified time | relevance | path

Searched refs:Signed (Results 1 – 25 of 205) sorted by relevance

123456789

/llvm-project-15.0.7/clang/test/SemaCXX/
H A Dbitfield.cpp7 typedef signed Signed; typedef
12 typedef __typeof__(+t.n) Signed; // ... but promotes to signed. typedef
14 typedef __typeof__(t.n + 0) Signed; // Arithmetic promotes. typedef
19 typedef __typeof__(+(t.n = 0)) Signed; // ... which is a bit-field. typedef
20 typedef __typeof__(+(t.n += 0)) Signed; typedef
21 typedef __typeof__(+(t.n *= 0)) Signed; typedef
25 typedef __typeof__(+(++t.n)) Signed; typedef
26 typedef __typeof__(+(--t.n)) Signed; typedef
/llvm-project-15.0.7/clang/test/Sema/
H A Dbitfield.c63 typedef signed Signed; typedef
68 typedef __typeof__(+t5.n) Signed; // ... but promotes to signed. typedef
70 typedef __typeof__(t5.n + 0) Signed; // Arithmetic promotes. typedef
72 typedef __typeof__(+(t5.n = 0)) Signed; // FIXME: Assignment should not; the result typedef
73 typedef __typeof__(+(t5.n += 0)) Signed; // is a non-bit-field lvalue of type unsigned. typedef
74 typedef __typeof__(+(t5.n *= 0)) Signed; typedef
76 typedef __typeof__(+(++t5.n)) Signed; // FIXME: Increment is equivalent to compound-assignment. typedef
77 typedef __typeof__(+(--t5.n)) Signed; // This should not promote to signed. typedef
/llvm-project-15.0.7/clang/utils/TableGen/
H A DSveEmitter.cpp395 if (Signed) in builtin_str()
552 Signed = true; in applyModifier()
580 Signed = true; in applyModifier()
601 Signed = true; in applyModifier()
620 Signed = true; in applyModifier()
630 Signed = true; in applyModifier()
636 Signed = true; in applyModifier()
644 Signed = true; in applyModifier()
685 Signed = true; in applyModifier()
723 Signed = true; in applyModifier()
[all …]
/llvm-project-15.0.7/clang/lib/AST/Interp/
H A DIntegral.h41 template <unsigned Bits, bool Signed> struct Repr;
56 template <unsigned Bits, bool Signed> class Integral {
61 using T = typename Repr<Bits, Signed>::Type;
107 return APSInt(APInt(Bits, static_cast<uint64_t>(V), Signed), !Signed);
110 if (Signed)
111 return APSInt(toAPSInt().sextOrTrunc(NumBits), !Signed);
113 return APSInt(toAPSInt().zextOrTrunc(NumBits), !Signed);
127 bool isMinusOne() const { return Signed && V == T(-1); }
129 constexpr static bool isSigned() { return Signed; }
146 return Integral((V & BitMask) | (Signed && (V & SignBit) ? ExtMask : 0));
[all …]
/llvm-project-15.0.7/clang/test/CodeGenCXX/
H A Dms-inline-asm-fields.cpp32 template <bool Signed>
42 template <bool Signed>
44 typedef typename make_storage_type<Signed>::type storage_type;
/llvm-project-15.0.7/mlir/lib/Dialect/Arithmetic/Transforms/
H A DUnsignedWhenEquivalent.cpp81 template <typename Signed, typename Unsigned>
82 struct ConvertOpToUnsigned : OpConversionPattern<Signed> {
83 using OpConversionPattern<Signed>::OpConversionPattern;
85 LogicalResult matchAndRewrite(Signed op, typename Signed::Adaptor adaptor, in matchAndRewrite()
/llvm-project-15.0.7/llvm/test/CodeGen/AVR/
H A Ddiv.ll13 ; Signed 8-bit division
33 ; Signed 16-bit division
54 ; Signed 32-bit division
74 ; Signed 64-bit division
92 ; Signed 128-bit division
H A Drem.ll13 ; Signed 8-bit remision
32 ; Signed 16-bit remision
50 ; Signed 32-bit remision
/llvm-project-15.0.7/llvm/include/llvm/Support/
H A DCheckedArithmetic.h30 checkedOp(T LHS, T RHS, F Op, bool Signed = true) {
31 llvm::APInt ALHS(sizeof(T) * 8, LHS, Signed);
32 llvm::APInt ARHS(sizeof(T) * 8, RHS, Signed);
37 return Signed ? Out.getSExtValue() : Out.getZExtValue();
/llvm-project-15.0.7/mlir/test/mlir-tblgen/
H A Dtypedefs.td123 Signed, /// Signed integer
133 bool isSigned() const { return getSignedness() == Signed; }
141 // DECL-NEXT: Signed, /// Signed integer
150 // DECL-NEXT: bool isSigned() const { return getSignedness() == Signed; }
/llvm-project-15.0.7/llvm/test/MC/Disassembler/AArch64/
H A Dneon-instructions.txt307 # Vector Integer Halving Add (Signed)
309 # Vector Integer Halving Sub (Signed)
343 # Vector Integer Saturating Add (Signed)
345 # Vector Integer Saturating Sub (Signed)
718 #Integer shift right (Signed)
790 #Integer rounding shift right (Signed)
1590 # Scalar Compare Signed Greater Than
1724 # Scalar Signed Saturating Negate
1794 # Scalar Signed Saturating Extract Signed Narrow
2337 # Scalar Signed saturating doubling
[all …]
/llvm-project-15.0.7/llvm/unittests/ADT/
H A DStringRefTest.cpp641 } Signed[] = variable
703 for (size_t i = 0; i < array_lengthof(Signed); ++i) { in TEST()
704 bool S8Success = StringRef(Signed[i].Str).getAsInteger(0, S8); in TEST()
705 if (static_cast<int8_t>(Signed[i].Expected) == Signed[i].Expected) { in TEST()
707 EXPECT_EQ(S8, Signed[i].Expected); in TEST()
711 bool S16Success = StringRef(Signed[i].Str).getAsInteger(0, S16); in TEST()
712 if (static_cast<int16_t>(Signed[i].Expected) == Signed[i].Expected) { in TEST()
714 EXPECT_EQ(S16, Signed[i].Expected); in TEST()
719 if (static_cast<int32_t>(Signed[i].Expected) == Signed[i].Expected) { in TEST()
721 EXPECT_EQ(S32, Signed[i].Expected); in TEST()
[all …]
/llvm-project-15.0.7/llvm/lib/Transforms/Vectorize/
H A DLoadStoreVectorizer.cpp388 return (Signed && BinOpI->hasNoSignedWrap()) || in checkNoWrapFlags()
389 (!Signed && BinOpI->hasNoUnsignedWrap()); in checkNoWrapFlags()
413 checkNoWrapFlags(AddOpA, Signed) && checkNoWrapFlags(AddOpB, Signed)); in checkIfSafeAddSequence()
422 checkNoWrapFlags(OtherInstrB, Signed) && in checkIfSafeAddSequence()
432 checkNoWrapFlags(OtherInstrA, Signed) && in checkIfSafeAddSequence()
445 checkNoWrapFlags(OtherInstrA, Signed) && in checkIfSafeAddSequence()
446 checkNoWrapFlags(OtherInstrB, Signed) && in checkIfSafeAddSequence()
505 bool Signed = isa<SExtInst>(OpA); in lookThroughComplexAddresses() local
521 checkNoWrapFlags(OpB, Signed)) in lookThroughComplexAddresses()
529 checkNoWrapFlags(OpB, Signed)) { in lookThroughComplexAddresses()
[all …]
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DConstraintElimination.cpp124 DenseMap<Value *, unsigned> &getValue2Index(bool Signed) { in getValue2Index() argument
125 return Signed ? SignedValue2Index : UnsignedValue2Index; in getValue2Index()
127 const DenseMap<Value *, unsigned> &getValue2Index(bool Signed) const { in getValue2Index()
128 return Signed ? SignedValue2Index : UnsignedValue2Index; in getValue2Index()
131 ConstraintSystem &getCS(bool Signed) { in getCS() argument
132 return Signed ? SignedCS : UnsignedCS; in getCS()
134 const ConstraintSystem &getCS(bool Signed) const { in getCS()
135 return Signed ? SignedCS : UnsignedCS; in getCS()
138 void popLastConstraint(bool Signed) { getCS(Signed).popLastConstraint(); } in popLastConstraint() argument
139 void popLastNVariables(bool Signed, unsigned N) { in popLastNVariables() argument
[all …]
/llvm-project-15.0.7/llvm/test/Transforms/GlobalOpt/
H A D2005-09-27-Crash.ll4 %arraytype.Signed = type { i32, [0 x i32] }
6 %structtype.test = type { i32, %arraytype.Signed }
/llvm-project-15.0.7/llvm/lib/Target/WebAssembly/Disassembler/
H A DWebAssemblyDisassembler.cpp85 bool Signed) { in nextLEB() argument
88 Val = Signed ? decodeSLEB128(Bytes.data() + Size, &N, in nextLEB()
100 ArrayRef<uint8_t> Bytes, bool Signed) { in parseLEBImmediate() argument
102 if (!nextLEB(Val, Bytes, Size, Signed)) in parseLEBImmediate()
/llvm-project-15.0.7/llvm/lib/DebugInfo/DWARF/
H A DDWARFExpression.cpp132 unsigned Signed = Size & Operation::SignBit; in extract() local
140 if (Signed) in extract()
145 if (Signed) in extract()
150 if (Signed) in extract()
166 if (Signed) in extract()
285 unsigned Signed = Size & Operation::SignBit; in print() local
315 if (Signed) in print()
/llvm-project-15.0.7/mlir/include/mlir/Dialect/Quant/
H A DQuantTypes.h40 Signed = 1, enumerator
106 return (getFlags() & QuantizationFlags::Signed) == in isSigned()
107 QuantizationFlags::Signed; in isSigned()
/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A DTargetLibraryInfo.h387 Attribute::AttrKind getExtAttrForI32Param(bool Signed = true) const {
389 return Signed ? Attribute::SExt : Attribute::ZExt;
398 Attribute::AttrKind getExtAttrForI32Return(bool Signed = true) const {
400 return Signed ? Attribute::SExt : Attribute::ZExt;
/llvm-project-15.0.7/lldb/tools/debugserver/source/
H A DJSON.cpp53 case DataType::Signed: in GetAsUnsigned()
64 case DataType::Signed: in GetAsSigned()
75 case DataType::Signed: in GetAsDouble()
87 case DataType::Signed: in Write()
/llvm-project-15.0.7/polly/lib/External/isl/imath/tests/
H A Dinit.tc6 #Signed integer initialization Assumes sizeof(long) == 8.
H A Dset.tc6 #Signed integer assignment. Assumes sizeof(long) == 8.
/llvm-project-15.0.7/clang/include/clang/Basic/
H A Darm_neon.td808 // Signed Saturating Accumulated of Unsigned Value
812 // Unsigned Saturating Accumulated of Signed Value
1323 // Signed/Unsigned Shift Right (Immediate)
1325 // Signed/Unsigned Rounding Shift Right (Immediate)
1421 // Scalar Signed Integer Convert To Floating-point
1514 // Scalar Signed Saturating Absolute Value
1522 // Scalar Signed Saturating Negate
1534 // Signed Saturating Doubling Multiply-Add Long
1542 // Signed Saturating Doubling Multiply Long
1546 // Scalar Signed Saturating Extract Unsigned Narrow
[all …]
/llvm-project-15.0.7/mlir/lib/Dialect/Quant/Utils/
H A DFakeQuantSupport.cpp112 unsigned flags = isSigned ? QuantizationFlags::Signed : 0; in fakeQuantAttrsToType()
180 unsigned flags = isSigned ? QuantizationFlags::Signed : 0; in fakeQuantAttrsToType()
/llvm-project-15.0.7/llvm/test/MC/PowerPC/
H A Dppc64-errors.s65 # Signed 16-bit immediate operands
85 # Signed 16-bit immediate operands (extended range for addis)

123456789