Home
last modified time | relevance | path

Searched refs:getSizeInBits (Results 1 – 25 of 65) sorted by relevance

123

/external/llvm/include/llvm/CodeGen/
DValueTypes.h344 unsigned getSizeInBits() const { in getSizeInBits() function
414 return (getSizeInBits() + 7) / 8; in getStoreSize()
425 return getSizeInBits() > VT.getSizeInBits(); in bitsGT()
430 return getSizeInBits() >= VT.getSizeInBits(); in bitsGE()
435 return getSizeInBits() < VT.getSizeInBits(); in bitsLT()
440 return getSizeInBits() <= VT.getSizeInBits(); in bitsLE()
605 unsigned BitWidth = EltTy.getSizeInBits(); in changeVectorElementTypeToInteger()
682 return (getSizeInBits() & 7) == 0; in isByteSized()
687 unsigned BitSize = getSizeInBits(); in isRound()
694 return getSizeInBits() == VT.getSizeInBits(); in bitsEq()
[all …]
/external/llvm/utils/TableGen/
DTGValueTypes.cpp37 virtual unsigned getSizeInBits() const = 0;
51 unsigned getSizeInBits() const { in getSizeInBits() function in ExtendedIntegerType
68 unsigned getSizeInBits() const { in getSizeInBits() function in ExtendedVectorType
69 return getNumElements() * getElementType().getSizeInBits(); in getSizeInBits()
102 return isExtendedVector() && getSizeInBits() == 64; in isExtended64BitVector()
107 return isExtendedVector() && getSizeInBits() == 128; in isExtended128BitVector()
122 return LLVMTy->getSizeInBits(); in getExtendedSizeInBits()
/external/llvm/lib/Target/X86/Utils/
DX86ShuffleDecode.cpp67 unsigned Offset = Imm * (VT.getVectorElementType().getSizeInBits() / 8); in DecodePALIGNRMask()
69 unsigned NumLanes = VT.getSizeInBits() / 128; in DecodePALIGNRMask()
88 unsigned NumLanes = VT.getSizeInBits() / 128; in DecodePSHUFMask()
139 unsigned NumLanes = VT.getSizeInBits() / 128; in DecodeSHUFPMask()
163 unsigned NumLanes = VT.getSizeInBits() / 128; in DecodeUNPCKHMask()
183 unsigned NumLanes = VT.getSizeInBits() / 128; in DecodeUNPCKLMask()
/external/llvm/lib/CodeGen/SelectionDAG/
DLegalizeVectorOps.cpp354 EltVT = EVT::getIntegerVT(*DAG.getContext(), 2 * EltVT.getSizeInBits()); in PromoteVectorOpINT_TO_FP()
442 unsigned SrcEltBits = SrcEltVT.getSizeInBits(); in ExpandLoad()
447 unsigned WideBits = WideVT.getSizeInBits(); in ExpandLoad()
492 unsigned Stride = SrcVT.getScalarType().getSizeInBits()/8; in ExpandLoad()
541 unsigned ScalarSize = MemSclVT.getSizeInBits(); in ExpandStore()
602 assert(MaskTy.getSizeInBits() == Op1.getValueType().getSizeInBits() in ExpandSELECT()
609 DAG.getConstant(APInt::getAllOnesValue(BitTy.getSizeInBits()), BitTy), in ExpandSELECT()
623 APInt::getAllOnesValue(BitTy.getSizeInBits()), MaskTy); in ExpandSELECT()
643 unsigned BW = VT.getScalarType().getSizeInBits(); in ExpandSEXTINREG()
644 unsigned OrigBW = OrigTy.getScalarType().getSizeInBits(); in ExpandSEXTINREG()
[all …]
DLegalizeIntegerTypes.cpp247 NOutVT.getSizeInBits()), in PromoteIntRes_BITCAST()
269 unsigned DiffBits = NVT.getSizeInBits() - OVT.getSizeInBits(); in PromoteIntRes_BSWAP()
318 DAG.getConstant(NVT.getSizeInBits() - in PromoteIntRes_CTLZ()
319 OVT.getSizeInBits(), NVT)); in PromoteIntRes_CTLZ()
337 APInt TopBit(NVT.getSizeInBits(), 0); in PromoteIntRes_CTTZ()
338 TopBit.setBit(OVT.getSizeInBits()); in PromoteIntRes_CTTZ()
680 DAG.getIntPtrConstant(SmallVT.getSizeInBits())); in PromoteIntRes_XMULO()
741 DAG.getConstant(i * RegVT.getSizeInBits(), in PromoteIntRes_VAARG()
912 DAG.getConstant(OVT.getSizeInBits(), TLI.getPointerTy())); in PromoteIntOp_BUILD_PAIR()
927 assert(N->getOperand(0).getValueType().getSizeInBits() >= in PromoteIntOp_BUILD_VECTOR()
[all …]
DLegalizeTypes.cpp758 assert(Result.getValueType().getSizeInBits() >= in SetScalarizedVector()
759 Op.getValueType().getVectorElementType().getSizeInBits() && in SetScalarizedVector()
869 unsigned BitWidth = Op.getValueType().getSizeInBits(); in BitConvertToInteger()
878 unsigned EltWidth = Op.getValueType().getVectorElementType().getSizeInBits(); in BitConvertVectorToIntegerVector()
997 unsigned EltSize = EltVT.getSizeInBits() / 8; // FIXME: should be ABI size. in GetVectorElementPointer()
1012 LVT.getSizeInBits() + HVT.getSizeInBits()); in JoinIntegers()
1017 DAG.getConstant(LVT.getSizeInBits(), TLI.getPointerTy())); in JoinIntegers()
1092 assert(LoVT.getSizeInBits() + HiVT.getSizeInBits() == in SplitInteger()
1093 Op.getValueType().getSizeInBits() && "Invalid integer splitting!"); in SplitInteger()
1096 DAG.getConstant(LoVT.getSizeInBits(), TLI.getPointerTy())); in SplitInteger()
[all …]
DTargetLowering.cpp358 assert(Op.getValueType().getScalarType().getSizeInBits() == BitWidth && in SimplifyDemandedBits()
621 unsigned InnerBits = InnerVT.getSizeInBits(); in SimplifyDemandedBits()
625 if (!APInt(BitWidth, ShAmt).isIntN(ShTy.getSizeInBits())) in SimplifyDemandedBits()
647 unsigned VTSize = VT.getSizeInBits(); in SimplifyDemandedBits()
711 InDemandedMask |= APInt::getSignBit(VT.getScalarType().getSizeInBits()); in SimplifyDemandedBits()
740 unsigned ShAmt = ExVT.getScalarType().getSizeInBits(); in SimplifyDemandedBits()
758 BitWidth - ExVT.getScalarType().getSizeInBits()); in SimplifyDemandedBits()
765 APInt::getSignBit(ExVT.getScalarType().getSizeInBits()).zext(BitWidth); in SimplifyDemandedBits()
768 ExVT.getScalarType().getSizeInBits()) & in SimplifyDemandedBits()
799 Op.getOperand(0).getValueType().getScalarType().getSizeInBits(); in SimplifyDemandedBits()
[all …]
DDAGCombiner.cpp138 unsigned BitWidth = Op.getValueType().getScalarType().getSizeInBits(); in SimplifyDemandedBits()
1531 unsigned DestBits = VT.getScalarType().getSizeInBits(); in visitADD()
1787 EltVT.getSizeInBits() >= SplatBitSize); in isConstantSplatVector()
1947 DAG.getConstant(VT.getSizeInBits()-1, in visitSDIV()
1953 DAG.getConstant(VT.getSizeInBits() - lg2, in visitSDIV()
2102 DAG.getConstant(APInt::getAllOnesValue(VT.getSizeInBits()), in visitUREM()
2148 DAG.getConstant(N0.getValueType().getSizeInBits() - 1, in visitMULHS()
2158 unsigned SimpleSize = Simple.getSizeInBits(); in visitMULHS()
2194 unsigned SimpleSize = Simple.getSizeInBits(); in visitMULHU()
2276 unsigned SimpleSize = Simple.getSizeInBits(); in visitSMUL_LOHI()
[all …]
DLegalizeDAG.cpp317 EVT intVT = EVT::getIntegerVT(*DAG.getContext(), VT.getSizeInBits()); in ExpandUnalignedStore()
334 StoredVT.getSizeInBits())); in ExpandUnalignedStore()
335 unsigned StoredBytes = StoredVT.getSizeInBits() / 8; in ExpandUnalignedStore()
336 unsigned RegBytes = RegVT.getSizeInBits() / 8; in ExpandUnalignedStore()
397 int NumBits = NewStoredVT.getSizeInBits(); in ExpandUnalignedStore()
437 EVT intVT = EVT::getIntegerVT(*DAG.getContext(), LoadedVT.getSizeInBits()); in ExpandUnalignedLoad()
458 unsigned LoadedBytes = LoadedVT.getSizeInBits() / 8; in ExpandUnalignedLoad()
459 unsigned RegBytes = RegVT.getSizeInBits() / 8; in ExpandUnalignedLoad()
521 unsigned NumBits = LoadedVT.getSizeInBits(); in ExpandUnalignedLoad()
605 unsigned EltSize = EltVT.getSizeInBits()/8; in PerformInsertVectorEltInMemory()
[all …]
DLegalizeVectorTypes.cpp656 EVT LoIntVT = EVT::getIntegerVT(*DAG.getContext(), LoVT.getSizeInBits()); in SplitVecRes_BITCAST()
657 EVT HiIntVT = EVT::getIntegerVT(*DAG.getContext(), HiVT.getSizeInBits()); in SplitVecRes_BITCAST()
784 unsigned IncrementSize = Lo.getValueType().getSizeInBits() / 8; in SplitVecRes_INSERT_VECTOR_ELT()
826 unsigned IncrementSize = LoMemVT.getSizeInBits()/8; in SplitVecRes_LOAD()
1258 unsigned IncrementSize = LoMemVT.getSizeInBits()/8; in SplitVecOp_STORE()
1333 unsigned InElementSize = InVT.getVectorElementType().getSizeInBits(); in SplitVecOp_TRUNCATE()
1334 unsigned OutElementSize = OutVT.getVectorElementType().getSizeInBits(); in SplitVecOp_TRUNCATE()
1843 unsigned WidenSize = WidenVT.getSizeInBits(); in WidenVecRes_BITCAST()
1844 unsigned InSize = InVT.getSizeInBits(); in WidenVecRes_BITCAST()
1855 WidenSize / InEltVT.getSizeInBits()); in WidenVecRes_BITCAST()
[all …]
DSelectionDAG.cpp122 unsigned EltSize = N->getValueType(0).getVectorElementType().getSizeInBits(); in isBuildVectorAllOnes()
798 assert(VT.getSizeInBits() == 2 * N->getOperand(0).getValueSizeInBits() && in VerifyNodeCommon()
940 unsigned BitWidth = Op.getValueType().getScalarType().getSizeInBits(); in getZeroExtendInReg()
942 VT.getSizeInBits()); in getZeroExtendInReg()
952 getConstant(APInt::getAllOnesValue(EltVT.getSizeInBits()), VT); in getNOT()
958 assert((EltVT.getSizeInBits() >= 64 || in getConstant()
959 (uint64_t)((int64_t)Val >> EltVT.getSizeInBits()) + 1 < 2) && in getConstant()
961 return getConstant(APInt(EltVT.getSizeInBits(), Val), VT, isT); in getConstant()
983 APInt NewVal = Elt->getValue().zext(EltVT.getSizeInBits()); in getConstant()
987 assert(Elt->getBitWidth() == EltVT.getSizeInBits() && in getConstant()
[all …]
DLegalizeTypesGeneric.cpp104 unsigned NewSizeInBits = ElemVT.getSizeInBits() / 2; in ExpandRes_BITCAST()
136 LHS.getValueType().getSizeInBits() << 1), in ExpandRes_BITCAST()
170 unsigned IncrementSize = NOutVT.getSizeInBits() / 8; in ExpandRes_BITCAST()
263 unsigned IncrementSize = NVT.getSizeInBits() / 8; in ExpandRes_NormalLoad()
444 unsigned IncrementSize = NVT.getSizeInBits() / 8; in ExpandOp_NormalStore()
/external/llvm/lib/Target/NVPTX/
DNVPTXISelLowering.cpp376 O << ".param .b" << getPointerTy().getSizeInBits() << " _"; in getPrototype()
391 unsigned sz = elemtype.getSizeInBits(); in getPrototype()
447 sz = thePointerTy.getSizeInBits(); in getPrototype()
562 unsigned sz = elemtype.getSizeInBits(); in LowerCall()
566 if (elemtype.getSizeInBits() < 16) { in LowerCall()
603 if (EltVT.getSizeInBits() < 16) { in LowerCall()
653 if (EltVT.getSizeInBits() == 64) in LowerCall()
724 unsigned sz = VT.getSizeInBits(); in LowerCall()
793 unsigned sz = elemtype.getSizeInBits(); in LowerCall()
802 if (elemtype.getSizeInBits() < 16) { in LowerCall()
[all …]
/external/llvm/lib/CodeGen/
DBasicTargetTransformInfo.cpp278 SrcLT.second.getSizeInBits() == DstLT.second.getSizeInBits()) { in getCastInstrCost()
317 SrcLT.second.getSizeInBits() == DstLT.second.getSizeInBits()) { in getCastInstrCost()
/external/llvm/include/llvm/IR/
DDataLayout.h418 uint64_t getSizeInBits() const { in getSizeInBits() function
462 return getStructLayout(cast<StructType>(Ty))->getSizeInBits(); in getTypeSizeInBits()
/external/clang/lib/AST/
DRecordLayoutBuilder.cpp782 uint64_t getSizeInBits() const { return Size; } in getSizeInBits() function in __anon8edbb7a10111::RecordLayoutBuilder
1657 llvm::RoundUpToAlignment(getSizeInBits(), in Layout()
1670 llvm::RoundUpToAlignment(getSizeInBits(), in Layout()
1799 setSize(std::max(getSizeInBits(), getDataSizeInBits())); in LayoutWideBitField()
1936 setSize(std::max(getSizeInBits(), getDataSizeInBits())); in LayoutBitField()
2055 setSize(std::max(getSizeInBits(), getDataSizeInBits())); in LayoutField()
2063 if (Context.getLangOpts().CPlusPlus && getSizeInBits() == 0) { in FinishLayout()
2077 uint64_t UnpaddedSize = getSizeInBits() - UnfilledBitsInLastUnit; in FinishLayout()
2079 llvm::RoundUpToAlignment(getSizeInBits(), in FinishLayout()
2083 = llvm::RoundUpToAlignment(getSizeInBits(), Context.toBits(Alignment)); in FinishLayout()
[all …]
/external/llvm/lib/Target/Mips/
DMipsISelDAGToDAG.cpp120 assert(cast<MemSDNode>(Node)->getMemoryVT().getSizeInBits() / 8 <= in Select()
DMips16ISelDAGToDAG.cpp132 switch (SD->getMemoryVT().getSizeInBits()) { in getMips16SPRefReg()
143 switch (SD->getMemoryVT().getSizeInBits()) { in getMips16SPRefReg()
/external/llvm/lib/Target/X86/
DX86ISelLowering.cpp68 unsigned Factor = VT.getSizeInBits()/vectorWidth; in ExtractSubVector()
77 unsigned ElemsPerChunk = vectorWidth / ElVT.getSizeInBits(); in ExtractSubVector()
81 unsigned NormalizedIdxVal = (((IdxVal * ElVT.getSizeInBits()) / vectorWidth) in ExtractSubVector()
129 unsigned ElemsPerChunk = vectorWidth/ElVT.getSizeInBits(); in InsertSubVector()
133 unsigned NormalizedIdxVal = (((IdxVal * ElVT.getSizeInBits())/vectorWidth) in InsertSubVector()
1399 unsigned EltSize = VT.getVectorElementType().getSizeInBits(); in resetOperationActions()
2122 int FI = MFI->CreateFixedObject(ValVT.getSizeInBits()/8, in LowerMemArgument()
2704 uint32_t OpSize = (VA.getLocVT().getSizeInBits()+7)/8; in LowerCall()
2968 unsigned Bytes = Arg.getValueType().getSizeInBits() / 8; in MatchingStackOffset()
3610 unsigned NumLanes = VT.getSizeInBits()/128; in isPALIGNRMask()
[all …]
DX86SelectionDAGInfo.cpp118 unsigned UBytes = AVT.getSizeInBits() / 8; in EmitTargetCodeForMemset()
225 unsigned UBytes = AVT.getSizeInBits() / 8; in EmitTargetCodeForMemcpy()
/external/llvm/lib/IR/
DDebugInfo.cpp606 return getSizeInBits(); in getOriginalTypeSize()
612 return getSizeInBits(); in getOriginalTypeSize()
619 return getSizeInBits(); in getOriginalTypeSize()
624 return BaseType.getSizeInBits(); in getOriginalTypeSize()
1162 << ", size " << getSizeInBits() in printInternal()
DValueTypes.cpp24 EVT IntTy = getIntegerVT(Context, getVectorElementType().getSizeInBits()); in changeExtendedVectorElementTypeToInteger()
113 return "i" + utostr(getSizeInBits()); in getEVTString()
/external/llvm/lib/Target/AArch64/
DAArch64ISelDAGToDAG.cpp179 uint32_t RegWidth = N.getValueType().getSizeInBits(); in SelectLogicalImm()
195 unsigned DestWidth = DestType.getSizeInBits(); in TrySelectToMoveImm()
311 MemType.getSizeInBits()), in SelectToLitPool()
/external/llvm/lib/Target/ARM/
DARMISelLowering.cpp1874 unsigned Bytes = Arg.getValueType().getSizeInBits() / 8; in MatchingStackOffset()
2997 int FI = MFI->CreateFixedObject(VA.getLocVT().getSizeInBits()/8, in LowerFormalArguments()
3640 assert(DestVT.getSizeInBits() > 128 && in ExpandVectorExtension()
3643 if (SrcVT.getSizeInBits()*4 != DestVT.getSizeInBits() && in ExpandVectorExtension()
3644 SrcVT.getSizeInBits()*8 != DestVT.getSizeInBits()) in ExpandVectorExtension()
3648 unsigned SrcEltSize = SrcVT.getVectorElementType().getSizeInBits(); in ExpandVectorExtension()
3649 unsigned DestEltSize = DestVT.getVectorElementType().getSizeInBits(); in ExpandVectorExtension()
3730 unsigned VTBits = VT.getSizeInBits(); in LowerShiftRightParts()
3766 unsigned VTBits = VT.getSizeInBits(); in LowerShiftLeftParts()
4397 unsigned EltSz = VT.getVectorElementType().getSizeInBits(); in isVREVMask()
[all …]
/external/llvm/lib/Target/Hexagon/
DHexagonVarargsCallingConvention.h39 (MVT(MVT::i64).getSizeInBits() / 8))) { in CC_Hexagon32_VarArgs()

123