Home
last modified time | relevance | path

Searched refs:GCD (Results 1 – 25 of 26) sorted by relevance

12

/llvm-project-15.0.7/cross-project-tests/debuginfo-tests/dexter/feature_tests/commands/penalty/
H A Dexpect_program_state.cpp10 int GCD(int lhs, int rhs) in GCD() function
14 return GCD(rhs, lhs % rhs); in GCD()
19 return GCD(111, 259); in main()
/llvm-project-15.0.7/cross-project-tests/debuginfo-tests/dexter/feature_tests/commands/perfect/
H A Dexpect_program_state.cpp11 int GCD(int lhs, int rhs) in GCD() function
15 return GCD(rhs, lhs % rhs); in GCD()
20 return GCD(111, 259); in main()
/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A DConstraintSystem.h27 uint32_t GCD = 1; variable
48 GCD = APIntOps::GreatestCommonDivisor({32, (uint32_t)A}, {32, GCD}) in addVariableRow()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DConstraintSystem.cpp72 ((-1) * Constraints[LowerR][1] / GCD), M1)) in eliminateUsingFM()
75 (Constraints[UpperR][1] / GCD), M2)) in eliminateUsingFM()
92 GCD = NewGCD; in eliminateUsingFM()
H A DBasicAliasAnalysis.cpp1214 APInt GCD; in aliasGEP() local
1225 GCD = ScaleForGCD.abs(); in aliasGEP()
1227 GCD = APIntOps::GreatestCommonDivisor(GCD, ScaleForGCD.abs()); in aliasGEP()
1252 APInt ModOffset = DecompGEP1.Offset.srem(GCD); in aliasGEP()
1254 ModOffset += GCD; // We want mod, not rem. in aliasGEP()
1256 (GCD - ModOffset).uge(V1Size.getValue())) in aliasGEP()
H A DScalarEvolution.cpp7576 unsigned GCD = std::min(MulZeros, TZ); in createSCEV() local
7577 APInt DivAmt = APInt::getOneBitSet(BitWidth, TZ - GCD); in createSCEV()
7579 MulOps.push_back(getConstant(OpC->getAPInt().lshr(GCD))); in createSCEV()
/llvm-project-15.0.7/libc/src/string/memory_utils/
H A Daddress.h74 constexpr size_t GCD = gcd(ByteOffset, ALIGNMENT); in commonAlign() local
75 if constexpr (is_power2(GCD)) in commonAlign()
76 return GCD; in commonAlign()
/llvm-project-15.0.7/compiler-rt/test/tsan/Darwin/
H A Dworkerthreads.mm39 // CHECK: Thread {{.*}} is a GCD worker thread
41 // CHECK: Thread {{.*}} is a GCD worker thread
/llvm-project-15.0.7/llvm/lib/MCA/
H A DSupport.cpp29 unsigned GCD = GreatestCommonDivisor64(Denominator, RHS.Denominator); in operator +=() local
30 unsigned LCM = (Denominator * RHS.Denominator) / GCD; in operator +=()
/llvm-project-15.0.7/llvm/lib/CodeGen/GlobalISel/
H A DUtils.cpp961 int GCD = greatestCommonDivisor(OrigTy.getNumElements(), in getGCDType() local
963 return LLT::scalarOrVector(ElementCount::getFixed(GCD), OrigElt); in getGCDType()
971 unsigned GCD = greatestCommonDivisor(OrigSize, TargetSize); in getGCDType() local
972 if (GCD == OrigElt.getSizeInBits()) in getGCDType()
977 if (GCD < OrigElt.getSizeInBits()) in getGCDType()
978 return LLT::scalar(GCD); in getGCDType()
979 return LLT::fixed_vector(GCD / OrigElt.getSizeInBits(), OrigElt); in getGCDType()
989 unsigned GCD = greatestCommonDivisor(OrigSize, TargetSize); in getGCDType() local
990 return LLT::scalar(GCD); in getGCDType()
H A DLegalizerHelper.cpp1568 const int GCD = greatestCommonDivisor(SrcSize, WideSize); in widenScalarMergeValues() local
1569 LLT GCDTy = LLT::scalar(GCD); in widenScalarMergeValues()
1579 if (GCD == SrcSize) { in widenScalarMergeValues()
1595 const int PartsPerGCD = WideSize / GCD; in widenScalarMergeValues()
/llvm-project-15.0.7/llvm/test/Analysis/ScalarEvolution/
H A Dtripmultiple_calculation.ll126 ; If there are multiple exits, the result is the GCD of the multiples
/llvm-project-15.0.7/compiler-rt/lib/asan/tests/
H A Dasan_mac_test_helpers.mm81 // Used by the GCD tests to avoid a race between the worker thread reporting a
/llvm-project-15.0.7/mlir/test/Dialect/Affine/
H A Dsimplify-structures.mlir186 // The set below has rational solutions but no integer solutions; GCD test catches it.
210 // 8*d1 here is a multiple of 4, and so can't lie between 9 and 11. GCD
/llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/
H A DLegalizeVectorTypes.cpp4771 unsigned GCD = greatestCommonDivisor(VTNumElts, WidenNumElts); in WidenVecRes_EXTRACT_SUBVECTOR() local
4775 ElementCount::getScalable(GCD)); in WidenVecRes_EXTRACT_SUBVECTOR()
4780 for (; I < VTNumElts / GCD; ++I) in WidenVecRes_EXTRACT_SUBVECTOR()
4783 DAG.getVectorIdxConstant(IdxVal + I * GCD, dl))); in WidenVecRes_EXTRACT_SUBVECTOR()
4784 for (; I < WidenNumElts / GCD; ++I) in WidenVecRes_EXTRACT_SUBVECTOR()
6130 unsigned GCD = greatestCommonDivisor(OrigElts, WideElts); in WidenVecOp_VECREDUCE() local
6132 ElementCount::getScalable(GCD)); in WidenVecOp_VECREDUCE()
6134 for (unsigned Idx = OrigElts; Idx < WideElts; Idx = Idx + GCD) in WidenVecOp_VECREDUCE()
6167 unsigned GCD = greatestCommonDivisor(OrigElts, WideElts); in WidenVecOp_VECREDUCE_SEQ() local
6169 ElementCount::getScalable(GCD)); in WidenVecOp_VECREDUCE_SEQ()
[all …]
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCodeGenModule.cpp3051 const UnnamedGlobalConstantDecl *GCD) { in GetAddrOfUnnamedGlobalConstantDecl() argument
3052 CharUnits Alignment = getContext().getTypeAlignInChars(GCD->getType()); in GetAddrOfUnnamedGlobalConstantDecl()
3055 Entry = &UnnamedGlobalConstantDeclMap[GCD]; in GetAddrOfUnnamedGlobalConstantDecl()
3062 const APValue &V = GCD->getValue(); in GetAddrOfUnnamedGlobalConstantDecl()
3065 Init = Emitter.emitForInitializer(V, GCD->getType().getAddressSpace(), in GetAddrOfUnnamedGlobalConstantDecl()
3066 GCD->getType()); in GetAddrOfUnnamedGlobalConstantDecl()
H A DCGExprConstant.cpp1940 if (auto *GCD = dyn_cast<UnnamedGlobalConstantDecl>(D)) in tryEmitBase() local
1941 return CGM.GetAddrOfUnnamedGlobalConstantDecl(GCD); in tryEmitBase()
H A DCodeGenModule.h925 GetAddrOfUnnamedGlobalConstantDecl(const UnnamedGlobalConstantDecl *GCD);
/llvm-project-15.0.7/mlir/test/IR/
H A Daffine-map.mlir158 // Simplifications for mod using known GCD's of the LHS expr.
/llvm-project-15.0.7/polly/lib/Analysis/
H A DScopInfo.cpp295 auto GCD = GreatestCommonDivisor64(NewElementSize, OldElementSize); in updateElementType() local
296 ElementType = IntegerType::get(ElementType->getContext(), GCD); in updateElementType()
/llvm-project-15.0.7/compiler-rt/
H A DCMakeLists.txt143 "Support interception of libdispatch (GCD). Requires '-fblocks'" OFF)
/llvm-project-15.0.7/polly/lib/External/isl/imath/
H A DChangeLog292 some more GCD tests in tests/lcm.t and tests/gcd.t
/llvm-project-15.0.7/lldb/docs/
H A Dpython_api_enums.rst1221 libdispatch aka Grand Central Dispatch (GCD) queues can be either
/llvm-project-15.0.7/llvm/unittests/ADT/
H A DAPIntTest.cpp2465 TEST(APIntTest, GCD) { in TEST() argument
/llvm-project-15.0.7/clang/lib/AST/
H A DExprConstant.cpp4028 if (auto *GCD = dyn_cast<UnnamedGlobalConstantDecl>(D)) { in findCompleteObject() local
4033 return CompleteObject(LVal.Base, const_cast<APValue *>(&GCD->getValue()), in findCompleteObject()
4034 GCD->getType()); in findCompleteObject()

12