Home
last modified time | relevance | path

Searched refs:isUnsigned (Results 1 – 25 of 50) sorted by relevance

12

/external/llvm/unittests/ADT/
DAPSIntTest.cpp19 EXPECT_TRUE(A.isUnsigned()); in TEST()
23 EXPECT_FALSE(A.isUnsigned()); in TEST()
26 EXPECT_FALSE(C.isUnsigned()); in TEST()
31 EXPECT_TRUE(D.isUnsigned()); in TEST()
35 EXPECT_TRUE(A.isUnsigned()); in TEST()
40 EXPECT_TRUE(A.isUnsigned()); in TEST()
56 EXPECT_TRUE(APSInt::getUnsigned(7).isUnsigned()); in TEST()
60 EXPECT_TRUE(APSInt::getUnsigned(-7).isUnsigned()); in TEST()
67 EXPECT_TRUE(APSInt(APInt(3, 7), true).isUnsigned()); in TEST()
69 EXPECT_TRUE(APSInt(APInt(4, 7), true).isUnsigned()); in TEST()
[all …]
/external/clang/unittests/ASTMatchers/Dynamic/
DVariantValueTest.cpp26 EXPECT_TRUE(Value.isUnsigned()); in TEST()
43 EXPECT_FALSE(Value.isUnsigned()); in TEST()
51 EXPECT_FALSE(Value.isUnsigned()); in TEST()
81 EXPECT_FALSE(Value.isUnsigned()); in TEST()
87 EXPECT_FALSE(Value.isUnsigned()); in TEST()
95 EXPECT_TRUE(Value.isUnsigned()); in TEST()
103 EXPECT_FALSE(Value.isUnsigned()); in TEST()
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
DBasicValueFactory.h79 const llvm::APSInt& getValue(uint64_t X, unsigned BitWidth, bool isUnsigned);
91 const llvm::APSInt& getValue(const llvm::APInt& X, bool isUnsigned);
120 const llvm::APSInt& getIntValue(uint64_t X, bool isUnsigned) { in getIntValue() argument
121 QualType T = isUnsigned ? Ctx.UnsignedIntTy : Ctx.IntTy; in getIntValue()
153 inline const llvm::APSInt& getZeroWithPtrWidth(bool isUnsigned = true) {
154 return getValue(0, Ctx.getTypeSize(Ctx.VoidPtrTy), isUnsigned);
157 inline const llvm::APSInt &getIntWithPtrWidth(uint64_t X, bool isUnsigned) { in getIntWithPtrWidth() argument
158 return getValue(X, Ctx.getTypeSize(Ctx.VoidPtrTy), isUnsigned); in getIntWithPtrWidth()
DAPSIntType.h29 : BitWidth(Value.getBitWidth()), IsUnsigned(Value.isUnsigned()) {} in APSIntType()
32 bool isUnsigned() const { return IsUnsigned; } in isUnsigned() function
50 llvm::APSInt Result(Value, Value.isUnsigned()); in convert()
DSValBuilder.h252 NonLoc makeIntVal(const llvm::APInt& integer, bool isUnsigned) { in makeIntVal() argument
253 return nonloc::ConcreteInt(BasicVals.getValue(integer, isUnsigned)); in makeIntVal()
263 NonLoc makeIntVal(uint64_t integer, bool isUnsigned) { in makeIntVal() argument
264 return nonloc::ConcreteInt(BasicVals.getIntValue(integer, isUnsigned)); in makeIntVal()
267 NonLoc makeIntValWithPtrWidth(uint64_t integer, bool isUnsigned) { in makeIntValWithPtrWidth() argument
269 BasicVals.getIntWithPtrWidth(integer, isUnsigned)); in makeIntValWithPtrWidth()
/external/clang/lib/Lex/
DPPExpressions.cpp43 bool isUnsigned() const { return Val.isUnsigned(); } in isUnsigned() function in __anon852094170111::PPValue
254 Result.Val.setIsUnsigned(Literal.isUnsigned); in EvaluateValue()
260 if (!Literal.isUnsigned && Result.Val.isNegative()) { in EvaluateValue()
377 bool Overflow = !Result.isUnsigned() && Result.Val.isMinSignedValue(); in EvaluateValue()
553 Res.setIsUnsigned(LHS.isUnsigned()|RHS.isUnsigned()); in EvaluateDirectiveSubExpr()
556 if (ValueLive && Res.isUnsigned()) { in EvaluateDirectiveSubExpr()
557 if (!LHS.isUnsigned() && LHS.Val.isNegative()) in EvaluateDirectiveSubExpr()
562 if (!RHS.isUnsigned() && RHS.Val.isNegative()) in EvaluateDirectiveSubExpr()
568 LHS.Val.setIsUnsigned(Res.isUnsigned()); in EvaluateDirectiveSubExpr()
569 RHS.Val.setIsUnsigned(Res.isUnsigned()); in EvaluateDirectiveSubExpr()
[all …]
DLiteralSupport.cpp523 isUnsigned = false; in NumericLiteralParser()
591 if (isUnsigned) break; // Cannot be repeated. in NumericLiteralParser()
592 isUnsigned = true; in NumericLiteralParser()
674 isUnsigned = false; in NumericLiteralParser()
/external/clang/lib/StaticAnalyzer/Core/
DBasicValueFactory.cpp90 bool isUnsigned) { in getValue() argument
91 llvm::APSInt V(X, isUnsigned); in getValue()
96 bool isUnsigned) { in getValue() argument
97 llvm::APSInt V(BitWidth, isUnsigned); in getValue()
DSimpleConstraintManager.cpp238 ComparisonType.isUnsigned() && !WraparoundType.isUnsigned()) in assumeSymRel()
DSVals.cpp262 if (C.getValue().isUnsigned()) in dumpToStream()
266 os << ' ' << (C.getValue().isUnsigned() ? 'U' : 'S') in dumpToStream()
DSymbolManager.cpp36 if (getRHS().isUnsigned()) in dumpToStream()
42 if (getLHS().isUnsigned()) in dumpToStream()
/external/llvm/include/llvm/ADT/
DAPSInt.h30 explicit APSInt(uint32_t BitWidth, bool isUnsigned = true)
31 : APInt(BitWidth, 0), IsUnsigned(isUnsigned) {}
33 explicit APSInt(APInt I, bool isUnsigned = true)
34 : APInt(std::move(I)), IsUnsigned(isUnsigned) {} in APInt()
50 bool isUnsigned() const { return IsUnsigned; } in isUnsigned() function
/external/clang/test/CodeGen/
Dpascal-wchar-string.c40 volatile int isUnsigned = (wchar_t)-1 > (wchar_t)0; in test2() local
/external/clang/lib/ASTMatchers/Dynamic/
DVariantValue.cpp298 bool VariantValue::isUnsigned() const { in isUnsigned() function in clang::ast_matchers::dynamic::VariantValue
303 assert(isUnsigned()); in getUnsigned()
346 if (!isUnsigned()) in isConvertibleTo()
DMarshallers.h70 static bool is(const VariantValue &Value) { return Value.isUnsigned(); }
/external/llvm/lib/Target/Hexagon/
DHexagonInstrInfoV3.td110 class T_XTYPE_MIN_MAX_P<bit isMax, bit isUnsigned>
112 "$Rd = "#!if(isMax,"max","min")#!if(isUnsigned,"u","")
126 let Inst{5} = isUnsigned;
DHexagonInstrInfo.td1139 class T_XTYPE_MIN_MAX < bit isMax, bit isUnsigned >
1141 "$Rd = "#!if(isMax,"max","min")#!if(isUnsigned,"u","")
1151 let Inst{7} = isUnsigned;
2335 bit hasShift, bit isUnsigned>
2337 "$Rd = "#!if(isUnsigned,"mpyu","mpy")#"($Rs."#!if(LHbits{1},"h","l")
2351 let Inst{22} = isUnsigned;
2421 bit hasShift, bit isUnsigned >
2423 "$Rx "#!if(isNac,"-= ","+= ")#!if(isUnsigned,"mpyu","mpy")
2436 let Inst{22} = isUnsigned;
2512 class T_M2_mpyd_acc < bits<2> LHbits, bit isNac, bit hasShift, bit isUnsigned>
[all …]
/external/clang/include/clang/Basic/
DTargetBuiltins.h134 bool isUnsigned() const { return (Flags & UnsignedFlag) != 0; } in isUnsigned() function
/external/llvm/include/llvm/IR/
DInstrTypes.h828 bool isUnsigned() const {
829 return isUnsigned(getPredicate());
846 static bool isUnsigned(unsigned short predicate);
/external/clang/include/clang/Lex/
DLiteralSupport.h61 bool isUnsigned : 1; variable
/external/clang/include/clang/ASTMatchers/Dynamic/
DVariantValue.h265 bool isUnsigned() const;
/external/clang/lib/AST/
DTemplateBase.cpp77 Integer.IsUnsigned = Value.isUnsigned(); in TemplateArgument()
/external/deqp/modules/gles31/functional/
Des31fShaderIntegerFunctionTests.cpp142 const bool isUnsigned = glu::isDataTypeUintOrUVec(dataType); in generateRandomInputData() local
144 if (isUnsigned) in generateRandomInputData()
/external/llvm/lib/CodeGen/SelectionDAG/
DFunctionLoweringInfo.cpp74 NumOfUnsigned += CI->isUnsigned(); in getPreferredExtendForValue()
/external/llvm/lib/Analysis/
DInstructionSimplify.cpp1461 ICmpInst::isUnsigned(UnsignedPred)) in simplifyUnsignedRangeCheck()
1465 ICmpInst::isUnsigned(UnsignedPred)) in simplifyUnsignedRangeCheck()
2529 (CmpInst::isUnsigned(Pred) && LBO->hasNoUnsignedWrap()) || in SimplifyICmpInst()
2535 (CmpInst::isUnsigned(Pred) && RBO->hasNoUnsignedWrap()) || in SimplifyICmpInst()
2616 if (!CmpInst::isUnsigned(Pred) && match(LHS, m_Neg(m_ZExt(m_Value())))) { in SimplifyICmpInst()

12