Home
last modified time | relevance | path

Searched refs:EltSize (Results 1 – 17 of 17) sorted by relevance

/external/llvm/lib/Transforms/Scalar/
DScalarReplAggregates.cpp363 unsigned EltSize = In->getPrimitiveSizeInBits()/8; in MergeInTypeForLoadOrStore() local
364 if (EltSize == AllocaSize) in MergeInTypeForLoadOrStore()
370 if (Offset % EltSize == 0 && AllocaSize % EltSize == 0 && in MergeInTypeForLoadOrStore()
371 (!VectorTy || EltSize == VectorTy->getElementType() in MergeInTypeForLoadOrStore()
375 VectorTy = VectorType::get(In, AllocaSize/EltSize); in MergeInTypeForLoadOrStore()
698 unsigned EltSize = TD.getTypeAllocSizeInBits(VTy->getElementType()); in ConvertScalar_ExtractValue() local
699 Elt = Offset/EltSize; in ConvertScalar_ExtractValue()
700 assert(EltSize*Elt == Offset && "Invalid modulus in validity checking"); in ConvertScalar_ExtractValue()
724 uint64_t EltSize = TD.getTypeAllocSizeInBits(AT->getElementType()); in ConvertScalar_ExtractValue() local
728 Offset+i*EltSize, Builder); in ConvertScalar_ExtractValue()
[all …]
/external/llvm/include/llvm/Support/
DAllocator.h171 size_t EltSize = (sizeof(T)+Alignment-1)&(-Alignment);
172 return static_cast<T*>(Allocate(Num * EltSize, Alignment));
/external/llvm/lib/CodeGen/
DAnalysis.cpp94 uint64_t EltSize = TLI.getTargetData()->getTypeAllocSize(EltTy); in ComputeValueVTs() local
97 StartingOffset + i * EltSize); in ComputeValueVTs()
/external/llvm/lib/Analysis/
DConstantFolding.cpp322 uint64_t EltSize = TD.getTypeAllocSize(CS->getOperand(Index)->getType()); in ReadDataFromGlobal() local
324 if (ByteOffset < EltSize && in ReadDataFromGlobal()
353 uint64_t EltSize = TD.getTypeAllocSize(EltTy); in ReadDataFromGlobal() local
354 uint64_t Index = ByteOffset / EltSize; in ReadDataFromGlobal()
355 uint64_t Offset = ByteOffset - Index * EltSize; in ReadDataFromGlobal()
366 if (EltSize >= BytesLeft) in ReadDataFromGlobal()
370 BytesLeft -= EltSize; in ReadDataFromGlobal()
371 CurPtr += EltSize; in ReadDataFromGlobal()
/external/llvm/lib/Target/PowerPC/
DPPCISelLowering.h221 bool isSplatShuffleMask(ShuffleVectorSDNode *N, unsigned EltSize);
229 unsigned getVSPLTImmediate(SDNode *N, unsigned EltSize);
DPPCISelLowering.cpp650 bool PPC::isSplatShuffleMask(ShuffleVectorSDNode *N, unsigned EltSize) { in isSplatShuffleMask() argument
652 (EltSize == 1 || EltSize == 2 || EltSize == 4)); in isSplatShuffleMask()
664 for (unsigned i = 1; i != EltSize; ++i) in isSplatShuffleMask()
668 for (unsigned i = EltSize, e = 16; i != e; i += EltSize) { in isSplatShuffleMask()
670 for (unsigned j = 0; j != EltSize; ++j) in isSplatShuffleMask()
695 unsigned PPC::getVSPLTImmediate(SDNode *N, unsigned EltSize) { in getVSPLTImmediate() argument
697 assert(isSplatShuffleMask(SVOp, EltSize)); in getVSPLTImmediate()
698 return SVOp->getMaskElt(0) / EltSize; in getVSPLTImmediate()
712 unsigned EltSize = 16/N->getNumOperands(); in get_VSPLTI_elt() local
713 if (EltSize < ByteSize) { in get_VSPLTI_elt()
[all …]
/external/clang/lib/CodeGen/
DTargetInfo.cpp1285 uint64_t EltSize = getContext().getTypeSize(AT->getElementType()); in classify() local
1291 if (Size > 128 && EltSize != 256) in classify()
1294 for (uint64_t i=0, Offset=OffsetBase; i<ArraySize; ++i, Offset += EltSize) { in classify()
1555 unsigned EltSize = (unsigned)Context.getTypeSize(AT->getElementType()); in BitsContainNoUserData() local
1561 unsigned EltOffset = i*EltSize; in BitsContainNoUserData()
1644 unsigned EltSize = TD.getTypeAllocSize(EltTy); in ContainsFloatAtOffset() local
1645 IROffset -= IROffset/EltSize*EltSize; in ContainsFloatAtOffset()
1730 unsigned EltSize = getTargetData().getTypeAllocSize(EltTy); in GetINTEGERTypeAtOffset() local
1731 unsigned EltOffset = IROffset/EltSize*EltSize; in GetINTEGERTypeAtOffset()
/external/llvm/lib/Transforms/InstCombine/
DInstructionCombining.cpp780 uint64_t EltSize = TD->getTypeAllocSize(AT->getElementType()); in FindElementAtOffset() local
781 assert(EltSize && "Cannot index into a zero-sized array"); in FindElementAtOffset()
782 NewIndices.push_back(ConstantInt::get(IntPtrTy,Offset/EltSize)); in FindElementAtOffset()
783 Offset %= EltSize; in FindElementAtOffset()
/external/clang/lib/AST/
DExprConstant.cpp1237 unsigned EltSize = Info.Ctx.getTypeSize(EltTy); in EvalAndBitcastToAPInt() local
1255 Res |= EltAsInt.zextOrTrunc(VecSize).rotr(i*EltSize+BaseEltSize); in EvalAndBitcastToAPInt()
1257 Res |= EltAsInt.zextOrTrunc(VecSize).rotl(i*EltSize); in EvalAndBitcastToAPInt()
3701 unsigned EltSize = Info.Ctx.getTypeSize(EltTy); in VisitCastExpr() local
3707 unsigned FloatEltSize = EltSize; in VisitCastExpr()
3713 Elt = SValInt.rotl(i*EltSize+FloatEltSize).trunc(FloatEltSize); in VisitCastExpr()
3715 Elt = SValInt.rotr(i*EltSize).trunc(FloatEltSize); in VisitCastExpr()
3722 Elt = SValInt.rotl(i*EltSize+EltSize).zextOrTrunc(EltSize); in VisitCastExpr()
3724 Elt = SValInt.rotr(i*EltSize).zextOrTrunc(EltSize); in VisitCastExpr()
/external/llvm/lib/CodeGen/SelectionDAG/
DLegalizeTypes.cpp992 unsigned EltSize = EltVT.getSizeInBits() / 8; // FIXME: should be ABI size. in GetVectorElementPointer() local
995 DAG.getConstant(EltSize, Index.getValueType())); in GetVectorElementPointer()
DLegalizeDAG.cpp593 unsigned EltSize = EltVT.getSizeInBits()/8; in PerformInsertVectorEltInMemory() local
594 Tmp3 = DAG.getNode(ISD::MUL, dl, IdxVT, Tmp3,DAG.getConstant(EltSize, IdxVT)); in PerformInsertVectorEltInMemory()
1343 unsigned EltSize = in ExpandExtractFromVectorThroughStack() local
1346 DAG.getConstant(EltSize, Idx.getValueType())); in ExpandExtractFromVectorThroughStack()
1385 unsigned EltSize = in ExpandInsertToVectorThroughStack() local
1389 DAG.getConstant(EltSize, Idx.getValueType())); in ExpandInsertToVectorThroughStack()
DSelectionDAG.cpp136 unsigned EltSize = N->getValueType(0).getVectorElementType().getSizeInBits(); in isBuildVectorAllOnes() local
139 EltSize) in isBuildVectorAllOnes()
143 .bitcastToAPInt().countTrailingOnes() < EltSize) in isBuildVectorAllOnes()
DDAGCombiner.cpp8272 unsigned EltSize = (unsigned)TD.getTypeAllocSize(Elts[0]->getType()); in SimplifySelectCC() local
8273 SDValue One = DAG.getIntPtrConstant(EltSize); in SimplifySelectCC()
/external/llvm/lib/Target/ARM/
DARMISelLowering.cpp4166 unsigned EltSize = VT.getVectorElementType().getSizeInBits(); in LowerBUILD_VECTOR() local
4170 if (usesOnlyOneValue && EltSize <= 32) { in LowerBUILD_VECTOR()
4205 if (EltSize >= 32) { in LowerBUILD_VECTOR()
4208 EVT EltVT = EVT::getFloatingPointVT(EltSize); in LowerBUILD_VECTOR()
4388 unsigned EltSize = VT.getVectorElementType().getSizeInBits(); in isShuffleMaskLegal() local
4389 return (EltSize >= 32 || in isShuffleMaskLegal()
4520 unsigned EltSize = VT.getVectorElementType().getSizeInBits(); in LowerVECTOR_SHUFFLE() local
4521 if (EltSize <= 32) { in LowerVECTOR_SHUFFLE()
4615 if (EltSize >= 32) { in LowerVECTOR_SHUFFLE()
4618 EVT EltVT = EVT::getFloatingPointVT(EltSize); in LowerVECTOR_SHUFFLE()
[all …]
/external/llvm/lib/VMCore/
DConstants.cpp2361 unsigned EltSize = getElementByteSize(); in getSplatValue() local
2363 if (memcmp(Base, Base+i*EltSize, EltSize)) in getSplatValue()
/external/llvm/lib/Transforms/IPO/
DGlobalOpt.cpp544 uint64_t EltSize = TD.getTypeAllocSize(STy->getElementType()); in SRAGlobal() local
561 unsigned NewAlign = (unsigned)MinAlign(StartAlignment, EltSize*i); in SRAGlobal()
/external/llvm/lib/Target/X86/
DX86ISelLowering.cpp3927 unsigned EltSize = VT.getVectorElementType().getSizeInBits() >> 3; in getShufflePALIGNRImmediate() local
3944 return (Val - i) * EltSize; in getShufflePALIGNRImmediate()
13253 unsigned EltSize = in PerformEXTRACT_VECTOR_ELTCombine() local
13255 uint64_t Offset = EltSize * cast<ConstantSDNode>(Idx)->getZExtValue(); in PerformEXTRACT_VECTOR_ELTCombine()