Home
last modified time | relevance | path

Searched refs:getSingleElement (Results 1 – 9 of 9) sorted by relevance

/llvm-project-15.0.7/llvm/lib/IR/
H A DConstantRange.cpp210 } else if (auto *OnlyElt = getSingleElement()) { in getEquivalentICmp()
977 const APInt *IntMinIsPoison = Ops[1].getSingleElement(); in intrinsic()
1327 if (const APInt *RHSInt = RHS.getSingleElement()) { in urem()
1332 if (const APInt *LHSInt = getSingleElement()) in urem()
1349 if (const APInt *RHSInt = RHS.getSingleElement()) { in srem()
1354 if (const APInt *LHSInt = getSingleElement()) in srem()
1431 return {*getSingleElement() ^ *Other.getSingleElement()}; in binaryXor()
1434 if (Other.isSingleElement() && Other.getSingleElement()->isAllOnes()) in binaryXor()
1436 if (isSingleElement() && getSingleElement()->isAllOnes()) in binaryXor()
1449 if (const APInt *RHS = Other.getSingleElement()) { in shl()
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DConstantRange.h246 const APInt *getSingleElement() const { in getSingleElement() function
261 bool isSingleElement() const { return getSingleElement() != nullptr; } in isSingleElement()
/llvm-project-15.0.7/llvm/unittests/IR/
H A DConstantRangeTest.cpp320 EXPECT_EQ(Full.getSingleElement(), static_cast<APInt *>(nullptr)); in TEST_F()
321 EXPECT_EQ(Empty.getSingleElement(), static_cast<APInt *>(nullptr)); in TEST_F()
325 EXPECT_EQ(*One.getSingleElement(), APInt(16, 0xa)); in TEST_F()
326 EXPECT_EQ(Some.getSingleElement(), static_cast<APInt *>(nullptr)); in TEST_F()
327 EXPECT_EQ(Wrap.getSingleElement(), static_cast<APInt *>(nullptr)); in TEST_F()
1566 NSWForAllValues.getSingleElement()->isMinValue()); in TEST()
1572 NSWForAllValues.getSingleElement()->isMaxValue()); in TEST()
1578 NUWForAllValues.getSingleElement()->isMinValue()); in TEST()
1584 NUWForAllValues.getSingleElement()->isMaxValue()); in TEST()
2465 EXPECT_EQ(*R16.binaryOr(R16).getSingleElement(), APInt(8, 16)); in TEST_F()
[all …]
/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A DValueLattice.h282 return *getConstantRange().getSingleElement(); in asConstantInteger()
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DSCCPSolver.cpp519 if (CR.getSingleElement()) in getConstant()
520 return ConstantInt::get(Ctx, *CR.getSingleElement()); in getConstant()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DLazyValueInfo.cpp1604 if (const APInt *SingleVal = CR.getSingleElement()) in getConstant()
1641 if (const APInt *SingleVal = CR.getSingleElement()) in getConstantOnEdge()
/llvm-project-15.0.7/llvm/unittests/Analysis/
H A DValueTrackingTest.cpp2114 EXPECT_EQ(99, *CR.getSingleElement()); in TEST_F()
/llvm-project-15.0.7/llvm/include/llvm/Transforms/IPO/
H A DAttributor.h4317 if (auto *C = RangeV.getSingleElement()) {
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineCompares.cpp1528 if (const APInt *EqC = Intersection.getSingleElement()) in foldICmpWithDominatingICmp()
1530 if (const APInt *NeC = Difference.getSingleElement()) in foldICmpWithDominatingICmp()