/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Hexagon/ |
D | HexagonDepOperands.td | 15 def s4_0ImmPred : PatLeaf<(i32 imm), [{ return isShiftedInt<4, 0>(N->getSExtValue());}]>; 18 def s29_3ImmPred : PatLeaf<(i32 imm), [{ return isShiftedInt<32, 3>(N->getSExtValue());}]>; 21 def s10_6ImmPred : PatLeaf<(i32 imm), [{ return isShiftedInt<10, 6>(N->getSExtValue());}]>; 24 def u6_0ImmPred : PatLeaf<(i32 imm), [{ return isShiftedUInt<6, 0>(N->getSExtValue());}]>; 27 def a30_2ImmPred : PatLeaf<(i32 imm), [{ return isShiftedInt<32, 2>(N->getSExtValue());}]>; 30 def u29_3ImmPred : PatLeaf<(i32 imm), [{ return isShiftedUInt<32, 3>(N->getSExtValue());}]>; 33 def s8_0ImmPred : PatLeaf<(i32 imm), [{ return isShiftedInt<8, 0>(N->getSExtValue());}]>; 36 def u32_0ImmPred : PatLeaf<(i32 imm), [{ return isShiftedUInt<32, 0>(N->getSExtValue());}]>; 39 def u4_2ImmPred : PatLeaf<(i32 imm), [{ return isShiftedUInt<4, 2>(N->getSExtValue());}]>; 42 def u3_0ImmPred : PatLeaf<(i32 imm), [{ return isShiftedUInt<3, 0>(N->getSExtValue());}]>; [all …]
|
D | HexagonOperands.td | 14 def s8_0Imm64Pred : PatLeaf<(i64 imm), [{ return isInt<8>(N->getSExtValue()); }]>; 20 int64_t v = (int64_t)N->getSExtValue(); 24 int64_t v = (int64_t)N->getSExtValue();
|
/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 …]
|
/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()
|
/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-7.0/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()
|
D | LanaiTargetTransformInfo.h | 57 if (isInt<16>(Imm.getSExtValue())) in getIntImmCost() 61 if (isInt<32>(Imm.getSExtValue())) { in getIntImmCost() 62 if ((Imm.getSExtValue() & 0xFFFF) == 0) in getIntImmCost()
|
/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/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/ |
D | LowerSwitch.cpp | 236 UpperBound->getSExtValue() - LowerBound->getSExtValue(); in switchConvert() 266 int64_t GapLow = LHS.back().High->getSExtValue() + 1; in switchConvert() 267 int64_t GapHigh = NewLowerBound->getSExtValue() - 1; in switchConvert() 274 dbgs() << LowerBound->getSExtValue(); in switchConvert() 276 << NewUpperBound->getSExtValue() << "\n"; in switchConvert() 278 dbgs() << NewLowerBound->getSExtValue() << " - "; if (UpperBound) { in switchConvert() 279 dbgs() << UpperBound->getSExtValue() << "\n"; in switchConvert() 352 uint64_t Range = Leaf.High->getSExtValue() - in newLeafBlock() 353 Leaf.Low->getSExtValue(); in newLeafBlock() 381 int64_t nextValue = J->Low->getSExtValue(); in Clusterify() [all …]
|
/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-7.0/llvm/lib/CodeGen/SelectionDAG/ |
D | SelectionDAGAddressAnalysis.cpp | 91 Offset += C->getSExtValue(); in match() 96 Offset -= C->getSExtValue(); in match() 108 Offset += C->getSExtValue(); in match() 115 Offset += C->getSExtValue(); in match() 126 auto Off = C->getSExtValue(); in match() 169 Offset += cast<ConstantSDNode>(Index->getOperand(1))->getSExtValue(); in match()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/ARC/ |
D | ARCISelDAGToDAG.cpp | 107 int32_t RHSC = RHS->getSExtValue(); in SelectAddrModeS9() 136 int32_t RHSC = RHS->getSExtValue(); in SelectAddrModeFar() 159 (CN->getSExtValue() % 4 == 0 && CN->getSExtValue() >= 0)) { in SelectFrameADDR_ri() 163 CurDAG->getTargetConstant(CN->getSExtValue(), SDLoc(Addr), MVT::i32); in SelectFrameADDR_ri()
|
/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/swiftshader/third_party/llvm-7.0/llvm/lib/Target/PowerPC/ |
D | PPCTargetTransformInfo.cpp | 64 if (isInt<16>(Imm.getSExtValue())) in getIntImmCost() 67 if (isInt<32>(Imm.getSExtValue())) { in getIntImmCost() 97 if ((Idx == 1) && Imm.getBitWidth() <= 64 && isInt<16>(Imm.getSExtValue())) in getIntImmCost() 101 if ((Idx < 2) || (Imm.getBitWidth() <= 64 && isInt<64>(Imm.getSExtValue()))) in getIntImmCost() 106 if ((Idx < 4) || (Imm.getBitWidth() <= 64 && isInt<64>(Imm.getSExtValue()))) in getIntImmCost() 172 if (isInt<16>(Imm.getSExtValue())) in getIntImmCost()
|
/external/swiftshader/third_party/llvm-7.0/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 | 334 return isInt<8>(N->getSExtValue()); 348 return isInt<16>(N->getSExtValue()); 352 return isInt<16>(-N->getSExtValue()); 369 return isInt<32>(-N->getSExtValue()); 436 return isInt<8>(N->getSExtValue()); 440 return isUInt<8>(N->getSExtValue()); 444 return isInt<16>(N->getSExtValue()); 448 return isInt<16>(-N->getSExtValue()); 456 return isInt<32>(N->getSExtValue()); 460 return isInt<32>(-N->getSExtValue()); [all …]
|
/external/swiftshader/third_party/llvm-7.0/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 | 43 EXPECT_EQ(-3, Minus3.getSExtValue()); in TEST() 52 EXPECT_EQ(-1, Minus1.getSExtValue()); in TEST() 62 EXPECT_EQ(-2, i33minus2.getSExtValue()); in TEST() 73 EXPECT_EQ(static_cast<int64_t>(1 << 15), i61.getSExtValue()); in TEST() 82 EXPECT_EQ(static_cast<int64_t>((1 << 19) - (1 << 8)), i61.getSExtValue()); in TEST() 129 EXPECT_EQ(0u, zero.getSExtValue()); in TEST() 139 EXPECT_EQ(1, one.getSExtValue()); in TEST() 149 EXPECT_EQ(2, s128.getSExtValue()); in TEST() 160 EXPECT_EQ(2, s128.getSExtValue()); in TEST() 183 s128.getSExtValue()); in TEST() [all …]
|
/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()
|
/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()
|