Searched refs:isSigned (Results 1 - 25 of 71) sorted by relevance

123

/freebsd-10.1-release/contrib/llvm/tools/clang/lib/StaticAnalyzer/Core/
H A DAPSIntType.cpp21 Value.isSigned() && Value.isNegative())
26 if (Value.isSigned() && !IsUnsigned)
36 if (Value.isSigned())
45 if (Value.isSigned() && Value.isNegative())
H A DBasicValueFactory.cpp175 if (V2.isSigned() && V2.isNegative())
193 if (V2.isSigned() && V2.isNegative())
/freebsd-10.1-release/contrib/llvm/lib/Transforms/Utils/
H A DCmpInstAnalysis.cpp93 return (CmpInst::isSigned(p1) == CmpInst::isSigned(p2)) ||
94 (CmpInst::isSigned(p1) && ICmpInst::isEquality(p2)) ||
95 (CmpInst::isSigned(p2) && ICmpInst::isEquality(p1));
/freebsd-10.1-release/contrib/llvm/lib/Target/Hexagon/MCTargetDesc/
H A DHexagonMCInst.cpp151 unsigned isSigned = (F >> HexagonII::ExtentSignedPos) local
156 if (isSigned) // if value is signed
166 unsigned isSigned = (F >> HexagonII::ExtentSignedPos) local
171 if (isSigned) // if value is signed
/freebsd-10.1-release/contrib/llvm/include/llvm/ADT/
H A DAPSInt.h55 bool isSigned() const { return !IsUnsigned; } function in class:llvm::APSInt
62 APInt::toString(Str, Radix, isSigned());
67 return APInt::toString(Radix, isSigned());
269 if (I1.getBitWidth() == I2.getBitWidth() && I1.isSigned() == I2.isSigned())
280 if (I1.isSigned()) {
306 I.print(OS, I.isSigned());
H A DPackedVector.h22 template <typename T, unsigned BitNum, typename BitVectorTy, bool isSigned>
H A DAPInt.h184 void initSlowCase(unsigned numBits, uint64_t val, bool isSigned);
228 /// If isSigned is true then val is treated as if it were a signed value
235 /// \param isSigned how to treat signedness of val
236 APInt(unsigned numBits, uint64_t val, bool isSigned = false)
242 initSlowCase(numBits, val, isSigned);
1403 void print(raw_ostream &OS, bool isSigned) const;
1433 double roundToDouble(bool isSigned) const;
/freebsd-10.1-release/contrib/llvm/lib/CodeGen/SelectionDAG/
H A DLegalizeDAG.cpp101 SDValue ExpandLibCall(RTLIB::Libcall LC, SDNode *Node, bool isSigned);
103 unsigned NumOps, bool isSigned, SDLoc dl);
106 SDNode *Node, bool isSigned);
111 SDValue ExpandIntLibCall(SDNode *Node, bool isSigned,
126 SDValue ExpandLegalINT_TO_FP(bool isSigned, SDValue LegalOp, EVT DestVT,
128 SDValue PromoteLegalINT_TO_FP(SDValue LegalOp, EVT DestVT, bool isSigned,
130 SDValue PromoteLegalFP_TO_INT(SDValue LegalOp, EVT DestVT, bool isSigned,
1884 bool isSigned) {
1891 Entry.isSExt = isSigned;
1892 Entry.isZExt = !isSigned;
[all...]
H A DLegalizeTypes.cpp1006 bool isSigned) {
1010 return TLI.makeLibCall(DAG, LC, N->getValueType(0), 0, 0, isSigned,
1014 return TLI.makeLibCall(DAG, LC, N->getValueType(0), &Op, 1, isSigned,
1018 return TLI.makeLibCall(DAG, LC, N->getValueType(0), Ops, 2, isSigned,
1026 &Ops[0], NumOps, isSigned, dl).first;
1034 bool isSigned) {
1044 Entry.isSExt = isSigned;
1045 Entry.isZExt = !isSigned;
1053 CallLoweringInfo CLI(InChain, RetTy, isSigned, !isSigned, fals
1005 LibCallify(RTLIB::Libcall LC, SDNode *N, bool isSigned) argument
1032 ExpandChainLibCall(RTLIB::Libcall LC, SDNode *Node, bool isSigned) argument
[all...]
/freebsd-10.1-release/contrib/llvm/lib/IR/
H A DConstantFold.cpp1338 bool isSigned) {
1354 pred = isSigned ? ICmpInst::ICMP_SLT : ICmpInst::ICMP_ULT;
1358 pred = isSigned ? ICmpInst::ICMP_SGT : ICmpInst::ICMP_UGT;
1369 evaluateICmpRelation(V2, V1, isSigned);
1376 evaluateICmpRelation(V2, V1, isSigned);
1402 evaluateICmpRelation(V2, V1, isSigned);
1446 if (CE1->getOpcode() == Instruction::ZExt) isSigned = false;
1447 if (CE1->getOpcode() == Instruction::SExt) isSigned = true;
1450 isSigned);
1464 return isSigned
1337 evaluateICmpRelation(Constant *V1, Constant *V2, bool isSigned) argument
[all...]
/freebsd-10.1-release/contrib/llvm/include/llvm/IR/
H A DInstrTypes.h482 bool isSigned, ///< Whether to regard S as signed or not
491 bool isSigned, ///< Whether to regard S as signed or not
780 bool isSigned() const { function in class:llvm::CmpInst
781 return isSigned(getPredicate());
808 static bool isSigned(unsigned short predicate);
H A DConstants.h70 static Constant *get(Type *Ty, uint64_t V, bool isSigned = false);
74 /// to fit the type, unless isSigned is true, in which case the value will
79 bool isSigned = false);
185 bool isMaxValue(bool isSigned) const {
186 if (isSigned)
197 bool isMinValue(bool isSigned) const {
198 if (isSigned)
964 bool isSigned ///< Whether C should be treated as signed or not
/freebsd-10.1-release/contrib/llvm/include/llvm/Support/
H A DConstantFolder.h163 bool isSigned) const {
164 return ConstantExpr::getIntegerCast(C, DestTy, isSigned);
H A DTargetFolder.h174 bool isSigned) const {
177 return Fold(ConstantExpr::getIntegerCast(C, DestTy, isSigned));
H A DNoFolder.h222 bool isSigned) const {
223 return CastInst::CreateIntegerCast(C, DestTy, isSigned);
/freebsd-10.1-release/contrib/llvm/lib/Support/
H A DAPFloat.cpp2046 bool isSigned,
2118 if (!isSigned) {
2136 if (omsb >= width + !isSigned)
2158 bool isSigned,
2163 fs = convertToSignExtendedInteger(parts, width, isSigned, rounding_mode,
2174 bits = isSigned;
2176 bits = width - isSigned;
2179 if (sign && isSigned)
2197 parts.data(), bitWidth, result.isSigned(), rounding_mode, isExact);
2239 bool isSigned,
[all...]
H A DAPInt.cpp76 void APInt::initSlowCase(unsigned numBits, uint64_t val, bool isSigned) { argument
79 if (isSigned && int64_t(val) < 0)
858 double APInt::roundToDouble(bool isSigned) const {
863 if (isSigned) {
871 bool isNeg = isSigned ? (*this)[BitWidth-1] : false;
886 if (!isSigned || !isNeg)
2261 void APInt::print(raw_ostream &OS, bool isSigned) const {
2263 this->toString(S, 10, isSigned, /* formatAsCLiteral = */false);
/freebsd-10.1-release/contrib/llvm/lib/Target/ARM/
H A DARMFastISel.cpp165 bool SelectIToFP(const Instruction *I, bool isSigned);
166 bool SelectFPToI(const Instruction *I, bool isSigned);
167 bool SelectDiv(const Instruction *I, bool isSigned);
168 bool SelectRem(const Instruction *I, bool isSigned);
1635 bool ARMFastISel::SelectIToFP(const Instruction *I, bool isSigned) { argument
1658 /*isZExt*/!isSigned);
1668 if (Ty->isFloatTy()) Opc = isSigned ? ARM::VSITOS : ARM::VUITOS;
1669 else if (Ty->isDoubleTy()) Opc = isSigned ? ARM::VSITOD : ARM::VUITOD;
1680 bool ARMFastISel::SelectFPToI(const Instruction *I, bool isSigned) { argument
1694 if (OpTy->isFloatTy()) Opc = isSigned
1779 SelectDiv(const Instruction *I, bool isSigned) argument
1807 SelectRem(const Instruction *I, bool isSigned) argument
[all...]
H A DARMBaseRegisterInfo.cpp640 bool isSigned = true; local
669 isSigned = false;
681 if (isSigned && Offset < 0)
/freebsd-10.1-release/contrib/llvm/lib/Transforms/InstCombine/
H A DInstCombineAndOrXor.cpp268 /// (V-Lo) \<u Hi-Lo. This method expects that Lo <= Hi. isSigned indicates
272 bool isSigned, bool Inside) {
273 assert(cast<ConstantInt>(ConstantExpr::getICmp((isSigned ?
282 if (cast<ConstantInt>(Lo)->isMinValue(isSigned)) {
283 ICmpInst::Predicate pred = (isSigned ?
300 if (cast<ConstantInt>(Lo)->isMinValue(isSigned)) {
301 ICmpInst::Predicate pred = (isSigned ?
796 bool isSigned = LHS->isSigned() || RHS->isSigned(); local
271 InsertRangeTest(Value *V, Constant *Lo, Constant *Hi, bool isSigned, bool Inside) argument
1609 bool isSigned = LHS->isSigned() || RHS->isSigned(); local
2484 bool isSigned = LHS->isSigned() || RHS->isSigned(); local
[all...]
H A DInstCombine.h373 bool isSigned, bool Inside);
381 Value *EvaluateInDifferentType(Value *V, Type *Ty, bool isSigned);
H A DInstCombineCompares.cpp146 if (!ICmpInst::isSigned(pred))
619 if (ICmpInst::isSigned(Cond))
823 if (!ICI.isEquality() && DivIsSigned != ICI.isSigned())
981 if (ICI.isSigned() != (Shr->getOpcode() == Instruction::AShr))
1115 ICmpInst::Predicate Pred = ICI.isSigned()
1125 ICmpInst::Predicate Pred = ICI.isSigned()
1222 CanFold = !ICI.isSigned();
1392 } else if (ICI.isSigned()) {
1582 if (ICI.isSigned()) {
1818 bool isSignedCmp = ICI.isSigned();
[all...]
H A DInstCombineCasts.cpp161 bool isSigned) {
163 C = ConstantExpr::getIntegerCast(C, Ty, isSigned /*Sext or ZExt*/);
186 Value *LHS = EvaluateInDifferentType(I->getOperand(0), Ty, isSigned);
187 Value *RHS = EvaluateInDifferentType(I->getOperand(1), Ty, isSigned);
206 Value *True = EvaluateInDifferentType(I->getOperand(1), Ty, isSigned);
207 Value *False = EvaluateInDifferentType(I->getOperand(2), Ty, isSigned);
215 Value *V =EvaluateInDifferentType(OPN->getIncomingValue(i), Ty, isSigned);
1453 return CastInst::CreateIntegerCast(P, Ty, /*isSigned=*/false);
160 EvaluateInDifferentType(Value *V, Type *Ty, bool isSigned) argument
/freebsd-10.1-release/contrib/llvm/include/llvm/Analysis/
H A DScalarEvolution.h490 /// computable, return CouldNotCompute. isSigned specifies whether the
493 const Loop *L, bool isSigned, bool IsSubExpr);
495 const Loop *L, bool isSigned, bool IsSubExpr);
575 const SCEV *getConstant(Type *Ty, uint64_t V, bool isSigned = false);
/freebsd-10.1-release/contrib/llvm/tools/clang/lib/Frontend/
H A DInitPreprocessor.cpp182 /// signedness of 'isSigned' and with a value suffix of 'ValSuffix' (e.g. LL).
184 StringRef ValSuffix, bool isSigned,
186 llvm::APInt MaxVal = isSigned ? llvm::APInt::getSignedMaxValue(TypeWidth)
188 Builder.defineMacro(MacroName, MaxVal.toString(10, isSigned) + ValSuffix);
183 DefineTypeSize(StringRef MacroName, unsigned TypeWidth, StringRef ValSuffix, bool isSigned, MacroBuilder &Builder) argument

Completed in 414 milliseconds

123