Home
last modified time | relevance | path

Searched refs:Factor (Results 1 – 25 of 98) sorted by relevance

1234

/openbsd-src/gnu/llvm/llvm/lib/CodeGen/
H A DInterleavedAccessPass.cpp152 static bool isDeInterleaveMaskOfFactor(ArrayRef<int> Mask, unsigned Factor, in isDeInterleaveMaskOfFactor() argument
155 for (Index = 0; Index < Factor; Index++) { in isDeInterleaveMaskOfFactor()
161 if (Mask[i] >= 0 && static_cast<unsigned>(Mask[i]) != Index + i * Factor) in isDeInterleaveMaskOfFactor()
176 static bool isDeInterleaveMask(ArrayRef<int> Mask, unsigned &Factor, in isDeInterleaveMask() argument
183 for (Factor = 2; Factor <= MaxFactor; Factor++) { in isDeInterleaveMask()
185 if (Mask.size() * Factor > NumLoadElements) in isDeInterleaveMask()
187 if (isDeInterleaveMaskOfFactor(Mask, Factor, Index)) in isDeInterleaveMask()
205 static bool isReInterleaveMask(ArrayRef<int> Mask, unsigned &Factor, in isReInterleaveMask() argument
212 for (Factor = 2; Factor <= MaxFactor; Factor++) { in isReInterleaveMask()
213 if (NumElts % Factor) in isReInterleaveMask()
[all …]
H A DInterleavedLoadCombinePass.cpp104 std::list<VectorInfo> &InterleavedLoad, unsigned Factor,
692 bool isInterleaved(unsigned Factor, const DataLayout &DL) const { in isInterleaved()
695 if (!EI[i].Ofs.isProvenEqualTo(EI[0].Ofs + i * Factor * Size)) { in isInterleaved()
744 unsigned Factor = Result.VTy->getNumElements() / VTy->getNumElements(); in computeFromBCI() local
748 if (NewSize * Factor != OldSize) in computeFromBCI()
755 for (unsigned i = 0; i < Result.VTy->getNumElements(); i += Factor) { in computeFromBCI()
756 for (unsigned j = 0; j < Factor; j++) { in computeFromBCI()
758 ElementInfo(Old.EI[i / Factor].Ofs + j * NewSize, in computeFromBCI()
759 j == 0 ? Old.EI[i / Factor].LI : nullptr); in computeFromBCI()
1053 unsigned Factor, const DataLayout &DL) { in findPattern() argument
[all …]
H A DMIRSampleProfile.cpp200 uint32_t Factor = 1; in setBranchProbs() local
202 Factor = BBWeight / MaxWeight + 1; in setBranchProbs()
203 BBWeight /= Factor; in setBranchProbs()
204 LLVM_DEBUG(dbgs() << "Scaling weights by " << Factor << "\n"); in setBranchProbs()
213 EdgeWeight /= Factor; in setBranchProbs()
H A DMachineTraceMetrics.cpp871 unsigned Factor = MTM.SchedModel.getResourceFactor(K); in computeInstrDepths()
874 << PRDepths[K]/Factor << " ops x" << Factor << ")\n"; in computeInstrDepths()
1055 unsigned Factor = MTM.SchedModel.getResourceFactor(K); in computeInstrHeights()
1058 << PRHeights[K]/Factor << " ops x" << Factor << ")\n"; in computeInstrHeights()
/openbsd-src/gnu/llvm/llvm/lib/IR/
H A DPseudoProbe.cpp40 Probe.Factor = in extractProbeFromDiscriminator()
55 Probe.Factor = II->getFactor()->getZExtValue() / in extractProbe()
66 void setProbeDistributionFactor(Instruction &Inst, float Factor) { in setProbeDistributionFactor() argument
67 assert(Factor >= 0 && Factor <= 1 && in setProbeDistributionFactor()
72 if (Factor < 1) in setProbeDistributionFactor()
73 IntFactor *= Factor; in setProbeDistributionFactor()
91 if (Factor < 1) in setProbeDistributionFactor()
92 IntFactor *= Factor; in setProbeDistributionFactor()
/openbsd-src/gnu/llvm/llvm/lib/Target/X86/
H A DX86InterleavedAccess.cpp61 const unsigned Factor; member in __anon06f0e3dd0111::X86InterleavedAccessGroup
114 : Inst(I), Shuffles(Shuffs), Indices(Ind), Factor(F), Subtarget(STarget), in X86InterleavedAccessGroup()
140 if (!Subtarget.hasAVX() || (Factor != 4 && Factor != 3)) in isSupported()
152 if (ShuffleElemSize == 64 && WideInstSize == 1024 && Factor == 4) in isSupported()
155 if (ShuffleElemSize == 8 && isa<StoreInst>(Inst) && Factor == 4 && in isSupported()
160 if (ShuffleElemSize == 8 && Factor == 3 && in isSupported()
728 unsigned NumSubVecElems = ShuffleEltTy->getNumElements() / Factor; in lowerIntoOptimizedSequence()
743 decompose(Inst, Factor, ShuffleTy, DecomposedVectors); in lowerIntoOptimizedSequence()
764 unsigned NumSubVecElems = ShuffleTy->getNumElements() / Factor; in lowerIntoOptimizedSequence()
769 decompose(Shuffles[0], Factor, in lowerIntoOptimizedSequence()
[all …]
H A DX86TargetTransformInfo.h206 unsigned Opcode, Type *VecTy, unsigned Factor, ArrayRef<unsigned> Indices,
210 unsigned Opcode, FixedVectorType *VecTy, unsigned Factor,
/openbsd-src/gnu/llvm/llvm/include/llvm/IR/
H A DPseudoProbe.h51 uint32_t Factor) { in packProbeData()
55 assert(Factor <= 100 && in packProbeData()
57 return (Index << 3) | (Factor << 19) | (Type << 26) | 0x7; in packProbeData()
87 float Factor; member
96 void setProbeDistributionFactor(Instruction &Inst, float Factor);
/openbsd-src/gnu/llvm/llvm/include/llvm/Support/
H A DLowLevelTypeImpl.h203 constexpr LLT divide(int Factor) const { in divide() argument
204 assert(Factor != 1); in divide()
208 assert(getElementCount().isKnownMultipleOf(Factor)); in divide()
209 return scalarOrVector(getElementCount().divideCoefficientBy(Factor), in divide()
213 assert(getScalarSizeInBits() % Factor == 0); in divide()
214 return scalar(getScalarSizeInBits() / Factor); in divide()
220 constexpr LLT multiplyElements(int Factor) const { in multiplyElements() argument
222 return scalarOrVector(getElementCount().multiplyCoefficientBy(Factor), in multiplyElements()
226 return fixed_vector(Factor, *this); in multiplyElements()
/openbsd-src/gnu/llvm/llvm/include/llvm/Transforms/Scalar/
H A DReassociate.h59 struct Factor { struct
63 Factor(Value *Base, unsigned Power) : Base(Base), Power(Power) {} in Factor() argument
118 SmallVectorImpl<reassociate::Factor> &Factors);
121 Value *RemoveFactorFromExpression(Value *V, Value *Factor);
/openbsd-src/gnu/llvm/llvm/include/llvm/Analysis/
H A DVectorUtils.h625 InterleaveGroup(uint32_t Factor, bool Reverse, Align Alignment) in InterleaveGroup() argument
626 : Factor(Factor), Reverse(Reverse), Alignment(Alignment), in InterleaveGroup()
631 Factor = std::abs(Stride); in InterleaveGroup()
632 assert(Factor > 1 && "Invalid interleave factor"); in InterleaveGroup()
639 uint32_t getFactor() const { return Factor; } in getFactor()
666 if (Index >= static_cast<int32_t>(Factor)) in insertMember()
678 if (*MaybeLargestIndex >= static_cast<int64_t>(Factor)) in insertMember()
736 uint32_t Factor; // Interleave Factor.
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Scalar/
H A DReassociate.cpp1145 Value *ReassociatePass::RemoveFactorFromExpression(Value *V, Value *Factor) { in RemoveFactorFromExpression() argument
1163 if (Factors[i].Op == Factor) { in RemoveFactorFromExpression()
1170 if (ConstantInt *FC1 = dyn_cast<ConstantInt>(Factor)) { in RemoveFactorFromExpression()
1177 } else if (ConstantFP *FC1 = dyn_cast<ConstantFP>(Factor)) { in RemoveFactorFromExpression()
1648 Value *Factor = Factors[i]; in OptimizeAdd() local
1649 if (!Duplicates.insert(Factor).second) in OptimizeAdd()
1652 unsigned Occ = ++FactorOccurrences[Factor]; in OptimizeAdd()
1655 MaxOccVal = Factor; in OptimizeAdd()
1661 if (ConstantInt *CI = dyn_cast<ConstantInt>(Factor)) { in OptimizeAdd()
1663 Factor = ConstantInt::get(CI->getContext(), -CI->getValue()); in OptimizeAdd()
[all …]
H A DLoopStrengthReduce.cpp2740 if (const SCEVConstant *Factor = in CollectInterestingTypesAndFactors() local
2743 if (Factor->getAPInt().getMinSignedBits() <= 64 && !Factor->isZero()) in CollectInterestingTypesAndFactors()
2744 Factors.insert(Factor->getAPInt().getSExtValue()); in CollectInterestingTypesAndFactors()
2745 } else if (const SCEVConstant *Factor = in CollectInterestingTypesAndFactors() local
2749 if (Factor->getAPInt().getMinSignedBits() <= 64 && !Factor->isZero()) in CollectInterestingTypesAndFactors()
2750 Factors.insert(Factor->getAPInt().getSExtValue()); in CollectInterestingTypesAndFactors()
3998 for (int64_t Factor : Factors) { in GenerateICmpZeroScales() local
4000 if (!ConstantInt::isValueValidForType(IntTy, Factor)) in GenerateICmpZeroScales()
4003 if (Base.BaseOffset == std::numeric_limits<int64_t>::min() && Factor == -1) in GenerateICmpZeroScales()
4005 int64_t NewBaseOffset = (uint64_t)Base.BaseOffset * Factor; in GenerateICmpZeroScales()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/ProfileData/Coverage/
H A DCoverageMapping.cpp56 void CounterExpressionBuilder::extractTerms(Counter C, int Factor, in extractTerms() argument
62 Terms.emplace_back(C.getCounterID(), Factor); in extractTerms()
66 extractTerms(E.LHS, Factor, Terms); in extractTerms()
68 E.RHS, E.Kind == CounterExpression::Subtract ? -Factor : Factor, Terms); in extractTerms()
92 Prev->Factor += I->Factor; in simplify()
104 if (T.Factor <= 0) in simplify()
106 for (int I = 0; I < T.Factor; ++I) in simplify()
116 if (T.Factor >= 0) in simplify()
118 for (int I = 0; I < -T.Factor; ++I) in simplify()
/openbsd-src/gnu/llvm/llvm/include/llvm/CodeGen/
H A DMachineTraceMetrics.h415 unsigned Factor = SchedModel.getLatencyFactor(); in getCycles() local
416 return (Scaled + Factor - 1) / Factor; in getCycles()
H A DBasicTTIImpl.h1333 unsigned Opcode, Type *VecTy, unsigned Factor, ArrayRef<unsigned> Indices,
1344 assert(Factor > 1 && NumElts % Factor == 0 && "Invalid interleave factor");
1346 unsigned NumSubElts = NumElts / Factor;
1391 UsedInsts.set((Index + Elt * Factor) / NumEltsPerLegalInst);
1399 assert(Indices.size() <= Factor &&
1407 assert(Index < Factor && "Invalid index for interleaved memory op");
1409 DemandedLoadStoreElts.setBit(Index + Elm * Factor);
1457 I8Type, Factor, NumSubElts,
/openbsd-src/gnu/llvm/llvm/lib/Target/SystemZ/
H A DSystemZTargetTransformInfo.cpp1188 unsigned Opcode, Type *VecTy, unsigned Factor, ArrayRef<unsigned> Indices, in getInterleavedMemoryOpCost() argument
1192 return BaseT::getInterleavedMemoryOpCost(Opcode, VecTy, Factor, Indices, in getInterleavedMemoryOpCost()
1199 assert(Factor > 1 && NumElts % Factor == 0 && "Invalid interleave factor"); in getInterleavedMemoryOpCost()
1200 unsigned VF = NumElts / Factor; in getInterleavedMemoryOpCost()
1210 std::vector<BitVector> ValueVecs(Factor, BitVector(NumVectorMemOps, false)); in getInterleavedMemoryOpCost()
1213 unsigned Vec = (Index + Elt * Factor) / NumEltsPerVecReg; in getInterleavedMemoryOpCost()
1232 unsigned NumSrcVecs = std::min(NumEltsPerVecReg, Factor); in getInterleavedMemoryOpCost()
H A DSystemZTargetTransformInfo.h121 unsigned Opcode, Type *VecTy, unsigned Factor, ArrayRef<unsigned> Indices,
/openbsd-src/gnu/llvm/llvm/lib/DebugInfo/LogicalView/Core/
H A DLVLocation.cpp496 bool LVLocation::calculateCoverage(LVLocations *Locations, unsigned &Factor, in calculateCoverage() argument
510 Factor = 100; in calculateCoverage()
524 Factor += (UpperAddress > LowerAddress) ? UpperAddress - LowerAddress in calculateCoverage()
/openbsd-src/gnu/llvm/llvm/lib/Target/Hexagon/
H A DHexagonTargetTransformInfo.cpp259 unsigned Opcode, Type *VecTy, unsigned Factor, ArrayRef<unsigned> Indices, in getInterleavedMemoryOpCost() argument
262 if (Indices.size() != Factor || UseMaskForCond || UseMaskForGaps) in getInterleavedMemoryOpCost()
263 return BaseT::getInterleavedMemoryOpCost(Opcode, VecTy, Factor, Indices, in getInterleavedMemoryOpCost()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/IPO/
H A DSampleProfile.cpp655 uint64_t Samples = R.get() * Probe->Factor; in getProbeWeight()
664 Remark << ore::NV("Factor", Probe->Factor); in getProbeWeight()
673 << format("%0.2f", Probe->Factor) << ")\n"); in getProbeWeight()
1290 setProbeDistributionFactor(*I, Probe->Factor * in tryInlineCandidate()
1313 float Factor = 1.0; in getInlineCandidate() local
1315 Factor = Probe->Factor; in getInlineCandidate()
1318 CalleeSamples ? CalleeSamples->getHeadSamplesEstimate() * Factor : 0; in getInlineCandidate()
1319 *NewCandidate = {CB, CalleeSamples, CallsiteCount, Factor}; in getInlineCandidate()
1640 if (Probe->Factor < 1) in generateMDProfMetadata()
1641 T = SampleRecord::adjustCallTargets(T.get(), Probe->Factor); in generateMDProfMetadata()
/openbsd-src/gnu/llvm/llvm/lib/Target/ARM/
H A DMVETailPredication.cpp369 ConstantInt *Factor = ConstantInt::get(cast<IntegerType>(Ty), VectorWidth); in InsertVCTPIntrinsic() local
386 Value *Remaining = Builder.CreateSub(Processed, Factor); in InsertVCTPIntrinsic()
H A DARMTargetTransformInfo.cpp1170 unsigned Limit, Factor = 2; in getNumMemOps() local
1180 Factor = 1; in getNumMemOps()
1193 return MemOps.size() * Factor; in getNumMemOps()
1523 unsigned Opcode, Type *VecTy, unsigned Factor, ArrayRef<unsigned> Indices, in getInterleavedMemoryOpCost() argument
1526 assert(Factor >= 2 && "Invalid interleave factor"); in getInterleavedMemoryOpCost()
1532 if (Factor <= TLI->getMaxSupportedInterleaveFactor() && !EltIs64Bits && in getInterleavedMemoryOpCost()
1536 FixedVectorType::get(VecTy->getScalarType(), NumElts / Factor); in getInterleavedMemoryOpCost()
1543 if (NumElts % Factor == 0 && in getInterleavedMemoryOpCost()
1544 TLI->isLegalInterleavedAccessType(Factor, SubVecTy, Alignment, DL)) in getInterleavedMemoryOpCost()
1545 return Factor * BaseCost * TLI->getNumInterleavedAccesses(SubVecTy, DL); in getInterleavedMemoryOpCost()
[all …]
/openbsd-src/gnu/llvm/llvm/include/llvm/ProfileData/Coverage/
H A DCoverageMapping.h181 int Factor; member
183 Term(unsigned CounterID, int Factor) in Term()
184 : CounterID(CounterID), Factor(Factor) {} in Term()
/openbsd-src/share/misc/
H A Dscsi_modes149 {Track Skew Factor} i2
150 {Cylinder Skew Factor} i2

1234