Home
last modified time | relevance | path

Searched refs:getSExtValue (Results 1 – 25 of 128) sorted by relevance

123456

/external/llvm/lib/Target/Hexagon/
DHexagonOperands.td123 int64_t v = (int64_t)N->getSExtValue();
128 int64_t v = (int64_t)N->getSExtValue();
133 int64_t v = (int64_t)N->getSExtValue();
138 int64_t v = (int64_t)N->getSExtValue();
143 int64_t v = (int64_t)N->getSExtValue();
148 int64_t v = (int64_t)N->getSExtValue();
153 int64_t v = (int64_t)N->getSExtValue();
158 int64_t v = (int64_t)N->getSExtValue();
163 int64_t v = (int64_t)N->getSExtValue();
168 int64_t v = (int64_t)N->getSExtValue();
[all …]
DHexagonOptimizeSZextends.cpp114 if (!(C && C->getSExtValue() == 16)) in runOnFunction()
125 if (!(C && C->getSExtValue() == 16)) in runOnFunction()
DHexagonISelDAGToDAG.cpp262 int32_t Val = cast<ConstantSDNode>(OffsetNode)->getSExtValue(); in SelectIndexedLoadSignExtend64()
315 int32_t Val = cast<ConstantSDNode>(OffsetNode)->getSExtValue(); in SelectIndexedLoadZeroExtend64()
374 int32_t Val = cast<ConstantSDNode>(OffsetNode)->getSExtValue(); in SelectIndexedLoad()
512 int32_t Val = cast<ConstantSDNode>(OffsetNode)->getSExtValue(); in SelectIndexedStore()
703 cast<ConstantSDNode>(Shl_1.getNode())->getSExtValue(); in SelectSHL()
705 cast<ConstantSDNode>(Mul_1.getNode())->getSExtValue(); in SelectSHL()
710 if (isInt<9>(CN->getSExtValue())) { in SelectSHL()
724 cast<ConstantSDNode>(Sub_0.getNode())->getSExtValue(); in SelectSHL()
731 cast<ConstantSDNode>(Shl_1.getNode())->getSExtValue(); in SelectSHL()
733 cast<ConstantSDNode>(Shl2_1.getNode())->getSExtValue(); in SelectSHL()
[all …]
/external/llvm/lib/Target/SystemZ/
DSystemZTargetTransformInfo.cpp51 if (isInt<32>(Imm.getSExtValue())) in getIntImmCost()
95 if (isInt<16>(Imm.getSExtValue())) in getIntImmCost()
102 if (isInt<32>(Imm.getSExtValue())) in getIntImmCost()
116 if (isUInt<32>(-Imm.getSExtValue())) in getIntImmCost()
123 if (isInt<32>(Imm.getSExtValue())) in getIntImmCost()
208 if (isUInt<32>(-Imm.getSExtValue())) in getIntImmCost()
216 if (isInt<32>(Imm.getSExtValue())) in getIntImmCost()
221 if ((Idx < 2) || (Imm.getBitWidth() <= 64 && isInt<64>(Imm.getSExtValue()))) in getIntImmCost()
226 if ((Idx < 4) || (Imm.getBitWidth() <= 64 && isInt<64>(Imm.getSExtValue()))) in getIntImmCost()
DSystemZOperands.td308 return isInt<8>(N->getSExtValue());
322 return isInt<16>(N->getSExtValue());
401 return isInt<8>(N->getSExtValue());
405 return isUInt<8>(N->getSExtValue());
409 return isInt<16>(N->getSExtValue());
417 return isInt<32>(N->getSExtValue());
425 return isUInt<32>(-N->getSExtValue());
/external/llvm/lib/Transforms/Utils/
DLowerSwitch.cpp222 UpperBound->getSExtValue() - LowerBound->getSExtValue(); in switchConvert()
253 int64_t GapLow = LHS.back().High->getSExtValue() + 1; in switchConvert()
254 int64_t GapHigh = NewLowerBound->getSExtValue() - 1; in switchConvert()
262 dbgs() << LowerBound->getSExtValue(); in switchConvert()
266 dbgs() << " - " << NewUpperBound->getSExtValue() << "\n"; in switchConvert()
268 dbgs() << NewLowerBound->getSExtValue() << " - "; in switchConvert()
270 dbgs() << UpperBound->getSExtValue() << "\n"; in switchConvert()
346 uint64_t Range = Leaf.High->getSExtValue() - in newLeafBlock()
347 Leaf.Low->getSExtValue(); in newLeafBlock()
375 int64_t nextValue = J->Low->getSExtValue(); in Clusterify()
[all …]
/external/llvm/lib/Target/BPF/
DBPFISelDAGToDAG.cpp74 if (isInt<32>(CN->getSExtValue())) { in SelectAddr()
83 Offset = CurDAG->getTargetConstant(CN->getSExtValue(), DL, MVT::i64); in SelectAddr()
102 if (isInt<32>(CN->getSExtValue())) { in SelectFIAddr()
111 Offset = CurDAG->getTargetConstant(CN->getSExtValue(), DL, MVT::i64); in SelectFIAddr()
/external/llvm/lib/Target/PowerPC/
DPPCTargetTransformInfo.cpp52 if (isInt<16>(Imm.getSExtValue())) in getIntImmCost()
55 if (isInt<32>(Imm.getSExtValue())) { in getIntImmCost()
85 if ((Idx == 1) && Imm.getBitWidth() <= 64 && isInt<16>(Imm.getSExtValue())) in getIntImmCost()
89 if ((Idx < 2) || (Imm.getBitWidth() <= 64 && isInt<64>(Imm.getSExtValue()))) in getIntImmCost()
94 if ((Idx < 4) || (Imm.getBitWidth() <= 64 && isInt<64>(Imm.getSExtValue()))) in getIntImmCost()
159 if (isInt<16>(Imm.getSExtValue())) in getIntImmCost()
DPPCLoopDataPrefetch.cpp195 int64_t PD = std::abs(ConstPtrDiff->getValue()->getSExtValue()); in runOnLoop()
/external/llvm/unittests/ADT/
DAPSIntTest.cpp48 EXPECT_EQ(7, APSInt::get(7).getSExtValue()); in TEST()
51 EXPECT_EQ(-7, APSInt::get(-7).getSExtValue()); in TEST()
59 EXPECT_EQ(7, APSInt::getUnsigned(7).getSExtValue()); in TEST()
62 EXPECT_EQ(-7, APSInt::getUnsigned(-7).getSExtValue()); in TEST()
DAPIntTest.cpp38 EXPECT_EQ(-3, Minus3.getSExtValue()); in TEST()
47 EXPECT_EQ(-1, Minus1.getSExtValue()); in TEST()
60 EXPECT_EQ(-2, i33minus2.getSExtValue()); in TEST()
109 EXPECT_EQ(0u, zero.getSExtValue()); in TEST()
119 EXPECT_EQ(1, one.getSExtValue()); in TEST()
130 EXPECT_EQ(0, neg_two.getSExtValue()); in TEST()
131 EXPECT_EQ(-1, neg_one.getSExtValue()); in TEST()
134 EXPECT_EQ(-1, one.getSExtValue()); in TEST()
137 EXPECT_EQ(0, two.getSExtValue()); in TEST()
239 auto sv1 = arg1.getSExtValue(); in TEST()
[all …]
/external/llvm/lib/Target/XCore/
DXCoreISelDAGToDAG.cpp100 && (CN->getSExtValue() % 4 == 0 && CN->getSExtValue() >= 0)) { in SelectADDRspii()
103 Offset = CurDAG->getTargetConstant(CN->getSExtValue(), SDLoc(Addr), in SelectADDRspii()
/external/llvm/lib/Transforms/Scalar/
DStraightLineStrengthReduce.cpp256 BaseOffset += ConstIdx->getSExtValue() * ElementSize; in isGEPFoldable()
281 Index->getSExtValue()); in isAddFoldable()
472 IntPtrTy, Idx->getSExtValue() * (int64_t)ElementSize, true); in allocateCandidatesAndFindBasisForGEP()
573 if (R.getSExtValue() == 0) in emitBump()
581 if (IndexOffset.getSExtValue() == 1) in emitBump()
584 if (IndexOffset.getSExtValue() == -1) in emitBump()
DAlignmentFromAssumptions.cpp118 int64_t DiffUnits = ConstDUSCEV->getValue()->getSExtValue(); in getNewAlignmentDiff()
125 cast<SCEVConstant>(AlignSCEV)->getValue()->getSExtValue(); in getNewAlignmentDiff()
/external/llvm/unittests/IR/
DConstantsTest.cpp107 EXPECT_EQ(100, ConstantInt::get(Int8Ty, 100, false)->getSExtValue()); in TEST()
108 EXPECT_EQ(100, ConstantInt::get(Int8Ty, 100, true)->getSExtValue()); in TEST()
109 EXPECT_EQ(100, ConstantInt::getSigned(Int8Ty, 100)->getSExtValue()); in TEST()
110 EXPECT_EQ(-50, ConstantInt::get(Int8Ty, 206)->getSExtValue()); in TEST()
111 EXPECT_EQ(-50, ConstantInt::getSigned(Int8Ty, -50)->getSExtValue()); in TEST()
115 EXPECT_EQ(0x3b, ConstantInt::get(Int8Ty, 0x13b)->getSExtValue()); in TEST()
/external/llvm/lib/Target/AArch64/MCTargetDesc/
DAArch64AddressingModes.h372 int32_t Exp = (Imm.lshr(10).getSExtValue() & 0x1f) - 15; // -14 to 15 in getFP16Imm()
398 int32_t Exp = (Imm.lshr(23).getSExtValue() & 0xff) - 127; // -126 to 127 in getFP32Imm()
426 int64_t Exp = (Imm.lshr(52).getSExtValue() & 0x7ff) - 1023; // -1022 to 1023 in getFP64Imm()
/external/llvm/lib/Target/ARM/MCTargetDesc/
DARMAddressingModes.h658 int32_t Exp = (Imm.lshr(23).getSExtValue() & 0xff) - 127; // -126 to 127 in getFP32Imm()
686 int64_t Exp = (Imm.lshr(52).getSExtValue() & 0x7ff) - 1023; // -1022 to 1023 in getFP64Imm()
/external/clang/lib/StaticAnalyzer/Checkers/
DCastSizeChecker.cpp121 CharUnits regionSize = CharUnits::fromQuantity(extentInt->getSExtValue()); in checkPreStmt()
/external/llvm/lib/Target/AArch64/
DAArch64TargetTransformInfo.cpp57 int64_t Val = Tmp.getSExtValue(); in getIntImmCost()
158 if ((Idx < 2) || (Imm.getBitWidth() <= 64 && isInt<64>(Imm.getSExtValue()))) in getIntImmCost()
163 if ((Idx < 4) || (Imm.getBitWidth() <= 64 && isInt<64>(Imm.getSExtValue()))) in getIntImmCost()
/external/llvm/lib/Transforms/IPO/
DArgumentPromotion.cpp484 Indices.push_back(CI->getSExtValue()); in isSafeToPromoteArgument()
528 Operands.push_back(C->getSExtValue()); in isSafeToPromoteArgument()
688 Indices.push_back(cast<ConstantInt>(*II)->getSExtValue()); in DoPromotion()
966 Operands.push_back(cast<ConstantInt>(*II)->getSExtValue()); in DoPromotion()
/external/llvm/lib/Target/Sparc/
DSparcISelDAGToDAG.cpp92 if (isInt<13>(CN->getSExtValue())) { in SelectADDRri()
131 if (isInt<13>(CN->getSExtValue())) in SelectADDRrr()
/external/llvm/lib/Target/AMDGPU/
DAMDGPUISelDAGToDAG.cpp793 if (isDSOffsetLegal(N0, C1->getSExtValue(), 16)) { in SelectDS1Addr1Offset()
802 int64_t ByteOffset = C->getSExtValue(); in SelectDS1Addr1Offset()
1003 if (C->getSExtValue()) { in SelectMUBUFAddr64()
1069 if (!cast<ConstantSDNode>(Offen)->getSExtValue() && in SelectMUBUFOffset()
1070 !cast<ConstantSDNode>(Idxen)->getSExtValue() && in SelectMUBUFOffset()
1071 !cast<ConstantSDNode>(Addr64)->getSExtValue()) { in SelectMUBUFOffset()
1113 int64_t ByteOffset = C->getSExtValue(); in SelectSMRDOffset()
/external/llvm/lib/Target/MSP430/
DMSP430ISelDAGToDAG.cpp186 uint64_t Val = cast<ConstantSDNode>(N)->getSExtValue(); in MatchAddress()
223 uint64_t Offset = CN->getSExtValue(); in MatchAddress()
/external/llvm/include/llvm/ADT/
DAPInt.h1061 return getMinSignedBits() > 64 ? isNegative() : getSExtValue() < RHS; in slt()
1129 return getMinSignedBits() > 64 ? !isNegative() : getSExtValue() > RHS; in sgt()
1340 int64_t getSExtValue() const { in getSExtValue() function
/external/clang/lib/CodeGen/
DCGLoopInfo.cpp127 ValueInt = ValueAPS.getSExtValue(); in push()

123456