Home
last modified time | relevance | path

Searched refs:NumElem (Results 1 – 25 of 31) sorted by relevance

12

/external/tensorflow/tensorflow/core/grappler/costs/
Dutils_test.cc238 EXPECT_EQ(0, hist.NumElem()); in TEST()
274 EXPECT_EQ(3, hist.NumElem()); in TEST()
291 EXPECT_EQ(6, hist1.NumElem()); in TEST()
304 EXPECT_EQ(9, hist1.NumElem()); in TEST()
Dutils.h92 uint64 NumElem() const { return num_elem_; } in NumElem() function
/external/llvm/lib/Target/X86/
DX86TargetTransformInfo.cpp1089 unsigned NumElem = VTy->getVectorNumElements(); in getMemoryOpCost() local
1093 if (NumElem == 3 && VTy->getScalarSizeInBits() == 32) in getMemoryOpCost()
1098 if (NumElem == 3 && VTy->getScalarSizeInBits() == 64) in getMemoryOpCost()
1103 if (!isPowerOf2_32(NumElem)) { in getMemoryOpCost()
1108 return NumElem * Cost + SplitCost; in getMemoryOpCost()
1136 unsigned NumElem = SrcVTy->getVectorNumElements(); in getMaskedMemoryOpCost() local
1138 VectorType::get(Type::getInt8Ty(SrcVTy->getContext()), NumElem); in getMaskedMemoryOpCost()
1141 !isPowerOf2_32(NumElem)) { in getMaskedMemoryOpCost()
1147 int MaskCmpCost = NumElem * (BranchCost + ScalarCompareCost); in getMaskedMemoryOpCost()
1152 NumElem * BaseT::getMemoryOpCost(Opcode, SrcVTy->getScalarType(), in getMaskedMemoryOpCost()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/X86/
DX86TargetTransformInfo.cpp1911 unsigned NumElem = VTy->getVectorNumElements(); in getMemoryOpCost() local
1915 if (NumElem == 3 && VTy->getScalarSizeInBits() == 32) in getMemoryOpCost()
1920 if (NumElem == 3 && VTy->getScalarSizeInBits() == 64) in getMemoryOpCost()
1925 if (!isPowerOf2_32(NumElem)) { in getMemoryOpCost()
1930 return NumElem * Cost + SplitCost; in getMemoryOpCost()
1958 unsigned NumElem = SrcVTy->getVectorNumElements(); in getMaskedMemoryOpCost() local
1960 VectorType::get(Type::getInt8Ty(SrcVTy->getContext()), NumElem); in getMaskedMemoryOpCost()
1963 !isPowerOf2_32(NumElem)) { in getMaskedMemoryOpCost()
1969 int MaskCmpCost = NumElem * (BranchCost + ScalarCompareCost); in getMaskedMemoryOpCost()
1974 NumElem * BaseT::getMemoryOpCost(Opcode, SrcVTy->getScalarType(), in getMaskedMemoryOpCost()
[all …]
DX86ISelLowering.h1040 bool storeOfVectorConstantIsCheap(EVT MemVT, unsigned NumElem, in storeOfVectorConstantIsCheap() argument
1044 return NumElem > 2; in storeOfVectorConstantIsCheap()
/external/llvm/lib/CodeGen/SelectionDAG/
DLegalizeVectorOps.cpp499 unsigned NumElem = SrcVT.getVectorNumElements(); in ExpandLoad() local
576 for (unsigned Idx = 0; Idx != NumElem; ++Idx) { in ExpandLoad()
723 unsigned NumElem = VT.getVectorNumElements(); in ExpandSELECT() local
748 SmallVector<SDValue, 8> Ops(NumElem, Mask); in ExpandSELECT()
DLegalizeIntegerTypes.cpp3320 unsigned NumElem = N->getOperand(0).getValueType().getVectorNumElements(); in PromoteIntRes_CONCAT_VECTORS() local
3323 assert(NumElem * NumOperands == NumOutElem && in PromoteIntRes_CONCAT_VECTORS()
3330 for (unsigned j = 0; j < NumElem; ++j) { in PromoteIntRes_CONCAT_VECTORS()
3334 Ops[i * NumElem + j] = DAG.getNode(ISD::ANY_EXTEND, dl, OutElemTy, Ext); in PromoteIntRes_CONCAT_VECTORS()
3429 unsigned NumElem = Incoming->getValueType(0).getVectorNumElements(); in PromoteIntOp_CONCAT_VECTORS() local
3431 for (unsigned i=0; i<NumElem; ++i) { in PromoteIntOp_CONCAT_VECTORS()
DDAGCombiner.cpp7121 unsigned NumElem = VecTy.getVectorNumElements(); in visitTRUNCATE() local
7124 EVT NVT = EVT::getVectorVT(*DAG.getContext(), TrTy, SizeRatio * NumElem); in visitTRUNCATE()
11661 unsigned NumElem = UseVector ? LastLegalVectorType : LastLegalType; in MergeConsecutiveStores() local
11663 return MergeStoresOfConstantsOrVecElts(StoreNodes, MemVT, NumElem, in MergeConsecutiveStores()
11826 unsigned NumElem = std::min(LastConsecutiveStore, LastConsecutiveLoad) + 1; in MergeConsecutiveStores() local
11827 NumElem = std::min(LastLegalType, NumElem); in MergeConsecutiveStores()
11829 if (NumElem < 2) in MergeConsecutiveStores()
11838 for (unsigned i=1; i<NumElem; ++i) { in MergeConsecutiveStores()
11855 JointMemOpVT = EVT::getVectorVT(Context, MemVT, NumElem); in MergeConsecutiveStores()
11857 unsigned SizeInBits = NumElem * ElementSizeBytes * 8; in MergeConsecutiveStores()
[all …]
DTargetLowering.cpp3155 unsigned NumElem = SrcVT.getVectorNumElements(); in scalarizeVectorLoad() local
3168 for (unsigned Idx = 0; Idx < NumElem; ++Idx) { in scalarizeVectorLoad()
3218 unsigned NumElem = StVT.getVectorNumElements(); in scalarizeVectorStore() local
3223 for (unsigned Idx = 0; Idx < NumElem; ++Idx) { in scalarizeVectorStore()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-stress/
Dllvm-stress.cpp631 unsigned NumElem = cast<VectorType>(Val0->getType())->getNumElements(); in Act() local
632 CondTy = VectorType::get(CondTy, NumElem); in Act()
/external/llvm/tools/llvm-stress/
Dllvm-stress.cpp581 unsigned NumElem = cast<VectorType>(Val0->getType())->getNumElements(); in Act() local
582 CondTy = VectorType::get(CondTy, NumElem); in Act()
/external/llvm/lib/Target/AMDGPU/
DAMDGPUISelLowering.h146 unsigned NumElem,
/external/swiftshader/third_party/LLVM/lib/CodeGen/SelectionDAG/
DLegalizeDAG.cpp999 unsigned NumElem = VT.getVectorNumElements(); in LegalizeOp() local
1002 for (unsigned Idx = 0; Idx < NumElem; Idx++) { in LegalizeOp()
1378 unsigned NumElem = SrcVT.getVectorNumElements(); in LegalizeOp() local
1381 for (unsigned Idx=0; Idx<NumElem; Idx++) { in LegalizeOp()
1414 unsigned NumElem = SrcVT.getVectorNumElements(); in LegalizeOp() local
1417 for (unsigned Idx=0; Idx<NumElem; Idx++) { in LegalizeOp()
1443 SrcVT.getScalarType(), NumElem*SizeRatio); in LegalizeOp()
1636 unsigned NumElem = StVT.getVectorNumElements(); in LegalizeOp() local
1663 for (unsigned Idx = 0; Idx < NumElem; Idx++) { in LegalizeOp()
1697 SizeRatio * NumElem); in LegalizeOp()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/SelectionDAG/
DLegalizeIntegerTypes.cpp717 unsigned NumElem = WideInOp.getValueType().getVectorNumElements(); in PromoteIntRes_TRUNCATE() local
719 N->getValueType(0).getScalarType(), NumElem); in PromoteIntRes_TRUNCATE()
724 NumElem); in PromoteIntRes_TRUNCATE()
3470 unsigned NumElem = N->getOperand(0).getValueType().getVectorNumElements(); in PromoteIntRes_CONCAT_VECTORS() local
3473 assert(NumElem * NumOperands == NumOutElem && in PromoteIntRes_CONCAT_VECTORS()
3483 assert(NumElem == Op.getValueType().getVectorNumElements() && in PromoteIntRes_CONCAT_VECTORS()
3486 for (unsigned j = 0; j < NumElem; ++j) { in PromoteIntRes_CONCAT_VECTORS()
3490 Ops[i * NumElem + j] = DAG.getAnyExtOrTrunc(Ext, dl, OutElemTy); in PromoteIntRes_CONCAT_VECTORS()
3585 unsigned NumElem = Incoming->getValueType(0).getVectorNumElements(); in PromoteIntOp_CONCAT_VECTORS() local
3587 for (unsigned i=0; i<NumElem; ++i) { in PromoteIntOp_CONCAT_VECTORS()
DDAGCombiner.cpp9424 unsigned NumElem = VecTy.getVectorNumElements(); in visitTRUNCATE() local
9427 EVT NVT = EVT::getVectorVT(*DAG.getContext(), TrTy, SizeRatio * NumElem); in visitTRUNCATE()
14173 unsigned NumElem = (UseVector) ? LastLegalVectorType : LastLegalType; in MergeConsecutiveStores() local
14177 if (NumElem < 2) { in MergeConsecutiveStores()
14198 if (!checkMergeStoreCandidatesForDependencies(StoreNodes, NumElem, in MergeConsecutiveStores()
14200 StoreNodes.erase(StoreNodes.begin(), StoreNodes.begin() + NumElem); in MergeConsecutiveStores()
14201 NumConsecutiveStores -= NumElem; in MergeConsecutiveStores()
14205 RV |= MergeStoresOfConstantsOrVecElts(StoreNodes, MemVT, NumElem, true, in MergeConsecutiveStores()
14209 StoreNodes.erase(StoreNodes.begin(), StoreNodes.begin() + NumElem); in MergeConsecutiveStores()
14210 NumConsecutiveStores -= NumElem; in MergeConsecutiveStores()
[all …]
DLegalizeVectorOps.cpp562 unsigned NumElem = SrcVT.getVectorNumElements(); in ExpandLoad() local
634 for (unsigned Idx = 0; Idx != NumElem; ++Idx) { in ExpandLoad()
DTargetLowering.cpp3871 unsigned NumElem = SrcVT.getVectorNumElements(); in scalarizeVectorLoad() local
3884 for (unsigned Idx = 0; Idx < NumElem; ++Idx) { in scalarizeVectorLoad()
3921 unsigned NumElem = StVT.getVectorNumElements(); in scalarizeVectorStore() local
3935 for (unsigned Idx = 0; Idx < NumElem; ++Idx) { in scalarizeVectorStore()
3941 (DAG.getDataLayout().isBigEndian() ? (NumElem - 1) - Idx : Idx); in scalarizeVectorStore()
3960 for (unsigned Idx = 0; Idx < NumElem; ++Idx) { in scalarizeVectorStore()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/
DAMDGPUISelLowering.h173 unsigned NumElem,
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Hexagon/
DHexagonISelLoweringHVX.cpp221 unsigned NumElem = VecTy.getVectorNumElements(); in typeSplit() local
222 assert((NumElem % 2) == 0 && "Expecting even-sized vector type"); in typeSplit()
223 MVT HalfTy = MVT::getVectorVT(VecTy.getVectorElementType(), NumElem/2); in typeSplit()
/external/swiftshader/third_party/LLVM/lib/VMCore/
DConstantFold.cpp712 unsigned NumElem = VTy->getNumElements(); in ConstantFoldSelectInstruction() local
713 std::vector<Constant*> Res(NumElem); in ConstantFoldSelectInstruction()
716 for (unsigned i = 0; i < NumElem; ++i) { in ConstantFoldSelectInstruction()
/external/llvm/include/llvm/IR/
DInstructions.h994 unsigned NumElem = Ptr->getType()->getVectorNumElements();
995 return VectorType::get(PtrTy, NumElem);
999 unsigned NumElem = Index->getType()->getVectorNumElements();
1000 return VectorType::get(PtrTy, NumElem);
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/
DInstructions.h1013 unsigned NumElem = Ptr->getType()->getVectorNumElements();
1014 return VectorType::get(PtrTy, NumElem);
1018 unsigned NumElem = Index->getType()->getVectorNumElements();
1019 return VectorType::get(PtrTy, NumElem);
/external/llvm/include/llvm/Target/
DTargetLowering.h304 unsigned NumElem, in storeOfVectorConstantIsCheap() argument
/external/llvm/lib/Transforms/Vectorize/
DBBVectorize.cpp2381 unsigned NumElem = VArgType->getVectorNumElements(); in getReplacementShuffleMask() local
2382 std::vector<Constant*> Mask(NumElem); in getReplacementShuffleMask()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/CodeGen/
DTargetLowering.h410 unsigned NumElem, in storeOfVectorConstantIsCheap() argument

12