reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
168 return *getConstantRange().getSingleElement();
include/llvm/IR/ConstantRange.h 222 bool isSingleElement() const { return getSingleElement() != nullptr; }
lib/Analysis/LazyValueInfo.cpp1708 if (const APInt *SingleVal = CR.getSingleElement()) 1745 if (const APInt *SingleVal = CR.getSingleElement())lib/IR/ConstantRange.cpp
157 } else if (auto *OnlyElt = getSingleElement()) {
lib/Transforms/InstCombine/InstCombineCompares.cpp1518 if (const APInt *EqC = Intersection.getSingleElement()) 1520 if (const APInt *NeC = Difference.getSingleElement())unittests/IR/ConstantRangeTest.cpp
211 EXPECT_EQ(Full.getSingleElement(), static_cast<APInt *>(nullptr)); 212 EXPECT_EQ(Empty.getSingleElement(), static_cast<APInt *>(nullptr)); 216 EXPECT_EQ(*One.getSingleElement(), APInt(16, 0xa)); 217 EXPECT_EQ(Some.getSingleElement(), static_cast<APInt *>(nullptr)); 218 EXPECT_EQ(Wrap.getSingleElement(), static_cast<APInt *>(nullptr)); 224 EXPECT_EQ(*OneInverse.getSingleMissingElement(), *One.getSingleElement()); 1441 NSWForAllValues.getSingleElement()->isMinValue()); 1447 NSWForAllValues.getSingleElement()->isMaxValue()); 1453 NUWForAllValues.getSingleElement()->isMinValue()); 1459 NUWForAllValues.getSingleElement()->isMaxValue());