/external/llvm/include/llvm/IR/ |
D | DerivedTypes.h | 375 unsigned EltBits = VTy->getElementType()->getPrimitiveSizeInBits(); in getInteger() 386 unsigned EltBits = VTy->getElementType()->getPrimitiveSizeInBits(); in getExtendedElementVectorType() 396 unsigned EltBits = VTy->getElementType()->getPrimitiveSizeInBits(); in getTruncatedElementVectorType() 413 return NumElements * getElementType()->getPrimitiveSizeInBits(); in getBitWidth()
|
D | Type.h | 303 unsigned getPrimitiveSizeInBits() const;
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCasts.cpp | 480 unsigned ASize = A->getType()->getPrimitiveSizeInBits(); in visitTrunc() 1438 if (SrcTy->getElementType()->getPrimitiveSizeInBits() != in OptimizeVectorResize() 1439 DestTy->getElementType()->getPrimitiveSizeInBits()) in OptimizeVectorResize() 1479 return Value % Ty->getPrimitiveSizeInBits() == 0; in isMultipleOfTypeSize() 1483 return Value / Ty->getPrimitiveSizeInBits(); in getTypeSizeIndex() 1519 unsigned NumElts = getTypeSizeIndex(C->getType()->getPrimitiveSizeInBits(), in CollectInsertionElements() 1531 C->getType()->getPrimitiveSizeInBits())); in CollectInsertionElements() 1532 unsigned ElementSize = VecEltTy->getPrimitiveSizeInBits(); in CollectInsertionElements() 1556 I->getOperand(0)->getType()->getPrimitiveSizeInBits(), in CollectInsertionElements() 1636 unsigned DestWidth = DestTy->getPrimitiveSizeInBits(); in OptimizeIntToFloatBitCast() [all …]
|
D | InstCombinePHI.cpp | 569 return Inst->getType()->getPrimitiveSizeInBits() < in operator <() 570 RHS.Inst->getType()->getPrimitiveSizeInBits(); in operator <() 580 : PN(pn), Shift(Sh), Width(Ty->getPrimitiveSizeInBits()) {} in LoweredPHIRecord() 899 !TD->isLegalInteger(PN.getType()->getPrimitiveSizeInBits())) in visitPHINode()
|
D | InstCombineCompares.cpp | 397 Idx->getType()->getPrimitiveSizeInBits() > TD->getPointerSizeInBits()) in FoldCmpLoadFromIndexedGlobal() 573 if (VariableIdx->getType()->getPrimitiveSizeInBits() > IntPtrWidth) { in EvaluateGEPOffsetExpression() 701 if (GEPLHS->getOperand(i)->getType()->getPrimitiveSizeInBits() != in FoldGEPICmp() 702 GEPRHS->getOperand(i)->getType()->getPrimitiveSizeInBits()) { in FoldGEPICmp() 778 unsigned BitWidth = CI->getType()->getPrimitiveSizeInBits(); in FoldICmpAddOpCst() 1061 unsigned DstBits = LHSI->getType()->getPrimitiveSizeInBits(), in visitICmpInstWithInstAndIntCst() 1062 SrcBits = LHSI->getOperand(0)->getType()->getPrimitiveSizeInBits(); in visitICmpInstWithInstAndIntCst() 1204 uint32_t TyBits = Ty->getPrimitiveSizeInBits(); in visitICmpInstWithInstAndIntCst() 1207 uint32_t BitWidth = AndTy->getPrimitiveSizeInBits(); in visitICmpInstWithInstAndIntCst() 1940 TI->getType()->getPrimitiveSizeInBits() > NewWidth) return 0; in ProcessUGT_ADDCST_ADD() [all …]
|
D | InstructionCombining.cpp | 109 unsigned FromWidth = From->getPrimitiveSizeInBits(); in ShouldChangeType() 110 unsigned ToWidth = To->getPrimitiveSizeInBits(); in ShouldChangeType() 969 unsigned SmallSize = Cast->getSrcTy()->getPrimitiveSizeInBits(); in Descale() 1000 unsigned LargeSize = Cast->getSrcTy()->getPrimitiveSizeInBits(); in Descale() 1003 if (logScale + 1 == (int32_t)Cast->getType()->getPrimitiveSizeInBits()) in Descale() 1259 unsigned BitWidth = Idx->getType()->getPrimitiveSizeInBits(); in visitGetElementPtrInst() 1294 unsigned BitWidth = Idx->getType()->getPrimitiveSizeInBits(); in visitGetElementPtrInst()
|
D | InstCombineMulDivRem.cpp | 268 APInt Negative2(I.getType()->getPrimitiveSizeInBits(), (uint64_t)-2, true); in visitMul() 939 APInt Mask(APInt::getSignBit(I.getType()->getPrimitiveSizeInBits())); in visitSDiv() 1199 APInt Mask(APInt::getSignBit(I.getType()->getPrimitiveSizeInBits())); in visitSRem()
|
D | InstCombineCalls.cpp | 291 unsigned C = X->getType()->getPrimitiveSizeInBits() - in visitCallInst() 292 IIOperand->getType()->getPrimitiveSizeInBits(); in visitCallInst()
|
D | InstCombineAddSub.cpp | 1390 CI->getValue() == I.getType()->getPrimitiveSizeInBits()-1) in visitSub() 1395 CI->getValue() == I.getType()->getPrimitiveSizeInBits()-1) in visitSub()
|
/external/llvm/tools/llvm-stress/ |
D | llvm-stress.cpp | 381 APInt RandomInt(Ty->getPrimitiveSizeInBits(), makeArrayRef(RandomBits)); in Act() 393 APInt::getAllOnesValue(Ty->getPrimitiveSizeInBits()))); in Act() 396 APInt::getNullValue(Ty->getPrimitiveSizeInBits()))); in Act() 498 unsigned VSize = VTy->getScalarType()->getPrimitiveSizeInBits(); in Act() 499 unsigned DestSize = DestTy->getScalarType()->getPrimitiveSizeInBits(); in Act()
|
/external/llvm/lib/CodeGen/ |
D | IntrinsicLowering.cpp | 169 unsigned BitSize = V->getType()->getPrimitiveSizeInBits(); in LowerBSWAP() 273 unsigned BitSize = V->getType()->getPrimitiveSizeInBits(); in LowerCTPOP() 306 unsigned BitSize = V->getType()->getPrimitiveSizeInBits(); in LowerCTLZ()
|
D | Analysis.cpp | 260 DataBits = std::min(DataBits, I->getType()->getPrimitiveSizeInBits()); in getNoopInput()
|
/external/llvm/lib/Analysis/ |
D | ValueTracking.cpp | 1360 if (Op1C->getType()->getPrimitiveSizeInBits() < in ComputeMultiple() 1361 MulC->getType()->getPrimitiveSizeInBits()) in ComputeMultiple() 1363 if (Op1C->getType()->getPrimitiveSizeInBits() > in ComputeMultiple() 1364 MulC->getType()->getPrimitiveSizeInBits()) in ComputeMultiple() 1384 if (Op0C->getType()->getPrimitiveSizeInBits() < in ComputeMultiple() 1385 MulC->getType()->getPrimitiveSizeInBits()) in ComputeMultiple() 1387 if (Op0C->getType()->getPrimitiveSizeInBits() > in ComputeMultiple() 1388 MulC->getType()->getPrimitiveSizeInBits()) in ComputeMultiple()
|
D | ConstantFolding.cpp | 68 unsigned FPWidth = SrcEltTy->getPrimitiveSizeInBits(); in FoldBitCast() 131 unsigned FPWidth = DstEltTy->getPrimitiveSizeInBits(); in FoldBitCast() 144 unsigned FPWidth = SrcEltTy->getPrimitiveSizeInBits(); in FoldBitCast() 166 unsigned SrcBitSize = SrcEltTy->getPrimitiveSizeInBits(); in FoldBitCast() 195 unsigned DstBitSize = DstEltTy->getPrimitiveSizeInBits(); in FoldBitCast() 483 unsigned NumBits = Ty->getPrimitiveSizeInBits(); in ConstantFoldLoadFromConstPtr()
|
D | MemoryDependenceAnalysis.cpp | 325 unsigned NewLoadByteSize = LI->getType()->getPrimitiveSizeInBits()/8U; in getLoadLoadClobberFullWidthSize() 422 if (LI->getAlignment()*8 > ITy->getPrimitiveSizeInBits() && in getPointerDependencyFrom()
|
/external/llvm/lib/ExecutionEngine/ |
D | ExecutionEngine.cpp | 557 Result.IntVal = APInt(C->getType()->getPrimitiveSizeInBits(), 0); in getConstantValue() 568 APInt(ElemTy->getPrimitiveSizeInBits(), 0); in getConstantValue() 929 APInt(CV->getOperand(i)->getType()->getPrimitiveSizeInBits(), 0); in getConstantValue() 936 CDV->getElementType()->getPrimitiveSizeInBits(), in getConstantValue()
|
/external/llvm/lib/Transforms/Scalar/ |
D | ScalarReplAggregates.cpp | 412 (In->isIntegerTy() && In->getPrimitiveSizeInBits() >= 8 && in MergeInTypeForLoadOrStore() 413 isPowerOf2_32(In->getPrimitiveSizeInBits()))) { in MergeInTypeForLoadOrStore() 416 unsigned EltSize = In->getPrimitiveSizeInBits()/8; in MergeInTypeForLoadOrStore() 425 ->getPrimitiveSizeInBits()/8)) { in MergeInTypeForLoadOrStore() 970 if (SV->getType()->getPrimitiveSizeInBits() < in ConvertScalar_InsertValue() 971 AllocaType->getPrimitiveSizeInBits()) in ConvertScalar_InsertValue()
|
/external/llvm/lib/IR/ |
D | Verifier.cpp | 904 unsigned SrcBitSize = SrcTy->getPrimitiveSizeInBits(); in VerifyBitcastType() 905 unsigned DestBitSize = DestTy->getPrimitiveSizeInBits(); in VerifyBitcastType() 1743 unsigned Size = ElTy->getPrimitiveSizeInBits(); in visitLoadInst() 1818 unsigned Size = ElTy->getPrimitiveSizeInBits(); in visitStoreInst() 1853 unsigned Size = ElTy->getPrimitiveSizeInBits(); in visitAtomicCmpXchgInst() 1877 unsigned Size = ElTy->getPrimitiveSizeInBits(); in visitAtomicRMWInst()
|
D | Type.cpp | 117 unsigned Type::getPrimitiveSizeInBits() const { in getPrimitiveSizeInBits() function in Type 136 return getScalarType()->getPrimitiveSizeInBits(); in getScalarSizeInBits()
|
D | Instructions.cpp | 2520 unsigned SrcBits = SrcTy->getPrimitiveSizeInBits(); // 0 for ptr in isCastable() 2521 unsigned DestBits = DestTy->getPrimitiveSizeInBits(); // 0 for ptr in isCastable() 2588 unsigned SrcBits = SrcTy->getPrimitiveSizeInBits(); // 0 for ptr in isBitCastable() 2589 unsigned DestBits = DestTy->getPrimitiveSizeInBits(); // 0 for ptr in isBitCastable() 2634 unsigned SrcBits = SrcTy->getPrimitiveSizeInBits(); // 0 for ptr in getCastOpcode() 2635 unsigned DestBits = DestTy->getPrimitiveSizeInBits(); // 0 for ptr in getCastOpcode() 2791 return SrcTy->getPrimitiveSizeInBits() == DstTy->getPrimitiveSizeInBits(); in castIsValid()
|
/external/llvm/lib/Transforms/Vectorize/ |
D | BBVectorize.cpp | 913 if (!TTI && (T1->getPrimitiveSizeInBits() >= Config.VectorBits || in isInstVectorizable() 914 T2->getPrimitiveSizeInBits() >= Config.VectorBits)) in isInstVectorizable() 943 IT1->getPrimitiveSizeInBits() + JT1->getPrimitiveSizeInBits(), in areInstsCompatible() 944 IT2->getPrimitiveSizeInBits() + JT2->getPrimitiveSizeInBits()); in areInstsCompatible()
|
/external/llvm/lib/Transforms/Instrumentation/ |
D | DebugIR.cpp | 422 N = Builder.createBasicType(getTypeName(T), T->getPrimitiveSizeInBits(), in getOrCreateType()
|
/external/llvm/lib/Target/ARM/ |
D | ARMTargetTransformInfo.cpp | 150 unsigned Bits = Ty->getPrimitiveSizeInBits(); in getIntImmCost()
|
/external/llvm/lib/Target/MSP430/ |
D | MSP430ISelLowering.cpp | 1053 return (Ty1->getPrimitiveSizeInBits() > Ty2->getPrimitiveSizeInBits()); in isTruncateFree()
|
/external/llvm/lib/Target/NVPTX/ |
D | NVPTXAsmPrinter.cpp | 436 size = Ty->getPrimitiveSizeInBits(); in printReturnValStr() 1567 sz = Ty->getPrimitiveSizeInBits(); in emitFunctionParamList()
|