Home
last modified time | relevance | path

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

12345678910>>...12

/llvm-project-15.0.7/llvm/lib/Target/Hexagon/
H A DHexagonDepOperands.td18 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 DHexagonOperands.td13 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 DHexagonOptimizeSZextends.cpp109 if (!(C && C->getSExtValue() == 16)) in runOnFunction()
120 if (!(C && C->getSExtValue() == 16)) in runOnFunction()
H A DHexagonIntrinsics.td112 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 DLanaiISelDAGToDAG.cpp96 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 DLanaiTargetTransformInfo.h67 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 DLowerSwitch.cpp212 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 DARCISelDAGToDAG.cpp106 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 DSelectionDAGAddressAnalysis.cpp206 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 DStaticValueUtils.cpp29 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 DAArch64GlobalISelUtils.cpp30 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 DVEISelDAGToDAG.cpp103 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 DAPIntTest.cpp43 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 DAPSIntTest.cpp47 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 DConstraintElimination.cpp189 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 DTosaCanonicalizations.cpp101 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 DInferTypeOpInterface.cpp55 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 DPluginsTest.cpp121 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 DNativeSymbolEnumerator.cpp84 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 DSystemZOperands.td365 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 DSystemZTargetTransformInfo.cpp87 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 DViewLikeInterface.td209 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 DXCoreISelDAGToDAG.cpp99 && (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 DBPFISelDAGToDAG.cpp116 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 DUndefResultChecker.cpp145 OS << '\'' << I->getSExtValue() << "\', which is"; in checkPostStmt()
163 << LHS->getSExtValue() << "\' by \'" << RHS->getZExtValue() in checkPostStmt()

12345678910>>...12