Home
last modified time | relevance | path

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

12

/external/llvm/utils/TableGen/
DTGValueTypes.cpp25 virtual unsigned getSizeInBits() const = 0;
36 unsigned getSizeInBits() const { in getSizeInBits() function in ExtendedIntegerType
50 unsigned getSizeInBits() const { in getSizeInBits() function in ExtendedVectorType
51 return getNumElements() * getElementType().getSizeInBits(); in getSizeInBits()
84 return isExtendedVector() && getSizeInBits() == 64; in isExtended64BitVector()
89 return isExtendedVector() && getSizeInBits() == 128; in isExtended128BitVector()
104 return LLVMTy->getSizeInBits(); in getExtendedSizeInBits()
/external/llvm/include/llvm/CodeGen/
DValueTypes.h242 unsigned getSizeInBits() const { in getSizeInBits() function
291 return (getSizeInBits() + 7) / 8; in getStoreSize()
505 return (getSizeInBits() & 7) == 0; in isByteSized()
510 unsigned BitSize = getSizeInBits(); in isRound()
517 return getSizeInBits() == VT.getSizeInBits(); in bitsEq()
523 return getSizeInBits() > VT.getSizeInBits(); in bitsGT()
529 return getSizeInBits() >= VT.getSizeInBits(); in bitsGE()
535 return getSizeInBits() < VT.getSizeInBits(); in bitsLT()
541 return getSizeInBits() <= VT.getSizeInBits(); in bitsLE()
577 unsigned getSizeInBits() const { in getSizeInBits() function
[all …]
/external/llvm/lib/VMCore/
DValueTypes.cpp53 return isExtendedVector() && getSizeInBits() == 64; in isExtended64BitVector()
57 return isExtendedVector() && getSizeInBits() == 128; in isExtended128BitVector()
61 return isExtendedVector() && getSizeInBits() == 256; in isExtended256BitVector()
65 return isExtendedVector() && getSizeInBits() == 512; in isExtended512BitVector()
96 return "i" + utostr(getSizeInBits()); in getEVTString()
/external/llvm/lib/CodeGen/SelectionDAG/
DLegalizeIntegerTypes.cpp221 NOutVT.getSizeInBits()), in PromoteIntRes_BITCAST()
241 unsigned DiffBits = NVT.getSizeInBits() - OVT.getSizeInBits(); in PromoteIntRes_BSWAP()
290 DAG.getConstant(NVT.getSizeInBits() - in PromoteIntRes_CTLZ()
291 OVT.getSizeInBits(), NVT)); in PromoteIntRes_CTLZ()
308 APInt TopBit(NVT.getSizeInBits(), 0); in PromoteIntRes_CTTZ()
309 TopBit.setBit(OVT.getSizeInBits()); in PromoteIntRes_CTTZ()
618 DAG.getIntPtrConstant(SmallVT.getSizeInBits())); in PromoteIntRes_XMULO()
674 DAG.getConstant(i * RegVT.getSizeInBits(), in PromoteIntRes_VAARG()
835 DAG.getConstant(OVT.getSizeInBits(), TLI.getPointerTy())); in PromoteIntOp_BUILD_PAIR()
850 assert(N->getOperand(0).getValueType().getSizeInBits() >= in PromoteIntOp_BUILD_VECTOR()
[all …]
DLegalizeVectorOps.cpp271 assert((SVT.getSizeInBits() == 64 || SVT.getSizeInBits() == 32) && in ExpandUINT_TO_FLOAT()
274 unsigned BW = SVT.getSizeInBits(); in ExpandUINT_TO_FLOAT()
280 uint64_t HWMask = (SVT.getSizeInBits()==64)?0x00000000FFFFFFFF:0x0000FFFF; in ExpandUINT_TO_FLOAT()
327 (EltVT.getSizeInBits()), EltVT), in UnrollVSETCC()
DLegalizeDAG.cpp399 EVT intVT = EVT::getIntegerVT(*DAG.getContext(), VT.getSizeInBits()); in ExpandUnalignedStore()
414 StoredVT.getSizeInBits())); in ExpandUnalignedStore()
415 unsigned StoredBytes = StoredVT.getSizeInBits() / 8; in ExpandUnalignedStore()
416 unsigned RegBytes = RegVT.getSizeInBits() / 8; in ExpandUnalignedStore()
474 int NumBits = NewStoredVT.getSizeInBits(); in ExpandUnalignedStore()
509 EVT intVT = EVT::getIntegerVT(*DAG.getContext(), LoadedVT.getSizeInBits()); in ExpandUnalignedLoad()
527 unsigned LoadedBytes = LoadedVT.getSizeInBits() / 8; in ExpandUnalignedLoad()
528 unsigned RegBytes = RegVT.getSizeInBits() / 8; in ExpandUnalignedLoad()
588 unsigned NumBits = LoadedVT.getSizeInBits(); in ExpandUnalignedLoad()
672 unsigned EltSize = EltVT.getSizeInBits()/8; in PerformInsertVectorEltInMemory()
[all …]
DDAGCombiner.cpp122 unsigned BitWidth = Op.getValueType().getScalarType().getSizeInBits(); in SimplifyDemandedBits()
1409 APInt Mask = APInt::getAllOnesValue(VT.getScalarType().getSizeInBits()); in visitADD()
1457 unsigned DestBits = VT.getScalarType().getSizeInBits(); in visitADD()
1504 APInt Mask = APInt::getAllOnesValue(VT.getScalarType().getSizeInBits()); in visitADDC()
1791 DAG.getConstant(VT.getSizeInBits()-1, in visitSDIV()
1797 DAG.getConstant(VT.getSizeInBits() - lg2, in visitSDIV()
1947 DAG.getConstant(APInt::getAllOnesValue(VT.getSizeInBits()), in visitUREM()
1993 DAG.getConstant(N0.getValueType().getSizeInBits() - 1, in visitMULHS()
2003 unsigned SimpleSize = Simple.getSizeInBits(); in visitMULHS()
2039 unsigned SimpleSize = Simple.getSizeInBits(); in visitMULHU()
[all …]
DTargetLowering.cpp683 unsigned NewVTSize = NewVT.getSizeInBits(); in getVectorTypeBreakdownMVT()
692 return NumVectorRegs*(NewVTSize/DestVT.getSizeInBits()); in getVectorTypeBreakdownMVT()
846 if (SVT.getVectorElementType().getSizeInBits() > EltVT.getSizeInBits() in computeRegisterProperties()
981 unsigned NewVTSize = NewVT.getSizeInBits(); in getVectorTypeBreakdown()
988 return NumVectorRegs*(NewVTSize/DestVT.getSizeInBits()); in getVectorTypeBreakdown()
1210 assert(Op.getValueType().getScalarType().getSizeInBits() == BitWidth && in SimplifyDemandedBits()
1474 BitWidth - InnerVT.getSizeInBits()) & in SimplifyDemandedBits()
1478 if (!APInt(BitWidth, ShAmt).isIntN(ShTy.getSizeInBits())) in SimplifyDemandedBits()
1500 unsigned VTSize = VT.getSizeInBits(); in SimplifyDemandedBits()
1564 InDemandedMask |= APInt::getSignBit(VT.getScalarType().getSizeInBits()); in SimplifyDemandedBits()
[all …]
DLegalizeTypes.cpp865 unsigned BitWidth = Op.getValueType().getSizeInBits(); in BitConvertToInteger()
874 unsigned EltWidth = Op.getValueType().getVectorElementType().getSizeInBits(); in BitConvertVectorToIntegerVector()
985 unsigned EltSize = EltVT.getSizeInBits() / 8; // FIXME: should be ABI size. in GetVectorElementPointer()
1000 LVT.getSizeInBits() + HVT.getSizeInBits()); in JoinIntegers()
1005 DAG.getConstant(LVT.getSizeInBits(), TLI.getPointerTy())); in JoinIntegers()
1123 assert(LoVT.getSizeInBits() + HiVT.getSizeInBits() == in SplitInteger()
1124 Op.getValueType().getSizeInBits() && "Invalid integer splitting!"); in SplitInteger()
1127 DAG.getConstant(LoVT.getSizeInBits(), TLI.getPointerTy())); in SplitInteger()
1136 Op.getValueType().getSizeInBits()/2); in SplitInteger()
DLegalizeVectorTypes.cpp558 EVT LoIntVT = EVT::getIntegerVT(*DAG.getContext(), LoVT.getSizeInBits()); in SplitVecRes_BITCAST()
559 EVT HiIntVT = EVT::getIntegerVT(*DAG.getContext(), HiVT.getSizeInBits()); in SplitVecRes_BITCAST()
684 unsigned IncrementSize = Lo.getValueType().getSizeInBits() / 8; in SplitVecRes_INSERT_VECTOR_ELT()
725 unsigned IncrementSize = LoMemVT.getSizeInBits()/8; in SplitVecRes_LOAD()
1117 unsigned IncrementSize = LoMemVT.getSizeInBits()/8; in SplitVecOp_STORE()
1598 unsigned WidenSize = WidenVT.getSizeInBits(); in WidenVecRes_BITCAST()
1599 unsigned InSize = InVT.getSizeInBits(); in WidenVecRes_BITCAST()
1610 WidenSize / InEltVT.getSizeInBits()); in WidenVecRes_BITCAST()
2062 unsigned InWidenSize = InWidenVT.getSizeInBits(); in WidenVecOp_BITCAST()
2063 unsigned Size = VT.getSizeInBits(); in WidenVecOp_BITCAST()
[all …]
DSelectionDAG.cpp762 assert(VT.getSizeInBits() == 2 * N->getOperand(0).getValueSizeInBits() && in VerifyNodeCommon()
896 unsigned BitWidth = Op.getValueType().getScalarType().getSizeInBits(); in getZeroExtendInReg()
898 VT.getSizeInBits()); in getZeroExtendInReg()
908 getConstant(APInt::getAllOnesValue(EltVT.getSizeInBits()), VT); in getNOT()
914 assert((EltVT.getSizeInBits() >= 64 || in getConstant()
915 (uint64_t)((int64_t)Val >> EltVT.getSizeInBits()) + 1 < 2) && in getConstant()
917 return getConstant(APInt(EltVT.getSizeInBits(), Val), VT, isT); in getConstant()
928 assert(Val.getBitWidth() == EltVT.getSizeInBits() && in getConstant()
1026 unsigned BitWidth = PTy.getSizeInBits(); in getGlobalAddress()
1568 unsigned BitWidth = Op.getValueType().getScalarType().getSizeInBits(); in SignBitIsZero()
[all …]
DLegalizeTypesGeneric.cpp131 unsigned IncrementSize = NOutVT.getSizeInBits() / 8; in ExpandRes_BITCAST()
217 unsigned IncrementSize = NVT.getSizeInBits() / 8; in ExpandRes_NormalLoad()
397 unsigned IncrementSize = NVT.getSizeInBits() / 8; in ExpandOp_NormalStore()
DFastISel.cpp181 uint32_t IntBitWidth = IntVT.getSizeInBits(); in materializeRegForValue()
800 if (VT.getSizeInBits() > 64) return false; in SelectFNeg()
801 EVT IntVT = EVT::getIntegerVT(I->getContext(), VT.getSizeInBits()); in SelectFNeg()
812 UINT64_C(1) << (VT.getSizeInBits()-1), in SelectFNeg()
1066 Imm >= VT.getSizeInBits()) in FastEmit_ri_()
1078 VT.getSizeInBits()); in FastEmit_ri_()
DLegalizeFloatTypes.cpp134 unsigned Size = NVT.getSizeInBits(); in SoftenFloatRes_FABS()
175 unsigned LSize = LVT.getSizeInBits(); in SoftenFloatRes_FCOPYSIGN()
176 unsigned RSize = RVT.getSizeInBits(); in SoftenFloatRes_FCOPYSIGN()
185 int SizeDiff = RVT.getSizeInBits() - LVT.getSizeInBits(); in SoftenFloatRes_FCOPYSIGN()
879 assert(NVT.getSizeInBits() == integerPartWidth && in ExpandFloatRes_ConstantFP()
1056 Lo = DAG.getConstantFP(APFloat(APInt(NVT.getSizeInBits(), 0)), NVT); in ExpandFloatRes_FP_EXTEND()
1151 Lo = DAG.getConstantFP(APFloat(APInt(NVT.getSizeInBits(), 0)), NVT); in ExpandFloatRes_LOAD()
1175 Lo = DAG.getConstantFP(APFloat(APInt(NVT.getSizeInBits(), 0)), NVT); in ExpandFloatRes_XINT_TO_FP()
DSelectionDAGBuilder.cpp111 unsigned PartBits = PartVT.getSizeInBits(); in getCopyFromParts()
112 unsigned ValueBits = ValueVT.getSizeInBits(); in getCopyFromParts()
153 DAG.getConstant(Lo.getValueType().getSizeInBits(), in getCopyFromParts()
172 EVT IntVT = EVT::getIntegerVT(*DAG.getContext(), ValueVT.getSizeInBits()); in getCopyFromParts()
205 if (PartVT.getSizeInBits() == ValueVT.getSizeInBits()) in getCopyFromParts()
283 if (ValueVT.getSizeInBits() == PartVT.getSizeInBits()) in getCopyFromPartsVector()
297 if (PartVT.getSizeInBits() == ValueVT.getSizeInBits() && in getCopyFromPartsVector()
336 unsigned PartBits = PartVT.getSizeInBits(); in getCopyToParts()
350 if (NumParts * PartBits > ValueVT.getSizeInBits()) { in getCopyToParts()
361 } else if (PartBits == ValueVT.getSizeInBits()) { in getCopyToParts()
[all …]
/external/clang/lib/AST/
DRecordLayoutBuilder.cpp711 uint64_t getSizeInBits() const { return Size; } in getSizeInBits() function in __anon704f3eda0111::RecordLayoutBuilder
1195 llvm::RoundUpToAlignment(getSizeInBits(), in Layout()
1310 setSize(std::max(getSizeInBits(), getDataSizeInBits())); in LayoutFields()
1330 setSize(std::max(getSizeInBits(), getDataSizeInBits())); in LayoutFields()
1364 setSize(std::max(getSizeInBits(), getDataSizeInBits())); in LayoutFields()
1427 setSize(std::max(getSizeInBits(), getDataSizeInBits())); in LayoutWideBitField()
1520 setSize(std::max(getSizeInBits(), getDataSizeInBits())); in LayoutBitField()
1633 setSize(std::max(getSizeInBits(), FieldSizeInBits)); in LayoutField()
1638 setDataSize(getSizeInBits()); in LayoutField()
1646 if (Context.getLangOptions().CPlusPlus && getSizeInBits() == 0) { in FinishLayout()
[all …]
/external/llvm/lib/Target/CellSPU/
DSPUISelLowering.cpp555 (128 / InVT.getSizeInBits())); in LowerLOAD()
561 if (InVT.getSizeInBits() == 128 && (alignment%16) == 0) in LowerLOAD()
660 if (alignment >= InVT.getSizeInBits()/8) { in LowerLOAD()
671 InVT, (128 / InVT.getSizeInBits())); in LowerLOAD()
762 (128 / StVT.getSizeInBits())); in LowerSTORE()
774 if (StVT.getSizeInBits() == 128 && (alignment%16) == 0) in LowerSTORE()
851 if (alignment >= StVT.getSizeInBits()/8) { in LowerSTORE()
910 DAG.getConstant( VT.getSizeInBits()/8, in LowerSTORE()
1130 unsigned ObjSize = ObjectVT.getSizeInBits()/8; in LowerFormalArguments()
1644 unsigned minSplatBits = EltVT.getSizeInBits(); in LowerBUILD_VECTOR()
[all …]
/external/llvm/lib/Analysis/
DDebugInfo.cpp467 return getSizeInBits(); in getOriginalTypeSize()
471 return BaseType.getSizeInBits(); in getOriginalTypeSize()
474 return getSizeInBits(); in getOriginalTypeSize()
581 << getSizeInBits() << " bits, " in print()
/external/llvm/lib/CodeGen/AsmPrinter/
DDwarfCompileUnit.cpp448 switch (Ty.getSizeInBits()) { in addConstantValue()
652 uint64_t Size = BTy.getSizeInBits() >> 3; in constructTypeDIE()
660 uint64_t Size = DTy.getSizeInBits() >> 3; in constructTypeDIE()
690 uint64_t Size = CTy.getSizeInBits() >> 3; in constructTypeDIE()
961 uint64_t Size = DT.getSizeInBits(); in createMemberDIE()
967 addUInt(MemberDie, dwarf::DW_AT_bit_size, 0, DT.getSizeInBits()); in createMemberDIE()
/external/llvm/lib/Target/X86/
DX86ISelLowering.cpp87 assert(VT.getSizeInBits() == 256 && "Unexpected vector size!"); in Extract128BitVector()
91 int Factor = VT.getSizeInBits() / 128; in Extract128BitVector()
106 unsigned ElemsPerChunk = 128 / ElVT.getSizeInBits(); in Extract128BitVector()
110 unsigned NormalizedIdxVal = (((IdxVal * ElVT.getSizeInBits()) / 128) in Extract128BitVector()
136 assert(VT.getSizeInBits() == 128 && "Unexpected vector size!"); in Insert128BitVector()
145 unsigned ElemsPerChunk = 128 / ElVT.getSizeInBits(); in Insert128BitVector()
149 unsigned NormalizedIdxVal = (((IdxVal * ElVT.getSizeInBits()) / 128) in Insert128BitVector()
173 assert(VT.getSizeInBits() == 256 && "Unsupported vector concat!"); in ConcatVectors()
1649 int FI = MFI->CreateFixedObject(ValVT.getSizeInBits()/8, in LowerMemArgument()
1716 else if (RegVT.isVector() && RegVT.getSizeInBits() == 256) in LowerFormalArguments()
[all …]
DX86SelectionDAGInfo.cpp115 unsigned UBytes = AVT.getSizeInBits() / 8; in EmitTargetCodeForMemset()
214 unsigned UBytes = AVT.getSizeInBits() / 8; in EmitTargetCodeForMemcpy()
/external/llvm/include/llvm/Target/
DTargetLowering.h558 unsigned BitWidth = VT.getSizeInBits(); in getNumRegisters()
559 unsigned RegWidth = getRegisterType(Context, VT).getSizeInBits(); in getNumRegisters()
1770 unsigned BitSize = VT.getSizeInBits(); in getTypeConversion()
1783 EVT::getIntegerVT(Context, VT.getSizeInBits()/2)); in getTypeConversion()
1821 EltVT = EVT::getIntegerVT(Context, 1 + EltVT.getSizeInBits() in getTypeConversion()
DTargetData.h313 uint64_t getSizeInBits() const { in getSizeInBits() function
/external/llvm/lib/Target/X86/Utils/
DX86ShuffleDecode.cpp173 unsigned NumSections = VT.getSizeInBits() / 128; in DecodeUNPCKLPMask()
/external/llvm/lib/Target/XCore/
DXCoreISelLowering.cpp755 DAG.getConstant(VT.getSizeInBits(), in LowerVAARG()
1118 unsigned ObjSize = VA.getLocVT().getSizeInBits()/8; in LowerCCCArguments()
1349 APInt Mask = APInt::getHighBitsSet(VT.getSizeInBits(), in PerformDAGCombine()
1350 VT.getSizeInBits() - 1); in PerformDAGCombine()
1372 APInt Mask = APInt::getHighBitsSet(VT.getSizeInBits(), in PerformDAGCombine()
1373 VT.getSizeInBits() - 1); in PerformDAGCombine()
1388 APInt Mask = APInt::getHighBitsSet(VT.getSizeInBits(), in PerformDAGCombine()
1389 VT.getSizeInBits() - 1); in PerformDAGCombine()

12