Home
last modified time | relevance | path

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

/llvm-project-15.0.7/polly/lib/CodeGen/
H A DRuntimeDebugBuilder.cpp39 unsigned DstBits) { in getAddressSpaceCast() argument
42 std::to_string(Dst) + "i" + std::to_string(DstBits) + ".p" + in getAddressSpaceCast()
49 PointerType::get(Builder.getIntNTy(DstBits), Dst), in getAddressSpaceCast()
/llvm-project-15.0.7/clang/lib/AST/Interp/
H A DIntegral.h97 template <unsigned DstBits, bool DstSign>
98 explicit operator Integral<DstBits, DstSign>() const {
99 return Integral<DstBits, DstSign>(V);
/llvm-project-15.0.7/polly/include/polly/CodeGen/
H A DRuntimeDebugBuilder.h153 unsigned DstBits = 8);
/llvm-project-15.0.7/llvm/lib/IR/
H A DInstructions.cpp3357 unsigned DstBits = Ty->getScalarSizeInBits(); in CreateIntegerCast() local
3359 (SrcBits == DstBits ? Instruction::BitCast : in CreateIntegerCast()
3360 (SrcBits > DstBits ? Instruction::Trunc : in CreateIntegerCast()
3371 unsigned DstBits = Ty->getScalarSizeInBits(); in CreateIntegerCast() local
3373 (SrcBits == DstBits ? Instruction::BitCast : in CreateIntegerCast()
3374 (SrcBits > DstBits ? Instruction::Trunc : in CreateIntegerCast()
3385 unsigned DstBits = Ty->getScalarSizeInBits(); in CreateFPCast() local
3387 (SrcBits == DstBits ? Instruction::BitCast : in CreateFPCast()
3388 (SrcBits > DstBits ? Instruction::FPTrunc : Instruction::FPExt)); in CreateFPCast()
3398 unsigned DstBits = Ty->getScalarSizeInBits(); in CreateFPCast() local
[all …]
H A DConstants.cpp2041 unsigned DstBits = Ty->getScalarSizeInBits(); in getIntegerCast() local
2043 (SrcBits == DstBits ? Instruction::BitCast : in getIntegerCast()
2044 (SrcBits > DstBits ? Instruction::Trunc : in getIntegerCast()
2053 unsigned DstBits = Ty->getScalarSizeInBits(); in getFPCast() local
2054 if (SrcBits == DstBits) in getFPCast()
2057 (SrcBits > DstBits ? Instruction::FPTrunc : Instruction::FPExt); in getFPCast()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGExprScalar.cpp1024 unsigned DstBits = Dst->getType()->getScalarSizeInBits(); in EmitIntegerTruncationCheck() local
1026 if (SrcBits <= DstBits) in EmitIntegerTruncationCheck()
1077 unsigned DstBits = DstTy->getScalarSizeInBits(); in EmitIntegerSignChangeCheckHelper() local
1079 (void)DstBits; // Only used in assert() in EmitIntegerSignChangeCheckHelper()
1081 assert(((SrcBits != DstBits) || (SrcSigned != DstSigned)) && in EmitIntegerSignChangeCheckHelper()
1138 unsigned DstBits = DstTy->getScalarSizeInBits(); in EmitIntegerSignChangeCheck() local
1145 if (SrcSigned == DstSigned && SrcBits == DstBits) in EmitIntegerSignChangeCheck()
1154 if ((DstBits > SrcBits) && DstSigned) in EmitIntegerSignChangeCheck()
1157 (SrcBits > DstBits) && SrcSigned) { in EmitIntegerSignChangeCheck()
1182 (SrcBits > DstBits) && !SrcSigned && DstSigned) { in EmitIntegerSignChangeCheck()
/llvm-project-15.0.7/llvm/lib/Target/AArch64/
H A DAArch64FastISel.cpp4035 unsigned DstBits = RetVT.getSizeInBits(); in emitLSL_ri() local
4053 if (Shift >= DstBits) in emitLSL_ri()
4083 unsigned ImmS = std::min<unsigned>(SrcBits - 1, DstBits - 1 - Shift); in emitLSL_ri()
4138 unsigned DstBits = RetVT.getSizeInBits(); in emitLSR_ri() local
4156 if (Shift >= DstBits) in emitLSR_ri()
4254 unsigned DstBits = RetVT.getSizeInBits(); in emitASR_ri() local
4272 if (Shift >= DstBits) in emitASR_ri()
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DScalarEvolutionExpander.cpp2381 unsigned DstBits = SE.getTypeSizeInBits(ARTy); in generateOverflowCheck() local
2401 ConstantInt::get(Loc->getContext(), APInt::getZero(DstBits)); in generateOverflowCheck()
2480 auto MaxVal = APInt::getMaxValue(DstBits).zext(SrcBits); in generateOverflowCheck()
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineCompares.cpp1551 unsigned DstBits = Trunc->getType()->getScalarSizeInBits(), in foldICmpTruncConstant() local
1556 if (!X->getType()->isVectorTy() && shouldChangeType(DstBits, SrcBits)) { in foldICmpTruncConstant()
1558 APInt::getLowBitsSet(SrcBits, DstBits)); in foldICmpTruncConstant()
1569 if ((Known.Zero | Known.One).countLeadingOnes() >= SrcBits - DstBits) { in foldICmpTruncConstant()
1572 NewRHS |= Known.One & APInt::getHighBitsSet(SrcBits, SrcBits - DstBits); in foldICmpTruncConstant()
1585 DstBits == SrcBits - ShAmtC->getZExtValue()) { in foldICmpTruncConstant()
/llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAG.cpp5639 SmallVector<APInt> DstBits; in FoldConstantArithmetic() local
5642 DstBits, RawBits, DstUndefs, in FoldConstantArithmetic()
5646 SmallVector<SDValue> Ops(DstBits.size(), getUNDEF(BVEltVT)); in FoldConstantArithmetic()
5647 for (unsigned I = 0, E = DstBits.size(); I != E; ++I) { in FoldConstantArithmetic()
5650 Ops[I] = getConstant(DstBits[I].sext(BVEltBits), DL, BVEltVT); in FoldConstantArithmetic()
11653 APInt &DstBits = DstBitElements[I]; in recastRawBits() local
11662 DstBits.insertBits(SrcBits, J * SrcEltSizeInBits); in recastRawBits()
11678 APInt &DstBits = DstBitElements[Idx]; in recastRawBits() local
11679 DstBits = SrcBits.extractBits(DstEltSizeInBits, J * DstEltSizeInBits); in recastRawBits()
/llvm-project-15.0.7/llvm/lib/Target/X86/
H A DX86ISelLowering.cpp22285 unsigned DstBits = VT.getScalarSizeInBits(); in expandFP_TO_UINT_SSE() local
22286 assert(DstBits == 32 && "expandFP_TO_UINT_SSE - only vXi32 supported"); in expandFP_TO_UINT_SSE()
22312 DAG.getTargetConstant(DstBits - 1, dl, MVT::i8)); in expandFP_TO_UINT_SSE()
22564 unsigned DstBits = VT.getScalarSizeInBits(); in LowerFP_TO_INT() local
22565 APInt UIntLimit = APInt::getSignMask(DstBits); in LowerFP_TO_INT()
22588 ISD::SRA, dl, VT, Small, DAG.getConstant(DstBits - 1, dl, MVT::i8)); in LowerFP_TO_INT()