/freebsd/contrib/llvm-project/clang/lib/AST/Interp/ |
H A D | Integral.h | 96 template <unsigned DstBits, bool DstSign> 97 explicit operator Integral<DstBits, DstSign>() const { 98 return Integral<DstBits, DstSign>(V);
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CGExprScalar.cpp | 1083 unsigned DstBits = Dst->getType()->getScalarSizeInBits(); in EmitIntegerTruncationCheck() local 1085 if (SrcBits <= DstBits) in EmitIntegerTruncationCheck() 1153 unsigned DstBits = DstTy->getScalarSizeInBits(); in EmitIntegerSignChangeCheckHelper() local 1155 (void)DstBits; // Only used in assert() in EmitIntegerSignChangeCheckHelper() 1157 assert(((SrcBits != DstBits) || (SrcSigned != DstSigned)) && in EmitIntegerSignChangeCheckHelper() 1196 unsigned DstBits = DstTy->getScalarSizeInBits(); in EmitIntegerSignChangeCheck() local 1203 if (SrcSigned == DstSigned && SrcBits == DstBits) in EmitIntegerSignChangeCheck() 1212 if ((DstBits > SrcBits) && DstSigned) in EmitIntegerSignChangeCheck() 1215 (SrcBits > DstBits) && SrcSigned) { in EmitIntegerSignChangeCheck() 1240 (SrcBits > DstBits) && !SrcSigned && DstSigned) { in EmitIntegerSignChangeCheck() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | ScalarEvolutionExpander.cpp | 2101 unsigned DstBits = SE.getTypeSizeInBits(ARTy); in generateOverflowCheck() local 2119 ConstantInt::get(Loc->getContext(), APInt::getZero(DstBits)); in generateOverflowCheck() 2195 if (SrcBits > DstBits) { in generateOverflowCheck() 2196 auto MaxVal = APInt::getMaxValue(DstBits).zext(SrcBits); in generateOverflowCheck()
|
/freebsd/contrib/llvm-project/llvm/lib/IR/ |
H A D | Instructions.cpp | 3064 unsigned DstBits = Ty->getScalarSizeInBits(); in CreateIntegerCast() local 3066 (SrcBits == DstBits ? Instruction::BitCast : in CreateIntegerCast() 3067 (SrcBits > DstBits ? Instruction::Trunc : in CreateIntegerCast() 3077 unsigned DstBits = Ty->getScalarSizeInBits(); in CreateFPCast() local 3078 assert((C->getType() == Ty || SrcBits != DstBits) && "Invalid cast"); in CreateFPCast() 3080 (SrcBits == DstBits ? Instruction::BitCast : in CreateFPCast() 3081 (SrcBits > DstBits ? Instruction::FPTrunc : Instruction::FPExt)); in CreateFPCast()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
H A D | AArch64FastISel.cpp | 4117 unsigned DstBits = RetVT.getSizeInBits(); in emitLSL_ri() local 4135 if (Shift >= DstBits) in emitLSL_ri() 4165 unsigned ImmS = std::min<unsigned>(SrcBits - 1, DstBits - 1 - Shift); in emitLSL_ri() 4220 unsigned DstBits = RetVT.getSizeInBits(); in emitLSR_ri() local 4238 if (Shift >= DstBits) in emitLSR_ri() 4336 unsigned DstBits = RetVT.getSizeInBits(); in emitASR_ri() local 4354 if (Shift >= DstBits) in emitASR_ri()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineCompares.cpp | 1416 unsigned DstBits = Trunc->getType()->getScalarSizeInBits(), in foldICmpTruncConstant() local 1444 return new ICmpInst(NewPred, Y, ConstantInt::get(SrcTy, DstBits)); in foldICmpTruncConstant() 1455 if (!SrcTy->isVectorTy() && shouldChangeType(DstBits, SrcBits)) { in foldICmpTruncConstant() 1457 ConstantInt::get(SrcTy, APInt::getLowBitsSet(SrcBits, DstBits)); in foldICmpTruncConstant() 1468 if ((Known.Zero | Known.One).countl_one() >= SrcBits - DstBits) { in foldICmpTruncConstant() 1471 NewRHS |= Known.One & APInt::getHighBitsSet(SrcBits, SrcBits - DstBits); in foldICmpTruncConstant() 1484 DstBits == SrcBits - ShAmtC->getZExtValue()) { in foldICmpTruncConstant()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
H A D | SelectionDAG.cpp | 6629 SmallVector<APInt> DstBits; in FoldConstantArithmetic() local 6632 DstBits, RawBits, DstUndefs, in FoldConstantArithmetic() 6634 SmallVector<SDValue> Ops(DstBits.size(), getUNDEF(BVEltVT)); in FoldConstantArithmetic() 6635 for (unsigned I = 0, E = DstBits.size(); I != E; ++I) { in FoldConstantArithmetic() 6638 Ops[I] = getConstant(DstBits[I].sext(BVEltBits), DL, BVEltVT); in FoldConstantArithmetic() 12994 APInt &DstBits = DstBitElements[I]; in recastRawBits() local 13003 DstBits.insertBits(SrcBits, J * SrcEltSizeInBits); in recastRawBits() 13019 APInt &DstBits = DstBitElements[Idx]; in recastRawBits() local 13020 DstBits = SrcBits.extractBits(DstEltSizeInBits, J * DstEltSizeInBits); in recastRawBits()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
H A D | X86ISelLowering.cpp | 20824 unsigned DstBits = VT.getScalarSizeInBits(); in expandFP_TO_UINT_SSE() local 20825 assert(DstBits == 32 && "expandFP_TO_UINT_SSE - only vXi32 supported"); in expandFP_TO_UINT_SSE() 20851 DAG.getTargetConstant(DstBits - 1, dl, MVT::i8)); in expandFP_TO_UINT_SSE() 21108 unsigned DstBits = VT.getScalarSizeInBits(); in LowerFP_TO_INT() local 21109 APInt UIntLimit = APInt::getSignMask(DstBits); in LowerFP_TO_INT() 21132 ISD::SRA, dl, VT, Small, DAG.getConstant(DstBits - 1, dl, MVT::i8)); in LowerFP_TO_INT()
|