Home
last modified time | relevance | path

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

12

/freebsd-10-stable/contrib/llvm/tools/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.h28 : BitWidth(Value.getBitWidth()), IsUnsigned(Value.isUnsigned()) {} in APSIntType()
31 bool isUnsigned() const { return IsUnsigned; } in isUnsigned() function
49 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()
/freebsd-10-stable/contrib/llvm/tools/clang/lib/Lex/
DPPExpressions.cpp43 bool isUnsigned() const { return Val.isUnsigned(); } in isUnsigned() function in __anon48d76fa70111::PPValue
253 Result.Val.setIsUnsigned(Literal.isUnsigned); in EvaluateValue()
259 if (!Literal.isUnsigned && Result.Val.isNegative()) { in EvaluateValue()
372 bool Overflow = !Result.isUnsigned() && Result.Val.isMinSignedValue(); in EvaluateValue()
548 Res.setIsUnsigned(LHS.isUnsigned()|RHS.isUnsigned()); in EvaluateDirectiveSubExpr()
551 if (ValueLive && Res.isUnsigned()) { in EvaluateDirectiveSubExpr()
552 if (!LHS.isUnsigned() && LHS.Val.isNegative()) in EvaluateDirectiveSubExpr()
557 if (!RHS.isUnsigned() && RHS.Val.isNegative()) in EvaluateDirectiveSubExpr()
563 LHS.Val.setIsUnsigned(Res.isUnsigned()); in EvaluateDirectiveSubExpr()
564 RHS.Val.setIsUnsigned(Res.isUnsigned()); in EvaluateDirectiveSubExpr()
[all …]
DLiteralSupport.cpp479 isUnsigned = false; in NumericLiteralParser()
547 if (isUnsigned) break; // Cannot be repeated. in NumericLiteralParser()
548 isUnsigned = true; in NumericLiteralParser()
633 isUnsigned = false; in NumericLiteralParser()
/freebsd-10-stable/contrib/llvm/include/llvm/ADT/
DAPSInt.h30 explicit APSInt(uint32_t BitWidth, bool isUnsigned = true)
31 : APInt(BitWidth, 0), IsUnsigned(isUnsigned) {}
33 explicit APSInt(const APInt &I, bool isUnsigned = true)
34 : APInt(I), IsUnsigned(isUnsigned) {} in APInt()
56 bool isUnsigned() const { return IsUnsigned; } in isUnsigned() function
/freebsd-10-stable/contrib/llvm/tools/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()
DSimpleSValBuilder.cpp874 assert(leftI.isUnsigned()); in evalBinOpLN()
/freebsd-10-stable/contrib/llvm/tools/clang/lib/ASTMatchers/Dynamic/
DVariantValue.cpp199 bool VariantValue::isUnsigned() const { in isUnsigned() function in clang::ast_matchers::dynamic::VariantValue
204 assert(isUnsigned()); in getUnsigned()
DMarshallers.h73 static bool is(const VariantValue &Value) { return Value.isUnsigned(); }
/freebsd-10-stable/contrib/llvm/tools/clang/include/clang/Basic/
DTargetBuiltins.h112 bool isUnsigned() const { return (Flags & UnsignedFlag) != 0; } in isUnsigned() function
/freebsd-10-stable/contrib/llvm/include/llvm/IR/
DInstrTypes.h786 bool isUnsigned() const {
787 return isUnsigned(getPredicate());
804 static bool isUnsigned(unsigned short predicate);
/freebsd-10-stable/contrib/llvm/tools/clang/include/clang/ASTMatchers/Dynamic/
DVariantValue.h218 bool isUnsigned() const;
/freebsd-10-stable/contrib/llvm/tools/clang/include/clang/Lex/
DLiteralSupport.h56 bool isUnsigned; variable
/freebsd-10-stable/contrib/llvm/tools/clang/lib/AST/
DTemplateBase.cpp62 Integer.IsUnsigned = Value.isUnsigned(); in TemplateArgument()
/freebsd-10-stable/contrib/llvm/lib/Transforms/InstCombine/
DInstCombineCompares.cpp1362 if (ICI.isUnsigned()) { in visitICmpInstWithInstAndIntCst()
2613 (CmpInst::isUnsigned(Pred) && BO0->hasNoUnsignedWrap()) || in visitICmpInst()
2617 (CmpInst::isUnsigned(Pred) && BO1->hasNoUnsignedWrap()) || in visitICmpInst()
2694 (BO0->hasOneUse() || BO1->hasOneUse()) && !I.isUnsigned()) in visitICmpInst()
DInstCombineSelect.cpp482 } else if (ICI->isUnsigned()) { in visitSelectInstWithICmp()
/freebsd-10-stable/contrib/llvm/tools/clang/lib/Sema/
DSemaInit.cpp1274 elementIndex.isUnsigned()); in CheckArrayType()
1279 elementIndex.setIsUnsigned(maxElements.isUnsigned()); in CheckArrayType()
1307 elementIndex.setIsUnsigned(maxElements.isUnsigned()); in CheckArrayType()
1338 llvm::APSInt Zero(maxElements.getBitWidth(), maxElements.isUnsigned()); in CheckArrayType()
2075 DesignatedStartIndex.setIsUnsigned(MaxElements.isUnsigned()); in CheckDesignatedInitializer()
2078 DesignatedEndIndex.setIsUnsigned(MaxElements.isUnsigned()); in CheckDesignatedInitializer()
DSemaChecking.cpp364 return Flags.isUnsigned() ? Context.UnsignedCharTy : Context.SignedCharTy; in getNeonEltType()
366 return Flags.isUnsigned() ? Context.UnsignedShortTy : Context.ShortTy; in getNeonEltType()
368 return Flags.isUnsigned() ? Context.UnsignedIntTy : Context.IntTy; in getNeonEltType()
370 return Flags.isUnsigned() ? Context.UnsignedLongLongTy : Context.LongLongTy; in getNeonEltType()
6366 if (index.isUnsigned() || !index.isNegative()) { in CheckArrayAccess()
DSemaExpr.cpp3137 bool AllowUnsigned = Literal.isUnsigned || Literal.getRadix() != 10; in ActOnNumericConstant()
3148 if (!Literal.isUnsigned && ResultVal[IntSize-1] == 0) in ActOnNumericConstant()
3163 if (!Literal.isUnsigned && ResultVal[LongSize-1] == 0) in ActOnNumericConstant()
3180 if (!Literal.isUnsigned && (ResultVal[LongLongSize-1] == 0 || in ActOnNumericConstant()
3193 if (Literal.isUnsigned) in ActOnNumericConstant()
6968 index.isUnsigned())) in diagnoseStringPlusInt()
/freebsd-10-stable/contrib/llvm/lib/Analysis/
DInstructionSimplify.cpp2209 (CmpInst::isUnsigned(Pred) && LBO->hasNoUnsignedWrap()) || in SimplifyICmpInst()
2215 (CmpInst::isUnsigned(Pred) && RBO->hasNoUnsignedWrap()) || in SimplifyICmpInst()
/freebsd-10-stable/contrib/llvm/lib/Target/ARM/
DARMFastISel.cpp1362 if (!ARMEmitCmp(CI->getOperand(0), CI->getOperand(1), CI->isUnsigned())) in SelectBranch()
1576 if (!ARMEmitCmp(CI->getOperand(0), CI->getOperand(1), CI->isUnsigned())) in SelectCmp()

12