Home
last modified time | relevance | path

Searched refs:isSigned (Results 1 – 25 of 70) sorted by relevance

123

/external/llvm/unittests/ADT/
DAPIntTest.cpp329 bool isSigned; in TEST() local
344 isSigned = false; in TEST()
345 APInt(8, 255, isSigned).toString(S, 2, isSigned, true); in TEST()
348 APInt(8, 255, isSigned).toString(S, 8, isSigned, true); in TEST()
351 APInt(8, 255, isSigned).toString(S, 10, isSigned, true); in TEST()
354 APInt(8, 255, isSigned).toString(S, 16, isSigned, true); in TEST()
358 isSigned = true; in TEST()
359 APInt(8, 255, isSigned).toString(S, 2, isSigned, true); in TEST()
362 APInt(8, 255, isSigned).toString(S, 8, isSigned, true); in TEST()
365 APInt(8, 255, isSigned).toString(S, 10, isSigned, true); in TEST()
[all …]
/external/llvm/lib/CodeGen/SelectionDAG/
DLegalizeDAG.cpp111 SDValue ExpandLibCall(RTLIB::Libcall LC, SDNode *Node, bool isSigned);
113 unsigned NumOps, bool isSigned, DebugLoc dl);
116 SDNode *Node, bool isSigned);
120 SDValue ExpandIntLibCall(SDNode *Node, bool isSigned,
134 SDValue ExpandLegalINT_TO_FP(bool isSigned, SDValue LegalOp, EVT DestVT,
136 SDValue PromoteLegalINT_TO_FP(SDValue LegalOp, EVT DestVT, bool isSigned,
138 SDValue PromoteLegalFP_TO_INT(SDValue LegalOp, EVT DestVT, bool isSigned,
2152 bool isSigned) { in ExpandLibCall() argument
2164 Entry.isSExt = isSigned; in ExpandLibCall()
2165 Entry.isZExt = !isSigned; in ExpandLibCall()
[all …]
DLegalizeTypes.cpp1011 bool isSigned) { in LibCallify() argument
1015 return MakeLibCall(LC, N->getValueType(0), 0, 0, isSigned, dl); in LibCallify()
1018 return MakeLibCall(LC, N->getValueType(0), &Op, 1, isSigned, dl); in LibCallify()
1021 return MakeLibCall(LC, N->getValueType(0), Ops, 2, isSigned, dl); in LibCallify()
1027 return MakeLibCall(LC, N->getValueType(0), &Ops[0], NumOps, isSigned, dl); in LibCallify()
1034 bool isSigned, DebugLoc dl) { in MakeLibCall() argument
1042 Entry.isSExt = isSigned; in MakeLibCall()
1043 Entry.isZExt = !isSigned; in MakeLibCall()
1051 TLI.LowerCallTo(DAG.getEntryNode(), RetTy, isSigned, !isSigned, false, in MakeLibCall()
1063 bool isSigned) { in ExpandChainLibCall() argument
[all …]
/external/llvm/include/llvm/ADT/
DAPSInt.h55 bool isSigned() const { return !IsUnsigned; } in isSigned() function
62 APInt::toString(Str, Radix, isSigned());
67 return APInt::toString(Radix, isSigned()); in toString()
259 I.print(OS, I.isSigned());
DAPInt.h178 void initSlowCase(unsigned numBits, uint64_t val, bool isSigned);
227 APInt(unsigned numBits, uint64_t val, bool isSigned = false)
233 initSlowCase(numBits, val, isSigned); in BitWidth()
1252 void print(raw_ostream &OS, bool isSigned) const;
1281 double roundToDouble(bool isSigned) const;
DPackedVector.h22 template <typename T, unsigned BitNum, bool isSigned>
/external/llvm/lib/Transforms/InstCombine/
DInstCombineAndOrXor.cpp186 return (CmpInst::isSigned(p1) == CmpInst::isSigned(p2)) || in PredicatesFoldable()
187 (CmpInst::isSigned(p1) && ICmpInst::isEquality(p2)) || in PredicatesFoldable()
188 (CmpInst::isSigned(p2) && ICmpInst::isEquality(p1)); in PredicatesFoldable()
339 bool isSigned, bool Inside) { in InsertRangeTest() argument
340 assert(cast<ConstantInt>(ConstantExpr::getICmp((isSigned ? in InsertRangeTest()
349 if (cast<ConstantInt>(Lo)->isMinValue(isSigned)) { in InsertRangeTest()
350 ICmpInst::Predicate pred = (isSigned ? in InsertRangeTest()
367 if (cast<ConstantInt>(Lo)->isMinValue(isSigned)) { in InsertRangeTest()
368 ICmpInst::Predicate pred = (isSigned ? in InsertRangeTest()
730 bool isSigned = LHS->isSigned() || RHS->isSigned(); in FoldAndOfICmps() local
[all …]
DInstCombineCompares.cpp758 if (!ICI.isEquality() && DivIsSigned != ICI.isSigned()) in FoldICmpDivCst()
916 if (ICI.isSigned() != (Shr->getOpcode() == Instruction::AShr)) in FoldICmpShrCst()
1052 ICmpInst::Predicate Pred = ICI.isSigned() in visitICmpInstWithInstAndIntCst()
1063 ICmpInst::Predicate Pred = ICI.isSigned() in visitICmpInstWithInstAndIntCst()
1340 if (ICI.isSigned()) { in visitICmpInstWithInstAndIntCst()
1550 bool isSignedCmp = ICI.isSigned(); in visitICmpInstWithCastAndCast()
1922 if (I.isSigned()) { in visitICmpInst()
2118 if (I.isSigned() && in visitICmpInst()
2275 (CmpInst::isSigned(Pred) && BO0->hasNoSignedWrap()); in visitICmpInst()
2279 (CmpInst::isSigned(Pred) && BO1->hasNoSignedWrap()); in visitICmpInst()
[all …]
DInstCombine.h352 bool isSigned, bool Inside);
360 Value *EvaluateInDifferentType(Value *V, Type *Ty, bool isSigned);
DInstCombineCasts.cpp155 bool isSigned) { in EvaluateInDifferentType() argument
157 C = ConstantExpr::getIntegerCast(C, Ty, isSigned /*Sext or ZExt*/); in EvaluateInDifferentType()
180 Value *LHS = EvaluateInDifferentType(I->getOperand(0), Ty, isSigned); in EvaluateInDifferentType()
181 Value *RHS = EvaluateInDifferentType(I->getOperand(1), Ty, isSigned); in EvaluateInDifferentType()
200 Value *True = EvaluateInDifferentType(I->getOperand(1), Ty, isSigned); in EvaluateInDifferentType()
201 Value *False = EvaluateInDifferentType(I->getOperand(2), Ty, isSigned); in EvaluateInDifferentType()
209 Value *V =EvaluateInDifferentType(OPN->getIncomingValue(i), Ty, isSigned); in EvaluateInDifferentType()
DInstCombineMulDivRem.cpp413 bool isSigned = I.getOpcode() == Instruction::SDiv; in commonIDivTransforms() local
414 if ((isSigned && match(Z, m_SRem(m_Specific(X), m_Specific(Op1)))) || in commonIDivTransforms()
415 (!isSigned && match(Z, m_URem(m_Specific(X), m_Specific(Op1))))) in commonIDivTransforms()
/external/llvm/include/llvm/
DConstants.h65 static Constant *get(Type *Ty, uint64_t V, bool isSigned = false);
74 bool isSigned = false);
182 bool isMaxValue(bool isSigned) const { in isMaxValue() argument
183 if (isSigned) in isMaxValue()
194 bool isMinValue(bool isSigned) const { in isMinValue() argument
195 if (isSigned) in isMinValue()
742 bool isSigned ///< Whether C should be treated as signed or not
DInstrTypes.h484 bool isSigned, ///< Whether to regard S as signed or not
493 bool isSigned, ///< Whether to regard S as signed or not
775 bool isSigned() const {
776 return isSigned(getPredicate());
803 static bool isSigned(unsigned short predicate);
/external/llvm/lib/VMCore/
DConstantFold.cpp1598 bool isSigned) { in evaluateICmpRelation() argument
1614 pred = isSigned ? ICmpInst::ICMP_SLT : ICmpInst::ICMP_ULT; in evaluateICmpRelation()
1618 pred = isSigned ? ICmpInst::ICMP_SGT : ICmpInst::ICMP_UGT; in evaluateICmpRelation()
1629 evaluateICmpRelation(V2, V1, isSigned); in evaluateICmpRelation()
1636 evaluateICmpRelation(V2, V1, isSigned); in evaluateICmpRelation()
1662 evaluateICmpRelation(V2, V1, isSigned); in evaluateICmpRelation()
1706 if (CE1->getOpcode() == Instruction::ZExt) isSigned = false; in evaluateICmpRelation()
1707 if (CE1->getOpcode() == Instruction::SExt) isSigned = true; in evaluateICmpRelation()
1710 isSigned); in evaluateICmpRelation()
1724 return isSigned ? ICmpInst::ICMP_SGE : ICmpInst::ICMP_UGE; in evaluateICmpRelation()
[all …]
/external/llvm/lib/Support/
DAPFloat.cpp1946 bool isSigned, in convertToSignExtendedInteger() argument
2020 if (!isSigned) { in convertToSignExtendedInteger()
2038 if (omsb >= width + !isSigned) in convertToSignExtendedInteger()
2060 bool isSigned, in convertToInteger() argument
2065 fs = convertToSignExtendedInteger(parts, width, isSigned, rounding_mode, in convertToInteger()
2076 bits = isSigned; in convertToInteger()
2078 bits = width - isSigned; in convertToInteger()
2081 if (sign && isSigned) in convertToInteger()
2099 parts.data(), bitWidth, result.isSigned(), rounding_mode, isExact); in convertToInteger()
2142 bool isSigned, in convertFromAPInt() argument
[all …]
/external/protobuf/java/src/main/java/com/google/protobuf/
DTextFormat.java1253 final boolean isSigned, in parseInteger() argument
1260 if (!isSigned) { in parseInteger()
1289 if (isSigned) { in parseInteger()
1309 if (isSigned) { in parseInteger()
1321 if (isSigned) { in parseInteger()
/external/llvm/include/llvm/Support/
DConstantFolder.h151 bool isSigned) const { in CreateIntCast() argument
152 return ConstantExpr::getIntegerCast(C, DestTy, isSigned); in CreateIntCast()
DTargetFolder.h162 bool isSigned) const { in CreateIntCast() argument
165 return Fold(ConstantExpr::getIntegerCast(C, DestTy, isSigned)); in CreateIntCast()
DNoFolder.h210 bool isSigned) const { in CreateIntCast() argument
211 return CastInst::CreateIntegerCast(C, DestTy, isSigned); in CreateIntCast()
/external/clang/lib/StaticAnalyzer/Core/
DBasicValueFactory.cpp178 if (V2.isSigned() && V2.isNegative()) in evalAPSInt()
196 if (V2.isSigned() && V2.isNegative()) in evalAPSInt()
/external/llvm/lib/Target/CBackend/
DCBackend.cpp166 bool isSigned = false,
171 bool isSigned,
421 CWriter::printSimpleType(raw_ostream &Out, Type *Ty, bool isSigned, in printSimpleType() argument
432 return Out << (isSigned?"signed":"unsigned") << " char " << NameSoFar; in printSimpleType()
434 return Out << (isSigned?"signed":"unsigned") << " short " << NameSoFar; in printSimpleType()
436 return Out << (isSigned?"signed":"unsigned") << " int " << NameSoFar; in printSimpleType()
438 return Out << (isSigned?"signed":"unsigned") << " long long "<< NameSoFar; in printSimpleType()
441 return Out << (isSigned?"llvmInt128":"llvmUInt128") << " " << NameSoFar; in printSimpleType()
453 return printSimpleType(Out, Type::getInt32Ty(Ty->getContext()), isSigned, in printSimpleType()
458 return printSimpleType(Out, VTy->getElementType(), isSigned, in printSimpleType()
[all …]
/external/clang/lib/CodeGen/
DCGRecordLayout.h130 bool isSigned() const { return IsSigned; } in isSigned() function
/external/clang/lib/Frontend/
DInitPreprocessor.cpp176 llvm::StringRef ValSuffix, bool isSigned, in DefineTypeSize() argument
178 llvm::APInt MaxVal = isSigned ? llvm::APInt::getSignedMaxValue(TypeWidth) in DefineTypeSize()
180 Builder.defineMacro(MacroName, MaxVal.toString(10, isSigned) + ValSuffix); in DefineTypeSize()
/external/clang/lib/AST/
DExprConstant.cpp257 Result.convertFromAPInt(Value, Value.isSigned(), in HandleIntToFloatCast()
633 = Offset.isSigned() ? Offset.getSExtValue() in VisitBinaryOperator()
954 assert(SI.isSigned() == E->getType()->isSignedIntegerOrEnumerationType() && in Success()
1104 bool SameSign = (ECD->getInitVal().isSigned() in CheckReferencedDecl()
1115 Val.setIsSigned(!ECD->getInitVal().isSigned()); in CheckReferencedDecl()
1556 if (RHS.isSigned() && RHS.isNegative()) { in VisitBinaryOperator()
1568 if (RHS.isSigned() && RHS.isNegative()) { in VisitBinaryOperator()
2288 Result.IntReal = APSInt(Imag.getBitWidth(), !Imag.isSigned()); in VisitImaginaryLiteral()
2387 Result.IntImag = APSInt(Real.getBitWidth(), !Real.isSigned()); in VisitCastExpr()
2969 if (REval.isSigned() && REval.isAllOnesValue()) { in CheckICE()
/external/llvm/lib/Analysis/
DInstructionSimplify.cpp795 bool isSigned = Opcode == Instruction::SDiv; in SimplifyDiv() local
827 if ((isSigned && Mul->hasNoSignedWrap()) || in SimplifyDiv()
828 (!isSigned && Mul->hasNoUnsignedWrap())) in SimplifyDiv()
837 if ((isSigned && match(Op0, m_SRem(m_Value(), m_Specific(Op1)))) || in SimplifyDiv()
838 (!isSigned && match(Op0, m_URem(m_Value(), m_Specific(Op1))))) in SimplifyDiv()
1766 (CmpInst::isSigned(Pred) && LBO->hasNoSignedWrap()); in SimplifyICmpInst()
1772 (CmpInst::isSigned(Pred) && RBO->hasNoSignedWrap()); in SimplifyICmpInst()
1865 if (ICmpInst::isSigned(Pred)) in SimplifyICmpInst()
1881 if (!NSW && ICmpInst::isSigned(Pred)) in SimplifyICmpInst()

123