Home
last modified time | relevance | path

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

123456

/external/llvm/lib/CodeGen/
DInterleavedAccessPass.cpp122 static bool isDeInterleaveMaskOfFactor(ArrayRef<int> Mask, unsigned Factor, in isDeInterleaveMaskOfFactor() argument
125 for (Index = 0; Index < Factor; Index++) { in isDeInterleaveMaskOfFactor()
131 if (Mask[i] >= 0 && static_cast<unsigned>(Mask[i]) != Index + i * Factor) in isDeInterleaveMaskOfFactor()
146 static bool isDeInterleaveMask(ArrayRef<int> Mask, unsigned &Factor, in isDeInterleaveMask() argument
152 for (Factor = 2; Factor <= MaxFactor; Factor++) in isDeInterleaveMask()
153 if (isDeInterleaveMaskOfFactor(Mask, Factor, Index)) in isDeInterleaveMask()
165 static bool isReInterleaveMask(ArrayRef<int> Mask, unsigned &Factor) { in isReInterleaveMask() argument
171 for (Factor = 2; Factor <= MaxFactor; Factor++) { in isReInterleaveMask()
172 if (NumElts % Factor) in isReInterleaveMask()
175 unsigned NumSubElts = NumElts / Factor; in isReInterleaveMask()
[all …]
/external/llvm/include/llvm/Transforms/Scalar/
DReassociate.h48 struct Factor { struct
51 Factor(Value *Base, unsigned Power) : Base(Base), Power(Power) {} in Factor() argument
86 SmallVectorImpl<reassociate::Factor> &Factors);
88 SmallVectorImpl<reassociate::Factor> &Factors);
91 Value *RemoveFactorFromExpression(Value *V, Value *Factor);
/external/llvm/lib/Transforms/Scalar/
DReassociate.cpp995 Value *ReassociatePass::RemoveFactorFromExpression(Value *V, Value *Factor) { in RemoveFactorFromExpression() argument
1013 if (Factors[i].Op == Factor) { in RemoveFactorFromExpression()
1020 if (ConstantInt *FC1 = dyn_cast<ConstantInt>(Factor)) { in RemoveFactorFromExpression()
1027 } else if (ConstantFP *FC1 = dyn_cast<ConstantFP>(Factor)) { in RemoveFactorFromExpression()
1506 Value *Factor = Factors[i]; in OptimizeAdd() local
1507 if (!Duplicates.insert(Factor).second) in OptimizeAdd()
1510 unsigned Occ = ++FactorOccurrences[Factor]; in OptimizeAdd()
1513 MaxOccVal = Factor; in OptimizeAdd()
1519 if (ConstantInt *CI = dyn_cast<ConstantInt>(Factor)) { in OptimizeAdd()
1521 Factor = ConstantInt::get(CI->getContext(), -CI->getValue()); in OptimizeAdd()
[all …]
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
DReassociate.cpp103 Value *RemoveFactorFromExpression(Value *V, Value *Factor);
574 Value *Reassociate::RemoveFactorFromExpression(Value *V, Value *Factor) { in RemoveFactorFromExpression() argument
584 if (Factors[i].Op == Factor) { in RemoveFactorFromExpression()
591 if (ConstantInt *FC1 = dyn_cast<ConstantInt>(Factor)) in RemoveFactorFromExpression()
805 Value *Factor = Factors[i]; in OptimizeAdd() local
806 if (!Duplicates.insert(Factor)) continue; in OptimizeAdd()
808 unsigned Occ = ++FactorOccurrences[Factor]; in OptimizeAdd()
809 if (Occ > MaxOcc) { MaxOcc = Occ; MaxOccVal = Factor; } in OptimizeAdd()
814 if (ConstantInt *CI = dyn_cast<ConstantInt>(Factor)) in OptimizeAdd()
816 Factor = ConstantInt::get(CI->getContext(), -CI->getValue()); in OptimizeAdd()
[all …]
DLoopStrengthReduce.cpp2072 if (const SCEVConstant *Factor = in CollectInterestingTypesAndFactors() local
2075 if (Factor->getValue()->getValue().getMinSignedBits() <= 64) in CollectInterestingTypesAndFactors()
2076 Factors.insert(Factor->getValue()->getValue().getSExtValue()); in CollectInterestingTypesAndFactors()
2077 } else if (const SCEVConstant *Factor = in CollectInterestingTypesAndFactors() local
2081 if (Factor->getValue()->getValue().getMinSignedBits() <= 64) in CollectInterestingTypesAndFactors()
2082 Factors.insert(Factor->getValue()->getValue().getSExtValue()); in CollectInterestingTypesAndFactors()
2535 int64_t Factor = *I; in GenerateICmpZeroScales() local
2538 if (Base.AM.BaseOffs == INT64_MIN && Factor == -1) in GenerateICmpZeroScales()
2540 int64_t NewBaseOffs = (uint64_t)Base.AM.BaseOffs * Factor; in GenerateICmpZeroScales()
2541 if (NewBaseOffs / Factor != Base.AM.BaseOffs) in GenerateICmpZeroScales()
[all …]
/external/llvm/lib/Target/X86/
DX86ShuffleDecodeConstantPool.cpp136 unsigned Factor = ElSize / EltTySize; in DecodeVPERMILPMask() local
139 Constant *COp = C->getAggregateElement(i * Factor); in DecodeVPERMILPMask()
188 unsigned Factor = ElSize / EltTySize; in DecodeVPERMIL2PMask() local
191 Constant *COp = C->getAggregateElement(i * Factor); in DecodeVPERMIL2PMask()
/external/libxcam/modules/soft/
Dsoft_stitcher.cpp115 struct Factor { struct
118 Factor () : x (1.0f), y (1.0f) {} in Factor() function
138 Factor left_match_factor, right_match_factor;
189 bool get_and_reset_feature_match_factors (uint32_t idx, Factor &left, Factor &right);
215 Factor match_left_factor, match_right_factor; in init_dewarp_factors()
218 Factor unify_factor, last_left_factor, last_right_factor; in init_dewarp_factors()
226 Factor cur_left, cur_right; in init_dewarp_factors()
267 StitcherImpl::get_and_reset_feature_match_factors (uint32_t idx, Factor &left, Factor &right) in get_and_reset_feature_match_factors()
458 Factor cur_left, cur_right; in start_dewarp_works()
515 Factor left_factor, right_factor; in feature_match()
/external/llvm/include/llvm/CodeGen/
DMachineTraceMetrics.h381 unsigned Factor = SchedModel.getLatencyFactor(); in getCycles() local
382 return (Scaled + Factor - 1) / Factor; in getCycles()
DBasicTTIImpl.h557 unsigned Factor, in getInterleavedMemoryOpCost() argument
565 assert(Factor > 1 && NumElts % Factor == 0 && "Invalid interleave factor"); in getInterleavedMemoryOpCost()
567 unsigned NumSubElts = NumElts / Factor; in getInterleavedMemoryOpCost()
612 UsedInsts.set((Index + Elt * Factor) / NumEltsPerLegalInst); in getInterleavedMemoryOpCost()
630 assert(Indices.size() <= Factor && in getInterleavedMemoryOpCost()
634 assert(Index < Factor && "Invalid index for interleaved memory op"); in getInterleavedMemoryOpCost()
639 Instruction::ExtractElement, VT, Index + i * Factor); in getInterleavedMemoryOpCost()
662 Cost += ExtSubCost * Factor; in getInterleavedMemoryOpCost()
/external/libvpx/libvpx/vp8/encoder/
Dratectrl.c1064 double Factor = 0.99; in vp8_update_rate_correction_factors() local
1069 projected_size_based_on_q = (int)(Factor * projected_size_based_on_q); in vp8_update_rate_correction_factors()
1070 Factor += factor_adjustment; in vp8_update_rate_correction_factors()
1072 if (Factor >= 0.999) Factor = 0.999; in vp8_update_rate_correction_factors()
1212 double Factor = 0.99; in vp8_regulate_q() local
1257 bits_per_mb_at_this_q = (int)(Factor * bits_per_mb_at_this_q); in vp8_regulate_q()
1258 Factor += factor_adjustment; in vp8_regulate_q()
1260 if (Factor >= 0.999) Factor = 0.999; in vp8_regulate_q()
/external/llvm/lib/Target/AArch64/
DAArch64TargetTransformInfo.cpp496 unsigned Factor, in getInterleavedMemoryOpCost() argument
500 assert(Factor >= 2 && "Invalid interleave factor"); in getInterleavedMemoryOpCost()
503 if (Factor <= TLI->getMaxSupportedInterleaveFactor()) { in getInterleavedMemoryOpCost()
505 Type *SubVecTy = VectorType::get(VecTy->getScalarType(), NumElts / Factor); in getInterleavedMemoryOpCost()
509 if (NumElts % Factor == 0 && (SubVecSize == 64 || SubVecSize == 128)) in getInterleavedMemoryOpCost()
510 return Factor; in getInterleavedMemoryOpCost()
513 return BaseT::getInterleavedMemoryOpCost(Opcode, VecTy, Factor, Indices, in getInterleavedMemoryOpCost()
/external/swiftshader/third_party/LLVM/lib/Analysis/
DInlineCost.cpp583 float Factor = 1.0f; in getInlineFudgeFactor() local
586 Factor += 0.5f; in getInlineFudgeFactor()
591 Factor += 2.0f; in getInlineFudgeFactor()
593 Factor += 1.5f; in getInlineFudgeFactor()
594 return Factor; in getInlineFudgeFactor()
/external/eigen/Eigen/src/Core/
DVectorwiseOp.h485 …template<int Factor> const Replicate<ExpressionType,isVertical*Factor+isHorizontal,isHorizontal*Fa…
487 replicate(Index factor = Factor) const
489 return Replicate<ExpressionType,(isVertical?Factor:1),(isHorizontal?Factor:1)>
/external/llvm/lib/Target/ARM/
DARMTargetTransformInfo.cpp497 unsigned Factor, in getInterleavedMemoryOpCost() argument
501 assert(Factor >= 2 && "Invalid interleave factor"); in getInterleavedMemoryOpCost()
507 if (Factor <= TLI->getMaxSupportedInterleaveFactor() && !EltIs64Bits) { in getInterleavedMemoryOpCost()
509 Type *SubVecTy = VectorType::get(VecTy->getScalarType(), NumElts / Factor); in getInterleavedMemoryOpCost()
513 if (NumElts % Factor == 0 && (SubVecSize == 64 || SubVecSize == 128)) in getInterleavedMemoryOpCost()
514 return Factor; in getInterleavedMemoryOpCost()
517 return BaseT::getInterleavedMemoryOpCost(Opcode, VecTy, Factor, Indices, in getInterleavedMemoryOpCost()
/external/python/cpython2/Modules/_ctypes/libffi/src/s390/
Dsysv.S162 .uleb128 0x1 # CIE Code Alignment Factor
163 .sleb128 -4 # CIE Data Alignment Factor
361 .uleb128 0x1 # CIE Code Alignment Factor
362 .sleb128 -8 # CIE Data Alignment Factor
/external/libffi/src/s390/
Dsysv.S162 .uleb128 0x1 # CIE Code Alignment Factor
163 .sleb128 -4 # CIE Data Alignment Factor
361 .uleb128 0x1 # CIE Code Alignment Factor
362 .sleb128 -8 # CIE Data Alignment Factor
/external/python/cpython3/Modules/_ctypes/libffi/src/s390/
Dsysv.S162 .uleb128 0x1 # CIE Code Alignment Factor
163 .sleb128 -4 # CIE Data Alignment Factor
361 .uleb128 0x1 # CIE Code Alignment Factor
362 .sleb128 -8 # CIE Data Alignment Factor
/external/llvm/lib/Transforms/InstCombine/
DInstCombineAddSub.cpp450 Value *Factor = nullptr; in performFactorization() local
455 Factor = Opnd0_0; in performFactorization()
457 Factor = Opnd0_1; in performFactorization()
459 if (Factor) { in performFactorization()
460 AddSub0 = (Factor == Opnd0_0) ? Opnd0_1 : Opnd0_0; in performFactorization()
461 AddSub1 = (Factor == Opnd1_0) ? Opnd1_1 : Opnd1_0; in performFactorization()
464 Factor = Opnd0_1; in performFactorization()
469 if (!Factor) in performFactorization()
489 Value *RI = createFMul(Factor, NewAddSub); in performFactorization()
495 Value *RI = createFDiv(NewAddSub, Factor); in performFactorization()
/external/ltp/testcases/kernel/fs/fs_bind/
DTODO4 Factor out common bits of setup, setupnslock, and lockfile
/external/python/cpython2/Modules/_ctypes/libffi/src/powerpc/
Dlinux64.S222 .uleb128 0x1 # CIE Code Alignment Factor
223 .sleb128 -8 # CIE Data Alignment Factor
/external/python/cpython3/Modules/_ctypes/libffi/src/powerpc/
Dlinux64.S222 .uleb128 0x1 # CIE Code Alignment Factor
223 .sleb128 -8 # CIE Data Alignment Factor
/external/python/cpython2/Modules/_ctypes/libffi_osx/powerpc/
Dppc-darwin_closure.S247 .byte 0x1 ; uleb128 0x1; CIE Code Alignment Factor
248 .byte 0x7c ; sleb128 -4; CIE Data Alignment Factor
/external/libffi/src/powerpc/
Dlinux64.S222 .uleb128 0x1 # CIE Code Alignment Factor
223 .sleb128 -8 # CIE Data Alignment Factor
/external/python/cpython3/Modules/_ctypes/libffi_osx/powerpc/
Dppc-darwin_closure.S247 .byte 0x1 ; uleb128 0x1; CIE Code Alignment Factor
248 .byte 0x7c ; sleb128 -4; CIE Data Alignment Factor
/external/libffi/src/alpha/
Dosf.S327 .byte 0x1 # uleb128 0x1; CIE Code Alignment Factor
328 .byte 0x78 # sleb128 -8; CIE Data Alignment Factor

123456