/external/eigen/Eigen/src/Core/ |
Random.h | 25 { enum { Cost = 5 * NumTraits<Scalar>::MulCost, PacketAccess = false, IsRepeatable = false }; };
|
Visitor.h | 81 && (SizeAtCompileTime == 1 || internal::functor_traits<Visitor>::Cost != Dynamic) 82 && SizeAtCompileTime * CoeffReadCost + (SizeAtCompileTime-1) * internal::functor_traits<Visitor>::Cost 133 Cost = NumTraits<Scalar>::AddCost 161 Cost = NumTraits<Scalar>::AddCost
|
Redux.h | 53 Cost = ( Derived::SizeAtCompileTime == Dynamic 55 || (Derived::SizeAtCompileTime!=1 && functor_traits<Func>::Cost == Dynamic) 58 + (Derived::SizeAtCompileTime-1) * functor_traits<Func>::Cost, 64 Unrolling = Cost != Dynamic && Cost <= UnrollingLimit
|
Functors.h | 37 Cost = NumTraits<Scalar>::AddCost, 65 Cost = (NumTraits<LhsScalar>::MulCost + NumTraits<RhsScalar>::MulCost)/2, // rough estimate! 94 Cost = NumTraits<LhsScalar>::MulCost, 117 Cost = NumTraits<Scalar>::AddCost, 140 Cost = NumTraits<Scalar>::AddCost, 166 enum { Cost = 5 * NumTraits<Scalar>::MulCost, PacketAccess=0 }; 178 enum { Cost = 5 * NumTraits<Scalar>::MulCost, PacketAccess = false }; 198 Cost = NumTraits<Scalar>::AddCost, 223 Cost = (NumTraits<LhsScalar>::MulCost + NumTraits<RhsScalar>::MulCost), // rough estimate! 241 Cost = NumTraits<bool>::AddCost [all...] |
VectorwiseOp.h | 56 typedef typename MemberOp::template Cost<InputScalar,int(TraversalSize)> CostOpType; 58 typedef typename MemberOp::template Cost<InputScalar,TraversalSize> CostOpType; 105 #define EIGEN_MEMBER_FUNCTOR(MEMBER,COST) \ 110 template<typename Scalar, int Size> struct Cost \ 111 { enum { value = COST }; }; \ 123 EIGEN_MEMBER_FUNCTOR(hypotNorm, (Size-1) * functor_traits<scalar_hypot_op<Scalar> >::Cost ); 139 template<typename _Scalar, int Size> struct Cost 140 { enum { value = (Size-1) * functor_traits<BinaryOp>::Cost }; };
|
/external/llvm/include/llvm/Target/ |
CostTable.h | 1 //===-- CostTable.h - Instruction Cost Table handling -----------*- C++ -*-===// 11 /// \brief Cost tables and simple lookup functions 20 /// Cost Table Entry 25 unsigned Cost; 28 /// Find in cost table, TypeTy must be comparable to CompareTy by == 40 /// Find in cost table, TypeTy must be comparable to CompareTy by == 47 /// Type Conversion Cost Table 53 unsigned Cost; 56 /// Find in type conversion cost table, TypeTy must be comparable to CompareTy 70 /// Find in type conversion cost table, TypeTy must be comparable to CompareT [all...] |
/external/eigen/blas/ |
level1_cplx_impl.h | 21 enum { Cost = 3 * NumTraits<Scalar>::AddCost, PacketAccess = 0 };
|
/external/llvm/include/llvm/Analysis/ |
InlineCost.h | 1 //===- InlineCost.h - Cost analysis for inliner -----------------*- C++ -*-===// 40 /// \brief Represents the cost of inlining a function. 43 /// "never" be inlined. Otherwise, the cost represents a unitless amount; 48 /// directly tested to determine if inlining should occur given the cost and 49 /// threshold for this cost metric. 56 /// \brief The estimated cost of inlining this callsite. 57 const int Cost; 59 /// \brief The adjusted threshold against which this cost was computed. 63 InlineCost(int Cost, int Threshold) : Cost(Cost), Threshold(Threshold) { [all...] |
/external/eigen/test/ |
cwiseop.cpp | 28 enum { Cost = NumTraits<Scalar>::AddCost };
|
/external/eigen/test/eigen2/ |
eigen2_cwiseop.cpp | 19 enum { Cost = NumTraits<Scalar>::AddCost };
|
/external/llvm/lib/CodeGen/ |
RegisterClassInfo.cpp | 102 unsigned Cost = TRI->getCostPerUse(PhysReg); 103 MinCost = std::min(MinCost, Cost); 109 if (Cost != LastCost) 112 LastCost = Cost; 121 unsigned Cost = TRI->getCostPerUse(PhysReg); 122 if (Cost != LastCost) 125 LastCost = Cost;
|
BasicTargetTransformInfo.cpp | 42 /// Estimate the cost overhead of SK_Alternate shuffle. 265 unsigned Cost = 0; 269 Cost += TopTTI->getVectorInstrCost(Instruction::InsertElement, Ty, i); 271 Cost += TopTTI->getVectorInstrCost(Instruction::ExtractElement, Ty, i); 274 return Cost; 300 // Assume that floating point arithmetic operations cost twice as much as 308 // TODO: Once we have extract/insert subvector cost we need to use them. 323 unsigned Cost = TopTTI->getArithmeticInstrCost(Opcode, Ty->getScalarType()); 324 // return the cost of multiple scalar invocation plus the cost of insertin [all...] |
TargetLoweringBase.cpp | [all...] |
RegAllocFast.cpp | 436 // calcSpillCost - Return the cost of spilling clearing out PhysReg and 462 // This is a disabled register, add up cost of aliases. 464 unsigned Cost = 0; 471 ++Cost; 478 Cost += I->Dirty ? spillDirty : spillClean; 483 return Cost; 526 unsigned Cost = calcSpillCost(Hint); 527 if (Cost < spillDirty) { 528 if (Cost) 552 unsigned Cost = calcSpillCost(*I) [all...] |
/external/llvm/utils/TableGen/ |
DAGISelEmitter.cpp | 45 unsigned Cost = 0; 48 Cost++; 51 Cost += 10; 54 Cost += getResultPatternCost(P->getChild(i), CGP); 55 return Cost; 64 unsigned Cost = 0; 67 Cost += Op->getValueAsInt("CodeSize"); 70 Cost += getResultPatternSize(P->getChild(i), CGP); 71 return Cost; 76 // In particular, we want to match maximal patterns first and lowest cost withi [all...] |
/external/chromium_org/third_party/webrtc/modules/rtp_rtcp/source/ |
vp8_partition_aggregator.cc | 51 int PartitionTreeNode::Cost(int penalty) { 53 int cost = 0; local 56 cost = std::max(max_parent_size_, this_size_) - 59 cost = std::max(max_parent_size_, this_size_) - min_parent_size_; 61 return cost + NumPackets() * penalty; 130 if (left->Cost(penalty) <= right->Cost(penalty)) { 138 if (second->Cost(penalty) <= first->Cost(penalty)) { 140 // Compare cost estimate for "second" with actual cost for "first" 248 int cost = 0; local [all...] |
/external/llvm/lib/Target/AArch64/ |
AArch64TargetTransformInfo.cpp | 141 /// \brief Calculate the cost of materializing a 64-bit value. This helper 143 /// is valid to return a cost of ZERO. 157 /// \brief Calculate the cost of materializing the given constant. 170 // Split the constant into 64-bit chunks and calculate the cost for each 172 unsigned Cost = 0; 176 Cost += getIntImmCost(Val); 179 return std::max(1U, Cost); 187 // There is no cost model for constants with a bit size of 0. Return TCC_Free 240 unsigned Cost = AArch64TTI::getIntImmCost(Imm, Ty); 241 return (Cost <= NumConstants * TCC_Basic [all...] |
/external/llvm/lib/Target/PowerPC/ |
PPCTargetTransformInfo.cpp | 127 // PPC cost model. 362 // Estimated cost of a load-hit-store delay. This was obtained 389 unsigned Cost = 395 return Cost; 408 Cost += LT.first*(SrcBytes/Alignment-1); 415 Cost += getVectorInstrCost(Instruction::ExtractElement, Src, i); 418 return Cost;
|
/external/llvm/utils/PerfectShuffle/ |
PerfectShuffle.cpp | 88 unsigned Cost; // Number of instrs used to generate this value. 92 ShuffleVal() : Cost(1000000) {} 108 unsigned Cost; 111 unsigned cost = 1) 112 : ShuffleMask(shufflemask), OpNum(opnum), Name(name), Cost(cost) { 125 unsigned getCost() const { return Cost; } 153 assert(0 && "bad zero cost operation"); 164 if (ShufTab[ShufTab[ThisOp].Arg0].Cost == 0) { 178 if (ShufTab[ShufTab[ThisOp].Arg1].Cost == 0) [all...] |
/external/llvm/lib/Analysis/ |
CostModel.cpp | 1 //===- CostModel.cpp ------ Cost Model Analysis ---------------------------===// 10 // This file defines the cost model analysis. It provides a very basic cost 12 // to approximate the cost of any IR instruction when lowered to machine 13 // instructions. The cost results are unit-less and the cost number represents 15 // branches are predicted, etc. The cost numbers can be added in order to 33 #define CM_NAME "cost-model" 50 /// Returns the expected cost of the instruction. 51 /// Returns -1 if the cost is unknown [all...] |
/external/llvm/lib/Target/ARM/ |
ARMTargetTransformInfo.cpp | 201 return LT.first * NEONFltDblTbl[Idx].Cost; 211 // to cast up/down their types automatically at no extra cost. 293 return NEONVectorConversionTbl[Idx].Cost; 324 return NEONFloatConversionTbl[Idx].Cost; 356 return NEONIntegerConversionTbl[Idx].Cost; 376 return ARMIntegerConversionTbl[Idx].Cost; 419 return NEONVectorSelectTbl[Idx].Cost; 452 // Reverse shuffle cost one instruction if we are shuffling within a 470 return LT.first * NEONShuffleTbl[Idx].Cost; 474 // Alt shuffle cost table for ARM. Cost is the number of instruction [all...] |
/external/llvm/lib/Target/X86/ |
X86TargetTransformInfo.cpp | 131 // X86 cost model. 202 return LT.first * AVX2UniformConstCostTable[Idx].Cost; 251 return LT.first * AVX2CostTable[Idx].Cost; 287 return LT.first * SSE2UniformConstCostTable[Idx].Cost; 311 // to ISel. The cost model must return worst case assumptions because it is 349 return LT.first * SSE2CostTable[Idx].Cost; 365 // split factor of two in the cost table. Therefore, the cost here is 18 382 return LT.first * AVX1CostTable[Idx].Cost; 394 return LT.first * CustomLowered[Idx].Cost; [all...] |
/external/llvm/lib/Transforms/Scalar/ |
ConstantHoisting.cpp | 15 // cost. If the constant can be folded into the instruction (the cost is 16 // TCC_Free) or the cost is just a simple operation (TCC_BASIC), then we don't 20 // If the cost is more than TCC_BASIC, then the integer constant can't be folded 80 /// \brief Add the user to the use list and update the cost. 81 void addUser(Instruction *Inst, unsigned Idx, unsigned Cost) { 82 CumulativeCost += Cost; 275 unsigned Cost; 276 // Ask the target about the cost of materializing the constant for the given 279 Cost = TTI->getIntImmCost(IntrInst->getIntrinsicID(), Idx [all...] |
/external/llvm/tools/llvm-diff/ |
DifferenceEngine.cpp | 476 DiffEntry() : Cost(0) {} 478 unsigned Cost; 508 Cur[I].Cost = I * LeftCost; 516 Next[0].Cost += RightCost; 523 Next[Index].Cost += MatchCost; 526 } else if (Next[Index-1].Cost <= Cur[Index].Cost) { 528 Next[Index].Cost += LeftCost; 532 Next[Index].Cost += RightCost;
|
/external/llvm/lib/Analysis/IPA/ |
InlineCost.cpp | 1 //===- InlineCost.cpp - Cost analysis for inliner -------------------------===// 10 // This file implements inline cost analysis. 36 #define DEBUG_TYPE "inline-cost" 56 int Cost; 78 // can cause dramatic shifts in the cost of inlining a function. 85 // The mapping of caller Alloca values to their accumulated cost savings. If 87 // cost must be added. 145 : DL(DL), TTI(TTI), F(Callee), Threshold(Threshold), Cost(0), 159 int getCost() { return Cost; } 161 // Keep a bunch of stats about the cost savings found so we can print the [all...] |