Home
last modified time | relevance | path

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

12345

/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DInterleavedAccessPass.cpp212 static bool isDeInterleaveMask(ArrayRef<int> Mask, unsigned &Factor, in isDeInterleaveMask() argument
219 for (Factor = 2; Factor <= MaxFactor; Factor++) { in isDeInterleaveMask()
221 if (Mask.size() * Factor > NumLoadElements) in isDeInterleaveMask()
223 if (ShuffleVectorInst::isDeInterleaveMaskOfFactor(Mask, Factor, Index)) in isDeInterleaveMask()
241 static bool isReInterleaveMask(ShuffleVectorInst *SVI, unsigned &Factor, in isReInterleaveMask() argument
248 for (Factor = 2; Factor <= MaxFactor; Factor++) { in isReInterleaveMask()
249 if (SVI->isInterleave(Factor)) in isReInterleaveMask()
258 static Value *getMask(Value *WideMask, unsigned Factor,
261 static Value *getMask(Value *WideMask, unsigned Factor, in getMask() argument
263 return getMask(WideMask, Factor, LeafValueTy->getElementCount()); in getMask()
[all …]
H A DInterleavedLoadCombinePass.cpp104 std::list<VectorInfo> &InterleavedLoad, unsigned Factor,
694 bool isInterleaved(unsigned Factor, const DataLayout &DL) const { in isInterleaved()
697 if (!EI[i].Ofs.isProvenEqualTo(EI[0].Ofs + i * Factor * Size)) { in isInterleaved()
746 unsigned Factor = Result.VTy->getNumElements() / VTy->getNumElements(); in computeFromBCI() local
750 if (NewSize * Factor != OldSize) in computeFromBCI()
757 for (unsigned i = 0; i < Result.VTy->getNumElements(); i += Factor) { in computeFromBCI()
758 for (unsigned j = 0; j < Factor; j++) { in computeFromBCI()
760 ElementInfo(Old.EI[i / Factor].Ofs + j * NewSize, in computeFromBCI()
761 j == 0 ? Old.EI[i / Factor].LI : nullptr); in computeFromBCI()
1058 unsigned Factor, const DataLayout &DL) { in findPattern() argument
[all …]
H A DMIRSampleProfile.cpp107 Probe.Factor = 1; in extractProbe()
235 uint32_t Factor = 1; in setBranchProbs() local
237 Factor = BBWeight / MaxWeight + 1; in setBranchProbs()
238 BBWeight /= Factor; in setBranchProbs()
239 LLVM_DEBUG(dbgs() << "Scaling weights by " << Factor << "\n"); in setBranchProbs()
248 EdgeWeight /= Factor; in setBranchProbs()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVInterleavedAccess.cpp27 VectorType *VTy, unsigned Factor, Align Alignment, unsigned AddrSpace, in isLegalInterleavedAccessType() argument
56 return Factor * LMUL <= 8; in isLegalInterleavedAccessType()
85 ArrayRef<unsigned> Indices, unsigned Factor) const { in lowerInterleavedLoad()
93 if (!isLegalInterleavedAccessType(VTy, Factor, LI->getAlign(), in lowerInterleavedLoad()
103 if (Indices.size() == 1 && !Subtarget.hasOptimizedSegmentLoadStore(Factor)) { in lowerInterleavedLoad()
105 Value *Stride = ConstantInt::get(XLenTy, Factor * ScalarSizeInBytes); in lowerInterleavedLoad()
124 FixedVlsegIntrIds[Factor - 2], {VTy, PtrTy, XLenTy}, in lowerInterleavedLoad()
165 unsigned Factor) const { in lowerInterleavedStore()
172 ShuffleVTy->getNumElements() / Factor); in lowerInterleavedStore()
173 if (!isLegalInterleavedAccessType(VTy, Factor, SI->getAlign(), in lowerInterleavedStore()
[all …]
H A DRISCVTargetTransformInfo.h178 unsigned Opcode, Type *VecTy, unsigned Factor, ArrayRef<unsigned> Indices,
327 bool isLegalInterleavedAccessType(VectorType *VTy, unsigned Factor, in isLegalInterleavedAccessType() argument
330 return TLI->isLegalInterleavedAccessType(VTy, Factor, Alignment, AddrSpace, in isLegalInterleavedAccessType()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DPseudoProbe.cpp36 Probe.Factor = in extractProbeFromDiscriminator()
62 Probe.Factor = II->getFactor()->getZExtValue() / in extractProbe()
76 void setProbeDistributionFactor(Instruction &Inst, float Factor) { in setProbeDistributionFactor() argument
77 assert(Factor >= 0 && Factor <= 1 && in setProbeDistributionFactor()
82 if (Factor < 1) in setProbeDistributionFactor()
83 IntFactor *= Factor; in setProbeDistributionFactor()
104 if (Factor < 1) in setProbeDistributionFactor()
105 IntFactor *= Factor; in setProbeDistributionFactor()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86InterleavedAccess.cpp58 const unsigned Factor; member in __anon8deb9da60111::X86InterleavedAccessGroup
111 : Inst(I), Shuffles(Shuffs), Indices(Ind), Factor(F), Subtarget(STarget), in X86InterleavedAccessGroup()
137 if (!Subtarget.hasAVX() || (Factor != 4 && Factor != 3)) in isSupported()
149 if (ShuffleElemSize == 64 && WideInstSize == 1024 && Factor == 4) in isSupported()
152 if (ShuffleElemSize == 8 && isa<StoreInst>(Inst) && Factor == 4 && in isSupported()
157 if (ShuffleElemSize == 8 && Factor == 3 && in isSupported()
721 unsigned NumSubVecElems = ShuffleEltTy->getNumElements() / Factor; in lowerIntoOptimizedSequence()
736 decompose(Inst, Factor, ShuffleTy, DecomposedVectors); in lowerIntoOptimizedSequence()
757 unsigned NumSubVecElems = ShuffleTy->getNumElements() / Factor; in lowerIntoOptimizedSequence()
762 decompose(Shuffles[0], Factor, in lowerIntoOptimizedSequence()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DPseudoProbe.h57 packProbeData(uint32_t Index, uint32_t Type, uint32_t Flags, uint32_t Factor, in packProbeData()
62 assert(Factor <= 100 && in packProbeData()
64 uint32_t V = (Index << 3) | (Factor << 19) | (Type << 26) | 0x7; in packProbeData()
126 float Factor; member
139 LLVM_ABI void setProbeDistributionFactor(Instruction &Inst, float Factor);
H A DDebugInfoMetadata.h956 int Factor; variable
963 unsigned Kind, int Factor, ArrayRef<Metadata *> Ops) in DIFixedPointType() argument
966 Kind(Kind), Factor(Factor) { in DIFixedPointType()
975 Kind(Kind), Factor(0), Numerator(Numerator), Denominator(Denominator) { in DIFixedPointType()
980 unsigned Kind, int Factor, APInt Numerator, in DIFixedPointType() argument
984 Kind(Kind), Factor(Factor), Numerator(Numerator), in DIFixedPointType()
991 DIFlags Flags, unsigned Kind, int Factor, APInt Numerator,
996 SizeInBitsNode, AlignInBits, Encoding, Flags, Kind, Factor,
1002 DIFlags Flags, unsigned Kind, int Factor, APInt Numerator,
1005 SizeInBits, AlignInBits, Encoding, Flags, Kind, Factor,
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGenTypes/
H A DLowLevelType.h235 constexpr LLT divide(int Factor) const { in divide() argument
236 assert(Factor != 1); in divide()
240 assert(getElementCount().isKnownMultipleOf(Factor)); in divide()
241 return scalarOrVector(getElementCount().divideCoefficientBy(Factor), in divide()
245 assert(getScalarSizeInBits() % Factor == 0); in divide()
246 return scalar(getScalarSizeInBits() / Factor); in divide()
252 constexpr LLT multiplyElements(int Factor) const { in multiplyElements() argument
254 return scalarOrVector(getElementCount().multiplyCoefficientBy(Factor), in multiplyElements()
258 return fixed_vector(Factor, *this); in multiplyElements()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DVectorUtils.h180 LLVM_ABI Intrinsic::ID getInterleaveIntrinsicID(unsigned Factor);
183 LLVM_ABI Intrinsic::ID getDeinterleaveIntrinsicID(unsigned Factor);
527 InterleaveGroup(uint32_t Factor, bool Reverse, Align Alignment) in InterleaveGroup() argument
528 : Factor(Factor), Reverse(Reverse), Alignment(Alignment), in InterleaveGroup()
533 Factor = std::abs(Stride); in InterleaveGroup()
534 assert(Factor > 1 && "Invalid interleave factor"); in InterleaveGroup()
541 uint32_t getFactor() const { return Factor; } in getFactor()
568 if (Index >= static_cast<int32_t>(Factor)) in insertMember()
580 if (*MaybeLargestIndex >= static_cast<int64_t>(Factor)) in insertMember()
638 uint32_t Factor; // Interleave Factor.
H A DIR2Vec.h115 LLVM_ABI Embedding &operator*=(double Factor);
116 LLVM_ABI Embedding operator*(double Factor) const;
120 LLVM_ABI Embedding &scaleAndAdd(const Embedding &Src, float Factor);
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Scalar/
H A DReassociate.h61 struct Factor { struct
65 Factor(Value *Base, unsigned Power) : Base(Base), Power(Power) {} in Factor() function
121 SmallVectorImpl<reassociate::Factor> &Factors);
124 Value *RemoveFactorFromExpression(Value *V, Value *Factor, DebugLoc DL);
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DReassociate.cpp1097 Value *ReassociatePass::RemoveFactorFromExpression(Value *V, Value *Factor, in RemoveFactorFromExpression() argument
1114 if (Factors[i].Op == Factor) { in RemoveFactorFromExpression()
1121 if (ConstantInt *FC1 = dyn_cast<ConstantInt>(Factor)) { in RemoveFactorFromExpression()
1128 } else if (ConstantFP *FC1 = dyn_cast<ConstantFP>(Factor)) { in RemoveFactorFromExpression()
1601 for (Value *Factor : Factors) { in OptimizeAdd()
1602 if (!Duplicates.insert(Factor).second) in OptimizeAdd()
1605 unsigned Occ = ++FactorOccurrences[Factor]; in OptimizeAdd()
1608 MaxOccVal = Factor; in OptimizeAdd()
1614 if (ConstantInt *CI = dyn_cast<ConstantInt>(Factor)) { in OptimizeAdd()
1616 Factor = ConstantInt::get(CI->getContext(), -CI->getValue()); in OptimizeAdd()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DBlockFrequency.cpp43 std::optional<BlockFrequency> BlockFrequency::mul(uint64_t Factor) const { in mul()
45 uint64_t ResultFrequency = SaturatingMultiply(Frequency, Factor, &Overflow); in mul()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DIR2Vec.cpp103 Embedding &Embedding::operator*=(double Factor) { in operator *=() argument
105 [Factor](double Elem) { return Elem * Factor; }); in operator *=()
109 Embedding Embedding::operator*(double Factor) const { in operator *()
111 Result *= Factor; in operator *()
115 Embedding &Embedding::scaleAndAdd(const Embedding &Src, float Factor) { in scaleAndAdd() argument
118 (*this)[Itr] += Src[Itr] * Factor; in scaleAndAdd()
H A DVectorUtils.cpp257 Intrinsic::ID llvm::getInterleaveIntrinsicID(unsigned Factor) { in getInterleaveIntrinsicID() argument
258 assert(Factor >= 2 && Factor <= 8 && "Unexpected factor"); in getInterleaveIntrinsicID()
259 return InterleaveIntrinsics[Factor - 2].Interleave; in getInterleaveIntrinsicID()
262 Intrinsic::ID llvm::getDeinterleaveIntrinsicID(unsigned Factor) { in getDeinterleaveIntrinsicID() argument
263 assert(Factor >= 2 && Factor <= 8 && "Unexpected factor"); in getDeinterleaveIntrinsicID()
264 return InterleaveIntrinsics[Factor - 2].Deinterleave; in getDeinterleaveIntrinsicID()
1360 unsigned Factor = std::abs(Stride); in isStrided() local
1361 return Factor >= 2 && Factor <= MaxInterleaveGroupFactor; in isStrided()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DMachineTraceMetrics.h434 unsigned Factor = SchedModel.getLatencyFactor(); in getCycles() local
435 return (Scaled + Factor - 1) / Factor; in getCycles()
/freebsd/contrib/llvm-project/llvm/lib/ProfileData/Coverage/
H A DCoverageMapping.cpp58 void CounterExpressionBuilder::extractTerms(Counter C, int Factor, in extractTerms() argument
64 Terms.emplace_back(C.getCounterID(), Factor); in extractTerms()
68 extractTerms(E.LHS, Factor, Terms); in extractTerms()
70 E.RHS, E.Kind == CounterExpression::Subtract ? -Factor : Factor, Terms); in extractTerms()
94 Prev->Factor += I->Factor; in simplify()
106 if (T.Factor <= 0) in simplify()
108 for (int I = 0; I < T.Factor; ++I) in simplify()
118 if (T.Factor >= 0) in simplify()
120 for (int I = 0; I < -T.Factor; ++I) in simplify()
/freebsd/sys/contrib/device-tree/Bindings/hwmon/
H A Dibm,cffps1.txt1 Device-tree bindings for IBM Common Form Factor Power Supply Versions 1 and 2
/freebsd/sys/arm64/conf/
H A Dstd.nxp29 device sff # Small Form Factor Transceivers
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonTargetTransformInfo.cpp246 unsigned Opcode, Type *VecTy, unsigned Factor, ArrayRef<unsigned> Indices, in getInterleavedMemoryOpCost() argument
249 if (Indices.size() != Factor || UseMaskForCond || UseMaskForGaps) in getInterleavedMemoryOpCost()
250 return BaseT::getInterleavedMemoryOpCost(Opcode, VecTy, Factor, Indices, in getInterleavedMemoryOpCost()
/freebsd/contrib/llvm-project/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()
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZTargetTransformInfo.cpp1381 unsigned Opcode, Type *VecTy, unsigned Factor, ArrayRef<unsigned> Indices, in getInterleavedMemoryOpCost() argument
1385 return BaseT::getInterleavedMemoryOpCost(Opcode, VecTy, Factor, Indices, in getInterleavedMemoryOpCost()
1392 assert(Factor > 1 && NumElts % Factor == 0 && "Invalid interleave factor"); in getInterleavedMemoryOpCost()
1393 unsigned VF = NumElts / Factor; in getInterleavedMemoryOpCost()
1403 std::vector<BitVector> ValueVecs(Factor, BitVector(NumVectorMemOps, false)); in getInterleavedMemoryOpCost()
1406 unsigned Vec = (Index + Elt * Factor) / NumEltsPerVecReg; in getInterleavedMemoryOpCost()
1425 unsigned NumSrcVecs = std::min(NumEltsPerVecReg, Factor); in getInterleavedMemoryOpCost()
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DBlockFrequency.h84 LLVM_ABI std::optional<BlockFrequency> mul(uint64_t Factor) const;

12345