| /llvm-project-15.0.7/llvm/lib/Target/Hexagon/ |
| H A D | HexagonDepOperands.td | 18 defm s6_0ImmPred : ImmOpPred<[{ return isShiftedInt<6, 0>(N->getSExtValue());}]>; 21 defm s32_0ImmPred : ImmOpPred<[{ return isShiftedInt<32, 0>(N->getSExtValue());}]>; 24 defm u10_0ImmPred : ImmOpPred<[{ return isShiftedUInt<10, 0>(N->getSExtValue());}]>; 27 defm u32_0ImmPred : ImmOpPred<[{ return isShiftedUInt<32, 0>(N->getSExtValue());}]>; 30 defm m32_0ImmPred : ImmOpPred<[{ return isShiftedInt<32, 0>(N->getSExtValue());}]>; 33 defm b13_2ImmPred : ImmOpPred<[{ return isShiftedInt<13, 2>(N->getSExtValue());}]>; 54 defm s3_0ImmPred : ImmOpPred<[{ return isShiftedInt<3, 0>(N->getSExtValue());}]>; 57 defm s4_0ImmPred : ImmOpPred<[{ return isShiftedInt<4, 0>(N->getSExtValue());}]>; 60 defm s4_1ImmPred : ImmOpPred<[{ return isShiftedInt<4, 1>(N->getSExtValue());}]>; 63 defm s4_2ImmPred : ImmOpPred<[{ return isShiftedInt<4, 2>(N->getSExtValue());}]>; [all …]
|
| H A D | HexagonOperands.td | 13 def s8_0Imm64Pred : PatLeaf<(i64 imm), [{ return isInt<8>(N->getSExtValue()); }]>; 19 int64_t v = (int64_t)N->getSExtValue(); 23 int64_t v = (int64_t)N->getSExtValue();
|
| H A D | HexagonOptimizeSZextends.cpp | 109 if (!(C && C->getSExtValue() == 16)) in runOnFunction() 120 if (!(C && C->getSExtValue() == 16)) in runOnFunction()
|
| H A D | HexagonIntrinsics.td | 112 int64_t V = N->getSExtValue(); 150 int32_t V = N->getSExtValue(); 155 int32_t V = N->getSExtValue(); 245 int64_t v = (int64_t)(64 - N->getSExtValue()); 250 int64_t v = (int64_t)(128 - N->getSExtValue()); 255 int32_t Imm = N->getSExtValue(); 260 int32_t Imm = N->getSExtValue();
|
| /llvm-project-15.0.7/llvm/lib/Target/Lanai/ |
| H A D | LanaiISelDAGToDAG.cpp | 96 return isInt<21>(CN.getSExtValue()) && ((CN.getSExtValue() & 0x3) == 0); in canBeRepresentedAsSls() 108 int32_t Imm = CN->getSExtValue(); in selectAddrSls() 129 if (isInt<16>(CN->getSExtValue())) { in selectAddrRiSpls() 130 int16_t Imm = CN->getSExtValue(); in selectAddrRiSpls() 142 if (isInt<10>(CN->getSExtValue())) { in selectAddrRiSpls() 143 int16_t Imm = CN->getSExtValue(); in selectAddrRiSpls() 173 if ((RiMode && isInt<16>(CN->getSExtValue())) || in selectAddrRiSpls() 174 (!RiMode && isInt<10>(CN->getSExtValue()))) { in selectAddrRiSpls() 185 Offset = CurDAG->getTargetConstant(CN->getSExtValue(), DL, MVT::i32); in selectAddrRiSpls() 228 if (isInt<16>(CN->getSExtValue())) in selectAddrRr()
|
| H A D | LanaiTargetTransformInfo.h | 67 if (isInt<16>(Imm.getSExtValue())) in getIntImmCost() 71 if (isInt<32>(Imm.getSExtValue())) { in getIntImmCost() 72 if ((Imm.getSExtValue() & 0xFFFF) == 0) in getIntImmCost()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | LowerSwitch.cpp | 212 uint64_t Range = Leaf.High->getSExtValue() - Leaf.Low->getSExtValue(); in NewLeafBlock() 245 NumMergedCases = UpperBound->getSExtValue() - LowerBound->getSExtValue(); in SwitchConvert() 276 int64_t GapLow = LHS.back().High->getSExtValue() + 1; in SwitchConvert() 277 int64_t GapHigh = NewLowerBound->getSExtValue() - 1; in SwitchConvert() 284 << NewUpperBound->getSExtValue() << "]\n" in SwitchConvert() 285 << "RHS Bounds ==> [" << NewLowerBound->getSExtValue() in SwitchConvert() 286 << ", " << UpperBound->getSExtValue() << "]\n"); in SwitchConvert() 331 int64_t nextValue = J->Low->getSExtValue(); in Clusterify() 332 int64_t currentValue = I->High->getSExtValue(); in Clusterify() 439 int64_t Low = I.Low->getSExtValue(); in ProcessSwitchInst() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/ARC/ |
| H A D | ARCISelDAGToDAG.cpp | 106 int32_t RHSC = RHS->getSExtValue(); in SelectAddrModeS9() 135 int32_t RHSC = RHS->getSExtValue(); in SelectAddrModeFar() 158 (CN->getSExtValue() % 4 == 0 && CN->getSExtValue() >= 0)) { in SelectFrameADDR_ri() 162 CurDAG->getTargetConstant(CN->getSExtValue(), SDLoc(Addr), MVT::i32); in SelectFrameADDR_ri()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | SelectionDAGAddressAnalysis.cpp | 206 Offset += C->getSExtValue(); in matchLSNode() 211 Offset -= C->getSExtValue(); in matchLSNode() 223 Offset += C->getSExtValue(); in matchLSNode() 230 Offset += C->getSExtValue(); in matchLSNode() 241 auto Off = C->getSExtValue(); in matchLSNode() 284 Offset += cast<ConstantSDNode>(Index->getOperand(1))->getSExtValue(); in matchLSNode()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Utils/ |
| H A D | StaticValueUtils.cpp | 29 staticVec.push_back(apInt.getSExtValue()); in dispatchIndexOpFoldResult() 83 return intVal.getSExtValue(); in getConstantIntValue() 89 return intAttr.getValue().getSExtValue(); in getConstantIntValue()
|
| /llvm-project-15.0.7/llvm/lib/Target/AArch64/GISel/ |
| H A D | AArch64GlobalISelUtils.cpp | 30 return RegOrConstant(ValAndVReg->Value.getSExtValue()); in getAArch64VectorSplat() 73 if (!Zero || Zero->Value.getSExtValue() != 0) in tryEmitBZero() 84 if (Size->Value.getSExtValue() <= 256) in tryEmitBZero()
|
| /llvm-project-15.0.7/llvm/lib/Target/VE/ |
| H A D | VEISelDAGToDAG.cpp | 103 return N->getSExtValue(); in getImmVal() 232 if (isInt<32>(CN->getSExtValue())) { in selectADDRzii() 263 if (isInt<32>(CN->getSExtValue())) { in selectADDRzi() 315 if (isInt<32>(CN->getSExtValue())) { in matchADDRri() 355 bool BCTrueMask = (BConst->getSExtValue() != 0); in Select()
|
| /llvm-project-15.0.7/llvm/unittests/ADT/ |
| H A D | APIntTest.cpp | 43 EXPECT_EQ(-3, Minus3.getSExtValue()); in TEST() 52 EXPECT_EQ(-1, Minus1.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() 194 EXPECT_EQ(15, s256.getSExtValue()); in TEST() 228 EXPECT_EQ(-1, one.getSExtValue()); in TEST() 231 EXPECT_EQ(0, two.getSExtValue()); in TEST() [all …]
|
| H A D | APSIntTest.cpp | 47 EXPECT_EQ(7, APSInt::get(7).getSExtValue()); in TEST() 50 EXPECT_EQ(-7, APSInt::get(-7).getSExtValue()); in TEST() 58 EXPECT_EQ(7, APSInt::getUnsigned(7).getSExtValue()); in TEST() 61 EXPECT_EQ(-7, APSInt::getUnsigned(-7).getSExtValue()); in TEST()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Scalar/ |
| H A D | ConstraintElimination.cpp | 189 return {{CI->getSExtValue(), nullptr}}; in decompose() 212 {std::pow(int64_t(2), CI->getSExtValue()), Op1}}; in decompose() 215 return {{CI->getSExtValue(), nullptr}, in decompose() 223 return {{CI->getSExtValue(), nullptr}, {1, GEP->getPointerOperand()}}; in decompose() 231 {std::pow(int64_t(2), CI->getSExtValue()), Op0}}; in decompose() 235 Result = {{CI->getSExtValue(), nullptr}, in decompose() 262 ConstantInt::get(Op0->getType(), CI->getSExtValue() * -1)); in decompose() 263 return {{CI->getSExtValue(), nullptr}, {1, Op0}}; in decompose() 269 return {{-1 * CI->getSExtValue(), nullptr}, {1, Op0}}; in decompose()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Tosa/IR/ |
| H A D | TosaCanonicalizations.cpp | 101 return val.cast<IntegerAttr>().getValue().getSExtValue(); in matchAndRewrite() 145 [](const APInt &val) { return val.getSExtValue(); })); in matchAndRewrite() 384 .getSExtValue(); in matchAndRewrite() 387 .getSExtValue(); in matchAndRewrite() 519 allOnes = allOnes && val.cast<IntegerAttr>().getValue().getSExtValue() == 1; in fold() 539 [](const APInt &val) { return val.getSExtValue(); })); in fold()
|
| /llvm-project-15.0.7/mlir/lib/Interfaces/ |
| H A D | InferTypeOpInterface.cpp | 55 res.push_back(it.getSExtValue()); in getDims() 75 .getSExtValue(); in getDimSize() 98 if (ShapedType::isDynamic(index.getSExtValue())) in hasStaticShape()
|
| /llvm-project-15.0.7/llvm/unittests/Passes/ |
| H A D | PluginsTest.cpp | 121 ASSERT_EQ(CI->getSExtValue(), 7); in TEST() 137 ASSERT_EQ(CI->getSExtValue(), 28); in TEST()
|
| /llvm-project-15.0.7/llvm/lib/DebugInfo/PDB/Native/ |
| H A D | NativeSymbolEnumerator.cpp | 84 int64_t N = Record.Value.getSExtValue(); in getValue() 123 return Variant{Record.Value.getSExtValue()}; in getValue()
|
| /llvm-project-15.0.7/llvm/lib/Target/SystemZ/ |
| H A D | SystemZOperands.td | 365 return isInt<8>(N->getSExtValue()); 379 return isInt<16>(N->getSExtValue()); 383 return isInt<16>(-N->getSExtValue()); 400 return isInt<32>(-N->getSExtValue()); 476 return isInt<8>(N->getSExtValue()); 480 return isUInt<8>(N->getSExtValue()); 484 return isInt<16>(N->getSExtValue()); 488 return isInt<16>(-N->getSExtValue()); 496 return isInt<32>(N->getSExtValue()); 500 return isInt<32>(-N->getSExtValue()); [all …]
|
| H A D | SystemZTargetTransformInfo.cpp | 87 if (isInt<32>(Imm.getSExtValue())) in getIntImmCost() 133 if (isInt<16>(Imm.getSExtValue())) in getIntImmCostInst() 140 if (isInt<32>(Imm.getSExtValue())) in getIntImmCostInst() 154 if (isUInt<32>(-Imm.getSExtValue())) in getIntImmCostInst() 161 if (isInt<32>(Imm.getSExtValue())) in getIntImmCostInst() 248 if (isUInt<32>(-Imm.getSExtValue())) in getIntImmCostIntrin() 256 if (isInt<32>(Imm.getSExtValue())) in getIntImmCostIntrin() 261 if ((Idx < 2) || (Imm.getBitWidth() <= 64 && isInt<64>(Imm.getSExtValue()))) in getIntImmCostIntrin() 266 if ((Idx < 4) || (Imm.getBitWidth() <= 64 && isInt<64>(Imm.getSExtValue()))) in getIntImmCostIntrin()
|
| /llvm-project-15.0.7/mlir/include/mlir/Interfaces/ |
| H A D | ViewLikeInterface.td | 209 return ::mlir::ShapedType::isDynamicStrideOrOffset(v.getSExtValue()); 223 return ::mlir::ShapedType::isDynamic(v.getSExtValue()); 237 return ::mlir::ShapedType::isDynamicStrideOrOffset(v.getSExtValue()); 253 return v.getSExtValue(); 268 return v.getSExtValue(); 283 return v.getSExtValue();
|
| /llvm-project-15.0.7/llvm/lib/Target/XCore/ |
| H A D | XCoreISelDAGToDAG.cpp | 99 && (CN->getSExtValue() % 4 == 0 && CN->getSExtValue() >= 0)) { in SelectADDRspii() 102 Offset = CurDAG->getTargetConstant(CN->getSExtValue(), SDLoc(Addr), in SelectADDRspii()
|
| /llvm-project-15.0.7/llvm/lib/Target/BPF/ |
| H A D | BPFISelDAGToDAG.cpp | 116 if (isInt<16>(CN->getSExtValue())) { in SelectAddr() 123 Offset = CurDAG->getTargetConstant(CN->getSExtValue(), DL, MVT::i64); in SelectAddr() 143 if (isInt<16>(CN->getSExtValue())) { in SelectFIAddr() 150 Offset = CurDAG->getTargetConstant(CN->getSExtValue(), DL, MVT::i64); in SelectFIAddr()
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | UndefResultChecker.cpp | 145 OS << '\'' << I->getSExtValue() << "\', which is"; in checkPostStmt() 163 << LHS->getSExtValue() << "\' by \'" << RHS->getZExtValue() in checkPostStmt()
|