Home
last modified time | relevance | path

Searched refs:getPrimitiveSizeInBits (Results 1 – 25 of 69) sorted by relevance

123

/external/llvm/lib/Target/SystemZ/
DSystemZTargetTransformInfo.cpp37 unsigned BitSize = Ty->getPrimitiveSizeInBits(); in getIntImmCost()
70 unsigned BitSize = Ty->getPrimitiveSizeInBits(); in getIntImmCost()
188 unsigned BitSize = Ty->getPrimitiveSizeInBits(); in getIntImmCost()
/external/llvm/include/llvm/IR/
DDerivedTypes.h375 unsigned EltBits = VTy->getElementType()->getPrimitiveSizeInBits(); in getInteger()
386 unsigned EltBits = VTy->getElementType()->getPrimitiveSizeInBits(); in getExtendedElementVectorType()
396 unsigned EltBits = VTy->getElementType()->getPrimitiveSizeInBits(); in getTruncatedElementVectorType()
433 return NumElements * getElementType()->getPrimitiveSizeInBits(); in getBitWidth()
DType.h286 unsigned getPrimitiveSizeInBits() const LLVM_READONLY;
/external/llvm/lib/Target/PowerPC/
DPPCTargetTransformInfo.cpp44 unsigned BitSize = Ty->getPrimitiveSizeInBits(); in getIntImmCost()
74 unsigned BitSize = Ty->getPrimitiveSizeInBits(); in getIntImmCost()
108 unsigned BitSize = Ty->getPrimitiveSizeInBits(); in getIntImmCost()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineCasts.cpp455 unsigned VecWidth = VecType->getPrimitiveSizeInBits(); in foldVecTruncToExtElt()
456 unsigned DestWidth = DestType->getPrimitiveSizeInBits(); in foldVecTruncToExtElt()
530 unsigned ASize = A->getType()->getPrimitiveSizeInBits(); in visitTrunc()
553 const unsigned ASize = A->getType()->getPrimitiveSizeInBits(); in visitTrunc()
1572 if (SrcTy->getElementType()->getPrimitiveSizeInBits() != in optimizeVectorResize()
1573 DestTy->getElementType()->getPrimitiveSizeInBits()) in optimizeVectorResize()
1613 return Value % Ty->getPrimitiveSizeInBits() == 0; in isMultipleOfTypeSize()
1617 return Value / Ty->getPrimitiveSizeInBits(); in getTypeSizeIndex()
1662 unsigned NumElts = getTypeSizeIndex(C->getType()->getPrimitiveSizeInBits(), in collectInsertionElements()
1674 C->getType()->getPrimitiveSizeInBits())); in collectInsertionElements()
[all …]
DInstCombineCalls.cpp262 unsigned BitWidth = VT->getElementType()->getPrimitiveSizeInBits(); in SimplifyX86immshift()
281 unsigned BitWidth = SVT->getPrimitiveSizeInBits(); in SimplifyX86immshift()
782 unsigned C = X->getType()->getPrimitiveSizeInBits() - in visitCallInst()
783 IIOperand->getType()->getPrimitiveSizeInBits(); in visitCallInst()
1165 assert(Arg1->getType()->getPrimitiveSizeInBits() == 128 && in visitCallInst()
1212 assert(Op0->getType()->getPrimitiveSizeInBits() == 128 && in visitCallInst()
1213 Op1->getType()->getPrimitiveSizeInBits() == 128 && VWidth0 == 2 && in visitCallInst()
1247 assert(Op0->getType()->getPrimitiveSizeInBits() == 128 && VWidth == 2 && in visitCallInst()
1271 assert(Op0->getType()->getPrimitiveSizeInBits() == 128 && in visitCallInst()
1272 Op1->getType()->getPrimitiveSizeInBits() == 128 && VWidth == 2 && in visitCallInst()
[all …]
DInstCombinePHI.cpp659 return Inst->getType()->getPrimitiveSizeInBits() < in operator <()
660 RHS.Inst->getType()->getPrimitiveSizeInBits(); in operator <()
670 : PN(pn), Shift(Sh), Width(Ty->getPrimitiveSizeInBits()) {} in LoweredPHIRecord()
988 !DL.isLegalInteger(PN.getType()->getPrimitiveSizeInBits())) in visitPHINode()
DInstCombineCompares.cpp395 if (Idx->getType()->getPrimitiveSizeInBits() > PtrSize) in FoldCmpLoadFromIndexedGlobal()
569 if (VariableIdx->getType()->getPrimitiveSizeInBits() > IntPtrWidth) { in EvaluateGEPOffsetExpression()
664 if (LHSIndexTy->getPrimitiveSizeInBits() < in FoldGEPICmp()
665 RHSIndexTy->getPrimitiveSizeInBits()) { in FoldGEPICmp()
697 if (GEPLHS->getOperand(i)->getType()->getPrimitiveSizeInBits() != in FoldGEPICmp()
698 GEPRHS->getOperand(i)->getType()->getPrimitiveSizeInBits()) { in FoldGEPICmp()
833 unsigned BitWidth = CI->getType()->getPrimitiveSizeInBits(); in FoldICmpAddOpCst()
1231 unsigned DstBits = LHSI->getType()->getPrimitiveSizeInBits(), in visitICmpInstWithInstAndIntCst()
1232 SrcBits = LHSI->getOperand(0)->getType()->getPrimitiveSizeInBits(); in visitICmpInstWithInstAndIntCst()
2185 if (!TI || TI->getType()->getPrimitiveSizeInBits() > NewWidth) in ProcessUGT_ADDCST_ADD()
[all …]
DInstructionCombining.cpp111 unsigned FromWidth = From->getPrimitiveSizeInBits(); in ShouldChangeType()
112 unsigned ToWidth = To->getPrimitiveSizeInBits(); in ShouldChangeType()
1140 unsigned SmallSize = Cast->getSrcTy()->getPrimitiveSizeInBits(); in Descale()
1171 unsigned LargeSize = Cast->getSrcTy()->getPrimitiveSizeInBits(); in Descale()
1174 if (logScale + 1 == (int32_t)Cast->getType()->getPrimitiveSizeInBits()) in Descale()
1719 unsigned BitWidth = Idx->getType()->getPrimitiveSizeInBits(); in visitGetElementPtrInst()
1758 unsigned BitWidth = Idx->getType()->getPrimitiveSizeInBits(); in visitGetElementPtrInst()
2073 unsigned BitWidth = VTy->getPrimitiveSizeInBits(); in visitReturnInst()
DInstCombineMulDivRem.cpp227 unsigned Width = NewCst->getType()->getPrimitiveSizeInBits(); in visitMul()
374 APInt Negative2(I.getType()->getPrimitiveSizeInBits(), (uint64_t)-2, true); in visitMul()
1159 APInt Mask(APInt::getSignBit(I.getType()->getPrimitiveSizeInBits())); in visitSDiv()
1440 APInt Mask(APInt::getSignBit(I.getType()->getPrimitiveSizeInBits())); in visitSRem()
/external/llvm/tools/llvm-stress/
Dllvm-stress.cpp391 APInt RandomInt(Ty->getPrimitiveSizeInBits(), makeArrayRef(RandomBits)); in Act()
403 APInt::getAllOnesValue(Ty->getPrimitiveSizeInBits()))); in Act()
406 APInt::getNullValue(Ty->getPrimitiveSizeInBits()))); in Act()
508 unsigned VSize = VTy->getScalarType()->getPrimitiveSizeInBits(); in Act()
509 unsigned DestSize = DestTy->getScalarType()->getPrimitiveSizeInBits(); in Act()
/external/llvm/lib/Transforms/Scalar/
DFloat2Int.cpp207 unsigned BW = I->getOperand(0)->getType()->getPrimitiveSizeInBits(); in walkBackwards()
216 unsigned BW = I->getOperand(0)->getType()->getPrimitiveSizeInBits(); in walkBackwards()
456 APSInt Val(ToTy->getPrimitiveSizeInBits(), /*IsUnsigned=*/false); in convert()
DLoadCombine.cpp175 TotalSize += L.Load->getType()->getPrimitiveSizeInBits(); in combineLoads()
177 TotalSize -= Loads.pop_back_val().Load->getType()->getPrimitiveSizeInBits(); in combineLoads()
DScalarReplAggregates.cpp420 (In->isIntegerTy() && In->getPrimitiveSizeInBits() >= 8 && in MergeInTypeForLoadOrStore()
421 isPowerOf2_32(In->getPrimitiveSizeInBits()))) { in MergeInTypeForLoadOrStore()
424 unsigned EltSize = In->getPrimitiveSizeInBits()/8; in MergeInTypeForLoadOrStore()
433 ->getPrimitiveSizeInBits()/8)) { in MergeInTypeForLoadOrStore()
980 if (SV->getType()->getPrimitiveSizeInBits() < in ConvertScalar_InsertValue()
981 AllocaType->getPrimitiveSizeInBits()) in ConvertScalar_InsertValue()
/external/llvm/lib/Target/NVPTX/
DNVPTXISelLowering.h462 return SrcTy->getPrimitiveSizeInBits() == 64 && in isTruncateFree()
463 DstTy->getPrimitiveSizeInBits() == 32; in isTruncateFree()
/external/llvm/lib/CodeGen/
DIntrinsicLowering.cpp169 unsigned BitSize = V->getType()->getPrimitiveSizeInBits(); in LowerBSWAP()
273 unsigned BitSize = V->getType()->getPrimitiveSizeInBits(); in LowerCTPOP()
306 unsigned BitSize = V->getType()->getPrimitiveSizeInBits(); in LowerCTLZ()
/external/llvm/lib/Target/AArch64/
DAArch64TargetTransformInfo.cpp43 unsigned BitSize = Ty->getPrimitiveSizeInBits(); in getIntImmCost()
68 unsigned BitSize = Ty->getPrimitiveSizeInBits(); in getIntImmCost()
134 unsigned BitSize = Ty->getPrimitiveSizeInBits(); in getIntImmCost()
/external/llvm/lib/Target/X86/
DX86TargetObjectFile.cpp138 return APIntToHexString(APInt::getNullValue(Ty->getPrimitiveSizeInBits())); in scalarConstantToHexString()
DX86TargetTransformInfo.cpp1147 unsigned BitSize = Ty->getPrimitiveSizeInBits(); in getIntImmCost()
1182 unsigned BitSize = Ty->getPrimitiveSizeInBits(); in getIntImmCost()
1269 unsigned BitSize = Ty->getPrimitiveSizeInBits(); in getIntImmCost()
1303 DL.getPointerSizeInBits() : ScalarTy->getPrimitiveSizeInBits(); in isLegalMaskedLoad()
1327 DL.getPointerSizeInBits() : ScalarTy->getPrimitiveSizeInBits(); in isLegalMaskedGather()
/external/llvm/lib/ExecutionEngine/
DExecutionEngine.cpp610 Result.IntVal = APInt(C->getType()->getPrimitiveSizeInBits(), 0); in getConstantValue()
621 APInt(ElemTy->getPrimitiveSizeInBits(), 0); in getConstantValue()
639 APInt(ElemTy->getPrimitiveSizeInBits(), 0); in getConstantValue()
996 APInt(CV->getOperand(i)->getType()->getPrimitiveSizeInBits(), 0); in getConstantValue()
1003 CDV->getElementType()->getPrimitiveSizeInBits(), in getConstantValue()
/external/llvm/lib/Target/Hexagon/
DHexagonGenExtract.cpp148 unsigned BW = Ty->getPrimitiveSizeInBits(); in INITIALIZE_PASS_DEPENDENCY()
/external/llvm/lib/Transforms/Utils/
DLoopUtils.cpp101 unsigned DstSize = RT->getPrimitiveSizeInBits(); in getSourceExtensionKind()
132 unsigned SrcSize = Cast->getSrcTy()->getPrimitiveSizeInBits(); in getSourceExtensionKind()
/external/llvm/lib/Analysis/
DConstantFolding.cpp73 unsigned FPWidth = SrcEltTy->getPrimitiveSizeInBits(); in FoldBitCast()
136 unsigned FPWidth = DstEltTy->getPrimitiveSizeInBits(); in FoldBitCast()
149 unsigned FPWidth = SrcEltTy->getPrimitiveSizeInBits(); in FoldBitCast()
171 unsigned SrcBitSize = SrcEltTy->getPrimitiveSizeInBits(); in FoldBitCast()
563 unsigned NumBits = Ty->getPrimitiveSizeInBits(); in ConstantFoldLoadFromConstPtr()
DValueTracking.cpp1517 KnownZero |= APInt::getSplat(Ty->getPrimitiveSizeInBits(), SignBit); in computeKnownBitsFromOperator()
2436 if (Op1C->getType()->getPrimitiveSizeInBits() < in ComputeMultiple()
2437 MulC->getType()->getPrimitiveSizeInBits()) in ComputeMultiple()
2439 if (Op1C->getType()->getPrimitiveSizeInBits() > in ComputeMultiple()
2440 MulC->getType()->getPrimitiveSizeInBits()) in ComputeMultiple()
2460 if (Op0C->getType()->getPrimitiveSizeInBits() < in ComputeMultiple()
2461 MulC->getType()->getPrimitiveSizeInBits()) in ComputeMultiple()
2463 if (Op0C->getType()->getPrimitiveSizeInBits() > in ComputeMultiple()
2464 MulC->getType()->getPrimitiveSizeInBits()) in ComputeMultiple()
/external/llvm/lib/IR/
DType.cpp114 unsigned Type::getPrimitiveSizeInBits() const { in getPrimitiveSizeInBits() function in Type
133 return getScalarType()->getPrimitiveSizeInBits(); in getScalarSizeInBits()

123