/external/llvm-project/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCasts.cpp | 497 unsigned DestWidth = DestType->getPrimitiveSizeInBits(); in foldVecTruncToExtElt() local 500 if ((VecWidth % DestWidth != 0) || (ShiftAmount % DestWidth != 0)) in foldVecTruncToExtElt() 505 unsigned NumVecElts = VecWidth / DestWidth; in foldVecTruncToExtElt() 511 unsigned Elt = ShiftAmount / DestWidth; in foldVecTruncToExtElt() 728 unsigned DestWidth = DestTy->getScalarSizeInBits(); in visitTrunc() local 754 if (DestWidth * 2 < SrcWidth) { in visitTrunc() 782 if (DestWidth == 1) { in visitTrunc() 820 unsigned MaxShiftAmt = SrcWidth - std::max(DestWidth, AWidth); in visitTrunc() 830 Constant *MaxAmt = ConstantInt::get(SrcTy, DestWidth - 1, false); in visitTrunc() 852 unsigned MaxShiftAmt = SrcWidth - DestWidth; in visitTrunc() [all …]
|
D | InstCombineVectorOps.cpp | 240 unsigned DestWidth = DestTy->getPrimitiveSizeInBits(); in foldBitcastExtElt() local 241 unsigned ShAmt = Chunk * DestWidth; in foldBitcastExtElt() 263 Type *DestIntTy = IntegerType::getIntNTy(Scalar->getContext(), DestWidth); in foldBitcastExtElt()
|
/external/llvm-project/clang-tools-extra/clang-tidy/cppcoreguidelines/ |
D | NarrowingConversionsCheck.cpp | 306 unsigned DestWidth = Context.getIntWidth(DestType); in handleFloatingToIntegral() local 308 llvm::APSInt Result = llvm::APSInt(DestWidth, !DestSigned); in handleFloatingToIntegral()
|
/external/clang/lib/Sema/ |
D | SemaDeclAttr.cpp | 3365 static void parseModeAttrArg(Sema &S, StringRef Str, unsigned &DestWidth, in parseModeAttrArg() argument 3373 DestWidth = 8; in parseModeAttrArg() 3376 DestWidth = 16; in parseModeAttrArg() 3379 DestWidth = 32; in parseModeAttrArg() 3382 DestWidth = 64; in parseModeAttrArg() 3385 DestWidth = 96; in parseModeAttrArg() 3388 DestWidth = 128; in parseModeAttrArg() 3397 DestWidth = 0; in parseModeAttrArg() 3404 DestWidth = S.Context.getTargetInfo().getRegisterWidth(); in parseModeAttrArg() 3406 DestWidth = S.Context.getTargetInfo().getCharWidth(); in parseModeAttrArg() [all …]
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCasts.cpp | 456 unsigned DestWidth = DestType->getPrimitiveSizeInBits(); in foldVecTruncToExtElt() local 459 if ((VecWidth % DestWidth != 0) || (ShiftAmount % DestWidth != 0)) in foldVecTruncToExtElt() 464 unsigned NumVecElts = VecWidth / DestWidth; in foldVecTruncToExtElt() 470 unsigned Elt = ShiftAmount / DestWidth; in foldVecTruncToExtElt()
|
/external/llvm-project/clang/lib/Sema/ |
D | SemaDeclAttr.cpp | 4010 static void parseModeAttrArg(Sema &S, StringRef Str, unsigned &DestWidth, in parseModeAttrArg() argument 4019 DestWidth = 8; in parseModeAttrArg() 4022 DestWidth = 16; in parseModeAttrArg() 4025 DestWidth = 32; in parseModeAttrArg() 4028 DestWidth = 64; in parseModeAttrArg() 4031 DestWidth = 96; in parseModeAttrArg() 4035 DestWidth = Str[1] == 'I' ? 0 : 128; in parseModeAttrArg() 4039 DestWidth = 128; in parseModeAttrArg() 4048 DestWidth = 0; in parseModeAttrArg() 4055 DestWidth = S.Context.getTargetInfo().getRegisterWidth(); in parseModeAttrArg() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCasts.cpp | 473 unsigned DestWidth = DestType->getPrimitiveSizeInBits(); in foldVecTruncToExtElt() local 476 if ((VecWidth % DestWidth != 0) || (ShiftAmount % DestWidth != 0)) in foldVecTruncToExtElt() 481 unsigned NumVecElts = VecWidth / DestWidth; in foldVecTruncToExtElt() 487 unsigned Elt = ShiftAmount / DestWidth; in foldVecTruncToExtElt()
|
D | InstCombineVectorOps.cpp | 224 unsigned DestWidth = DestTy->getPrimitiveSizeInBits(); in foldBitcastExtElt() local 225 unsigned ShAmt = Chunk * DestWidth; in foldBitcastExtElt() 247 Type *DestIntTy = IntegerType::getIntNTy(Scalar->getContext(), DestWidth); in foldBitcastExtElt()
|
/external/clang/include/clang/AST/ |
D | ASTContext.h | 595 QualType getIntTypeForBitwidth(unsigned DestWidth, 600 QualType getRealTypeForBitwidth(unsigned DestWidth) const;
|
/external/llvm-project/clang/include/clang/AST/ |
D | ASTContext.h | 665 QualType getIntTypeForBitwidth(unsigned DestWidth, 671 QualType getRealTypeForBitwidth(unsigned DestWidth, bool ExplicitIEEE) const;
|
/external/clang/lib/AST/ |
D | ExprConstant.cpp | 1660 unsigned DestWidth = Info.Ctx.getIntWidth(DestType); in HandleFloatToIntCast() local 1664 Result = APSInt(DestWidth, !DestSigned); in HandleFloatToIntCast() 1687 unsigned DestWidth = Info.Ctx.getIntWidth(DestType); in HandleIntToIntCast() local 1691 Result = Result.extOrTrunc(DestWidth); in HandleIntToIntCast() 9637 unsigned DestWidth = Ctx.getIntWidth(E->getType()); in CheckICE() local 9639 APSInt IgnoredVal(DestWidth, !DestSigned); in CheckICE()
|
D | ASTContext.cpp | 8735 QualType ASTContext::getIntTypeForBitwidth(unsigned DestWidth, in getIntTypeForBitwidth() argument 8737 TargetInfo::IntType Ty = getTargetInfo().getIntTypeByWidth(DestWidth, Signed); in getIntTypeForBitwidth() 8739 if (!QualTy && DestWidth == 128) in getIntTypeForBitwidth() 8747 QualType ASTContext::getRealTypeForBitwidth(unsigned DestWidth) const { in getRealTypeForBitwidth() 8748 TargetInfo::RealType Ty = getTargetInfo().getRealTypeByWidth(DestWidth); in getRealTypeForBitwidth()
|
/external/llvm-project/clang/lib/AST/ |
D | ASTContext.cpp | 10907 QualType ASTContext::getIntTypeForBitwidth(unsigned DestWidth, in getIntTypeForBitwidth() argument 10909 TargetInfo::IntType Ty = getTargetInfo().getIntTypeByWidth(DestWidth, Signed); in getIntTypeForBitwidth() 10911 if (!QualTy && DestWidth == 128) in getIntTypeForBitwidth() 10919 QualType ASTContext::getRealTypeForBitwidth(unsigned DestWidth, in getRealTypeForBitwidth() argument 10922 getTargetInfo().getRealTypeByWidth(DestWidth, ExplicitIEEE); in getRealTypeForBitwidth()
|
D | ExprConstant.cpp | 2520 unsigned DestWidth = Info.Ctx.getIntWidth(DestType); in HandleFloatToIntCast() local 2524 Result = APSInt(DestWidth, !DestSigned); in HandleFloatToIntCast() 2605 unsigned DestWidth = Info.Ctx.getIntWidth(DestType); in HandleIntToIntCast() local 2608 APSInt Result = Value.extOrTrunc(DestWidth); in HandleIntToIntCast() 15356 unsigned DestWidth = Ctx.getIntWidth(E->getType()); in CheckICE() local 15358 APSInt IgnoredVal(DestWidth, !DestSigned); in CheckICE()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/ |
D | X86ISelLowering.cpp | 22520 unsigned DestWidth = DestVT.getScalarSizeInBits(); in LowerEXTEND_VECTOR_INREG() local 22521 unsigned Scale = DestWidth / InSVT.getSizeInBits(); in LowerEXTEND_VECTOR_INREG() 22535 unsigned SignExtShift = DestWidth - InSVT.getSizeInBits(); in LowerEXTEND_VECTOR_INREG() 44221 unsigned DestWidth = TruncVT.getSizeInBits(); in combineToFPTruncExtElt() local 44223 if (SrcWidth % DestWidth != 0) in combineToFPTruncExtElt() 44229 unsigned NumElts = VecWidth / DestWidth; in combineToFPTruncExtElt()
|
/external/llvm-project/llvm/lib/Target/X86/ |
D | X86ISelLowering.cpp | 23749 unsigned DestWidth = DestVT.getScalarSizeInBits(); in LowerEXTEND_VECTOR_INREG() local 23750 unsigned Scale = DestWidth / InSVT.getSizeInBits(); in LowerEXTEND_VECTOR_INREG() 23764 unsigned SignExtShift = DestWidth - InSVT.getSizeInBits(); in LowerEXTEND_VECTOR_INREG() 47632 unsigned DestWidth = TruncVT.getSizeInBits(); in combineToFPTruncExtElt() local 47634 if (SrcWidth % DestWidth != 0) in combineToFPTruncExtElt() 47640 unsigned NumElts = VecWidth / DestWidth; in combineToFPTruncExtElt()
|