reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

include/llvm/ADT/APInt.h
 2142 APInt GreatestCommonDivisor(APInt A, APInt B);

References

lib/Analysis/DependenceAnalysis.cpp
 2350     RunningGCD = APIntOps::GreatestCommonDivisor(RunningGCD, ConstCoeff.abs());
 2369     RunningGCD = APIntOps::GreatestCommonDivisor(RunningGCD, ConstCoeff.abs());
 2393         ExtraGCD = APIntOps::GreatestCommonDivisor(ExtraGCD,
 2406   RunningGCD = APIntOps::GreatestCommonDivisor(RunningGCD, ExtraGCD);
 2450         RunningGCD = APIntOps::GreatestCommonDivisor(RunningGCD, ConstCoeff.abs());
 2467         RunningGCD = APIntOps::GreatestCommonDivisor(RunningGCD, ConstCoeff.abs());
 2480     RunningGCD = APIntOps::GreatestCommonDivisor(RunningGCD, ConstCoeff.abs());
lib/Analysis/ScalarEvolution.cpp
 3330   return APIntOps::GreatestCommonDivisor(std::move(A), std::move(B));
unittests/ADT/APIntTest.cpp
 2311     EXPECT_EQ(GreatestCommonDivisor(Zero, Zero), Zero);
 2312     EXPECT_EQ(GreatestCommonDivisor(Zero, One), One);
 2313     EXPECT_EQ(GreatestCommonDivisor(One, Zero), One);
 2314     EXPECT_EQ(GreatestCommonDivisor(One, One), One);
 2318       EXPECT_EQ(GreatestCommonDivisor(Zero, Two), Two);
 2319       EXPECT_EQ(GreatestCommonDivisor(One, Two), One);
 2320       EXPECT_EQ(GreatestCommonDivisor(Two, Two), Two);
 2325       EXPECT_EQ(GreatestCommonDivisor(Zero, Max), Max);
 2326       EXPECT_EQ(GreatestCommonDivisor(One, Max), One);
 2327       EXPECT_EQ(GreatestCommonDivisor(Two, Max), One);
 2328       EXPECT_EQ(GreatestCommonDivisor(Max, Max), Max);
 2331       EXPECT_EQ(GreatestCommonDivisor(MaxOver2, Max), One);
 2333       EXPECT_EQ(GreatestCommonDivisor(MaxOver2, Max - 1), MaxOver2);
 2344   APInt C = GreatestCommonDivisor(A, B);