/external/llvm/lib/Target/Hexagon/ |
D | HexagonOperands.td | 125 int64_t v = (int64_t)N->getSExtValue(); 130 int64_t v = (int64_t)N->getSExtValue(); 135 int64_t v = (int64_t)N->getSExtValue(); 140 int64_t v = (int64_t)N->getSExtValue(); 145 int64_t v = (int64_t)N->getSExtValue(); 150 int64_t v = (int64_t)N->getSExtValue(); 155 int64_t v = (int64_t)N->getSExtValue(); 160 int64_t v = (int64_t)N->getSExtValue(); 165 int64_t v = (int64_t)N->getSExtValue(); 170 int64_t v = (int64_t)N->getSExtValue(); [all …]
|
D | HexagonOptimizeSZextends.cpp | 117 if (!(C && C->getSExtValue() == 16)) in runOnFunction() 128 if (!(C && C->getSExtValue() == 16)) in runOnFunction()
|
D | HexagonISelDAGToDAG.cpp | 244 int32_t Inc = cast<ConstantSDNode>(Offset.getNode())->getSExtValue(); in SelectIndexedLoad() 382 SDValue I = CurDAG->getTargetConstant(Inc->getSExtValue(), dl, MVT::i32); in LoadInstrForLoadIntrinsic() 541 int32_t Inc = cast<ConstantSDNode>(Offset.getNode())->getSExtValue(); in SelectIndexedStore() 741 cast<ConstantSDNode>(Shl_1.getNode())->getSExtValue(); in SelectSHL() 743 cast<ConstantSDNode>(Mul_1.getNode())->getSExtValue(); in SelectSHL() 748 if (isInt<9>(CN->getSExtValue())) { in SelectSHL() 762 cast<ConstantSDNode>(Sub_0.getNode())->getSExtValue(); in SelectSHL() 769 cast<ConstantSDNode>(Shl_1.getNode())->getSExtValue(); in SelectSHL() 771 cast<ConstantSDNode>(Shl2_1.getNode())->getSExtValue(); in SelectSHL() 777 if (isInt<9>(CN->getSExtValue())) { in SelectSHL() [all …]
|
/external/llvm/lib/Target/SystemZ/ |
D | SystemZTargetTransformInfo.cpp | 51 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()
|
D | SystemZOperands.td | 308 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/Target/Lanai/ |
D | LanaiISelDAGToDAG.cpp | 97 return isInt<21>(CN.getSExtValue()) && ((CN.getSExtValue() & 0x3) == 0); in canBeRepresentedAsSls() 109 int32_t Imm = CN->getSExtValue(); in selectAddrSls() 130 if (isInt<16>(CN->getSExtValue())) { in selectAddrRiSpls() 131 int16_t Imm = CN->getSExtValue(); in selectAddrRiSpls() 143 if (isInt<10>(CN->getSExtValue())) { in selectAddrRiSpls() 144 int16_t Imm = CN->getSExtValue(); in selectAddrRiSpls() 174 if ((RiMode && isInt<16>(CN->getSExtValue())) || in selectAddrRiSpls() 175 (!RiMode && isInt<10>(CN->getSExtValue()))) { in selectAddrRiSpls() 186 Offset = CurDAG->getTargetConstant(CN->getSExtValue(), DL, MVT::i32); in selectAddrRiSpls() 229 if (isInt<16>(CN->getSExtValue())) in selectAddrRr()
|
/external/swiftshader/third_party/LLVM/unittests/VMCore/ |
D | ConstantsTest.cpp | 101 EXPECT_EQ(100, ConstantInt::get(Int8Ty, 100, false)->getSExtValue()); in TEST() 102 EXPECT_EQ(100, ConstantInt::get(Int8Ty, 100, true)->getSExtValue()); in TEST() 103 EXPECT_EQ(100, ConstantInt::getSigned(Int8Ty, 100)->getSExtValue()); in TEST() 104 EXPECT_EQ(-50, ConstantInt::get(Int8Ty, 206)->getSExtValue()); in TEST() 105 EXPECT_EQ(-50, ConstantInt::getSigned(Int8Ty, -50)->getSExtValue()); in TEST() 109 EXPECT_EQ(0x3b, ConstantInt::get(Int8Ty, 0x13b)->getSExtValue()); in TEST()
|
/external/llvm/lib/Transforms/Utils/ |
D | LowerSwitch.cpp | 216 UpperBound->getSExtValue() - LowerBound->getSExtValue(); in switchConvert() 247 int64_t GapLow = LHS.back().High->getSExtValue() + 1; in switchConvert() 248 int64_t GapHigh = NewLowerBound->getSExtValue() - 1; in switchConvert() 256 dbgs() << LowerBound->getSExtValue(); in switchConvert() 260 dbgs() << " - " << NewUpperBound->getSExtValue() << "\n"; in switchConvert() 262 dbgs() << NewLowerBound->getSExtValue() << " - "; in switchConvert() 264 dbgs() << UpperBound->getSExtValue() << "\n"; in switchConvert() 340 uint64_t Range = Leaf.High->getSExtValue() - in newLeafBlock() 341 Leaf.Low->getSExtValue(); in newLeafBlock() 369 int64_t nextValue = J->Low->getSExtValue(); in Clusterify() [all …]
|
/external/swiftshader/third_party/LLVM/lib/Target/XCore/ |
D | XCoreISelDAGToDAG.cpp | 102 && (CN->getSExtValue() % 4 == 0 && CN->getSExtValue() >= 0)) { in SelectADDRspii() 105 Offset = CurDAG->getTargetConstant(CN->getSExtValue(), MVT::i32); in SelectADDRspii() 123 && (CN->getSExtValue() % 4 == 0)) { in SelectADDRdpii() 126 Offset = CurDAG->getTargetConstant(CN->getSExtValue(), MVT::i32); in SelectADDRdpii() 144 && (CN->getSExtValue() % 4 == 0)) { in SelectADDRcpii() 147 Offset = CurDAG->getTargetConstant(CN->getSExtValue(), MVT::i32); in SelectADDRcpii()
|
/external/llvm/lib/Target/BPF/ |
D | BPFISelDAGToDAG.cpp | 74 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/ |
D | PPCTargetTransformInfo.cpp | 59 if (isInt<16>(Imm.getSExtValue())) in getIntImmCost() 62 if (isInt<32>(Imm.getSExtValue())) { in getIntImmCost() 92 if ((Idx == 1) && Imm.getBitWidth() <= 64 && isInt<16>(Imm.getSExtValue())) in getIntImmCost() 96 if ((Idx < 2) || (Imm.getBitWidth() <= 64 && isInt<64>(Imm.getSExtValue()))) in getIntImmCost() 101 if ((Idx < 4) || (Imm.getBitWidth() <= 64 && isInt<64>(Imm.getSExtValue()))) in getIntImmCost() 166 if (isInt<16>(Imm.getSExtValue())) in getIntImmCost()
|
/external/swiftshader/third_party/LLVM/unittests/ADT/ |
D | APIntTest.cpp | 30 EXPECT_EQ(-3, Minus3.getSExtValue()); in TEST() 39 EXPECT_EQ(-1, Minus1.getSExtValue()); in TEST() 52 EXPECT_EQ(-2, i33minus2.getSExtValue()); in TEST() 93 EXPECT_EQ(0u, zero.getSExtValue()); in TEST() 103 EXPECT_EQ(1, one.getSExtValue()); in TEST() 114 EXPECT_EQ(0, neg_two.getSExtValue()); in TEST() 115 EXPECT_EQ(-1, neg_one.getSExtValue()); in TEST() 118 EXPECT_EQ(-1, one.getSExtValue()); in TEST() 121 EXPECT_EQ(0, two.getSExtValue()); in TEST()
|
/external/llvm/unittests/ADT/ |
D | APSIntTest.cpp | 48 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()
|
D | APIntTest.cpp | 38 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/swiftshader/third_party/LLVM/lib/Target/Blackfin/ |
D | BlackfinISelDAGToDAG.cpp | 109 (CN->getSExtValue() % 4 == 0 && CN->getSExtValue() >= 0)) { in SelectADDRspii() 112 Offset = CurDAG->getTargetConstant(CN->getSExtValue(), MVT::i32); in SelectADDRspii()
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/ |
D | AddrModeMatcher.cpp | 104 TestAddrMode.BaseOffs += CI->getSExtValue()*TestAddrMode.Scale; in MatchScaledValue() 209 int64_t Scale = RHS->getSExtValue(); in MatchOperationAddr() 233 ConstantOffset += CI->getSExtValue()*TypeSize; in MatchOperationAddr() 313 AddrMode.BaseOffs += CI->getSExtValue(); in MatchAddr() 316 AddrMode.BaseOffs -= CI->getSExtValue(); in MatchAddr()
|
D | LowerSwitch.cpp | 221 uint64_t Range = cast<ConstantInt>(Leaf.High)->getSExtValue() - in newLeafBlock() 222 cast<ConstantInt>(Leaf.Low)->getSExtValue(); in newLeafBlock() 249 int64_t nextValue = cast<ConstantInt>(J->Low)->getSExtValue(); in Clusterify() 250 int64_t currentValue = cast<ConstantInt>(I->High)->getSExtValue(); in Clusterify()
|
/external/llvm/unittests/IR/ |
D | ConstantsTest.cpp | 109 EXPECT_EQ(100, ConstantInt::get(Int8Ty, 100, false)->getSExtValue()); in TEST() 110 EXPECT_EQ(100, ConstantInt::get(Int8Ty, 100, true)->getSExtValue()); in TEST() 111 EXPECT_EQ(100, ConstantInt::getSigned(Int8Ty, 100)->getSExtValue()); in TEST() 112 EXPECT_EQ(-50, ConstantInt::get(Int8Ty, 206)->getSExtValue()); in TEST() 113 EXPECT_EQ(-50, ConstantInt::getSigned(Int8Ty, -50)->getSExtValue()); in TEST() 117 EXPECT_EQ(0x3b, ConstantInt::get(Int8Ty, 0x13b)->getSExtValue()); in TEST()
|
/external/llvm/lib/Target/XCore/ |
D | XCoreISelDAGToDAG.cpp | 99 && (CN->getSExtValue() % 4 == 0 && CN->getSExtValue() >= 0)) { in SelectADDRspii() 102 Offset = CurDAG->getTargetConstant(CN->getSExtValue(), SDLoc(Addr), in SelectADDRspii()
|
/external/swiftshader/third_party/LLVM/lib/Target/CellSPU/ |
D | SPUISelDAGToDAG.cpp | 45 return isInt<10>(CN->getSExtValue()); in isI32IntS10Immediate() 52 return isUInt<10>(CN->getSExtValue()); in isI32IntU10Immediate() 59 return isInt<10>(CN->getSExtValue()); in isI16IntS10Immediate() 327 val = dyn_cast<ConstantSDNode>(N.getNode())->getSExtValue(); in SelectAFormAddr() 432 int32_t offset = int32_t(CN->getSExtValue()); in DFormAddressPredicate() 453 int32_t offset = int32_t(CN->getSExtValue()); in DFormAddressPredicate() 489 offset = int32_t(CN->getSExtValue()); in DFormAddressPredicate() 493 offset = int32_t(CN->getSExtValue()); in DFormAddressPredicate() 875 Op1 = CurDAG->getTargetConstant(CN->getSExtValue(), VT); in Select() 876 if (isInt<10>(CN->getSExtValue())) { in Select()
|
/external/llvm/lib/Target/ARM/MCTargetDesc/ |
D | ARMAddressingModes.h | 681 int32_t Exp = (Imm.lshr(10).getSExtValue() & 0x1f) - 15; // -14 to 15 in getFP16Imm() 707 int32_t Exp = (Imm.lshr(23).getSExtValue() & 0xff) - 127; // -126 to 127 in getFP32Imm() 735 int64_t Exp = (Imm.lshr(52).getSExtValue() & 0x7ff) - 1023; // -1022 to 1023 in getFP64Imm()
|
/external/swiftshader/third_party/LLVM/lib/Target/Sparc/ |
D | SparcISelDAGToDAG.cpp | 86 if (isInt<13>(CN->getSExtValue())) { in SelectADDRri() 122 if (isInt<13>(CN->getSExtValue())) in SelectADDRrr()
|
/external/swiftshader/third_party/LLVM/lib/Target/X86/ |
D | X86ISelDAGToDAG.cpp | 176 return isInt<8>(cast<ConstantSDNode>(N)->getSExtValue()); in immSext8() 595 if (C->getSExtValue() == 0 && AM.Segment.getNode() == 0 && in MatchLoadInAddress() 749 if (!FoldOffsetIntoAddress(Cst->getSExtValue(), AM)) in MatchAddressRecursively() 757 uint64_t Val = cast<ConstantSDNode>(N)->getSExtValue(); in MatchAddressRecursively() 806 uint64_t Disp = AddVal->getSExtValue() << Val; in MatchAddressRecursively() 845 uint64_t Disp = AddVal->getSExtValue() * CN->getZExtValue(); in MatchAddressRecursively() 974 !FoldOffsetIntoAddress(CN->getSExtValue(), AM)) in MatchAddressRecursively() 1365 if (CN && CN->getSExtValue() == (int32_t)CN->getSExtValue()) { in SelectAtomicLoadAdd() 1367 int64_t CNVal = CN->getSExtValue(); in SelectAtomicLoadAdd() 1593 if (CN && (int32_t)CN->getSExtValue() == CN->getSExtValue()) { in SelectAtomicLoadArith() [all …]
|
/external/llvm/lib/Transforms/Scalar/ |
D | LoopDataPrefetch.cpp | 146 unsigned AbsStride = std::abs(ConstStride->getAPInt().getSExtValue()); in isStrideLargeEnough() 260 int64_t PD = std::abs(ConstPtrDiff->getValue()->getSExtValue()); in runOnLoop()
|
/external/swiftshader/third_party/LLVM/lib/Target/ARM/MCTargetDesc/ |
D | ARMAddressingModes.h | 612 int32_t Exp = (Imm.lshr(23).getSExtValue() & 0xff) - 127; // -126 to 127 in getFP32Imm() 640 int64_t Exp = (Imm.lshr(52).getSExtValue() & 0x7ff) - 1023; // -1022 to 1023 in getFP64Imm()
|