Home
last modified time | relevance | path

Searched refs:DstBits (Results 1 – 8 of 8) sorted by relevance

/freebsd/contrib/llvm-project/clang/lib/AST/Interp/
H A DIntegral.h96 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 DCGExprScalar.cpp1083 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 DScalarEvolutionExpander.cpp2101 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 DInstructions.cpp3064 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 DAArch64FastISel.cpp4117 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 DInstCombineCompares.cpp1416 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 DSelectionDAG.cpp6629 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 DX86ISelLowering.cpp20824 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()