/external/llvm-project/clang/lib/AST/Interp/ |
D | Boolean.h | 92 template <unsigned SrcBits, bool SrcSign> 93 static std::enable_if_t<SrcBits != 0, Boolean> 94 from(Integral<SrcBits, SrcSign> Value) { in from() argument
|
D | Integral.h | 76 template <unsigned SrcBits, bool SrcSign> 77 explicit Integral(Integral<SrcBits, SrcSign> V) : V(V.V) {} 163 template <unsigned SrcBits, bool SrcSign> 164 static std::enable_if_t<SrcBits != 0, Integral> 165 from(Integral<SrcBits, SrcSign> Value) {
|
/external/llvm-project/polly/lib/CodeGen/ |
D | RuntimeDebugBuilder.cpp | 38 unsigned SrcBits, in getAddressSpaceCast() argument 43 std::to_string(Src) + "i" + std::to_string(SrcBits); in getAddressSpaceCast() 50 PointerType::get(Builder.getIntNTy(SrcBits), Src), false); in getAddressSpaceCast()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/IR/ |
D | Instructions.cpp | 2908 unsigned SrcBits = C->getType()->getScalarSizeInBits(); in CreateIntegerCast() local 2911 (SrcBits == DstBits ? Instruction::BitCast : in CreateIntegerCast() 2912 (SrcBits > DstBits ? Instruction::Trunc : in CreateIntegerCast() 2922 unsigned SrcBits = C->getType()->getScalarSizeInBits(); in CreateIntegerCast() local 2925 (SrcBits == DstBits ? Instruction::BitCast : in CreateIntegerCast() 2926 (SrcBits > DstBits ? Instruction::Trunc : in CreateIntegerCast() 2936 unsigned SrcBits = C->getType()->getScalarSizeInBits(); in CreateFPCast() local 2939 (SrcBits == DstBits ? Instruction::BitCast : in CreateFPCast() 2940 (SrcBits > DstBits ? Instruction::FPTrunc : Instruction::FPExt)); in CreateFPCast() 2949 unsigned SrcBits = C->getType()->getScalarSizeInBits(); in CreateFPCast() local [all …]
|
D | Constants.cpp | 1715 unsigned SrcBits = C->getType()->getScalarSizeInBits(); in getIntegerCast() local 1718 (SrcBits == DstBits ? Instruction::BitCast : in getIntegerCast() 1719 (SrcBits > DstBits ? Instruction::Trunc : in getIntegerCast() 1727 unsigned SrcBits = C->getType()->getScalarSizeInBits(); in getFPCast() local 1729 if (SrcBits == DstBits) in getFPCast() 1732 (SrcBits > DstBits ? Instruction::FPTrunc : Instruction::FPExt); in getFPCast()
|
/external/llvm/lib/IR/ |
D | Instructions.cpp | 2815 unsigned SrcBits = C->getType()->getScalarSizeInBits(); in CreateIntegerCast() local 2818 (SrcBits == DstBits ? Instruction::BitCast : in CreateIntegerCast() 2819 (SrcBits > DstBits ? Instruction::Trunc : in CreateIntegerCast() 2829 unsigned SrcBits = C->getType()->getScalarSizeInBits(); in CreateIntegerCast() local 2832 (SrcBits == DstBits ? Instruction::BitCast : in CreateIntegerCast() 2833 (SrcBits > DstBits ? Instruction::Trunc : in CreateIntegerCast() 2843 unsigned SrcBits = C->getType()->getScalarSizeInBits(); in CreateFPCast() local 2846 (SrcBits == DstBits ? Instruction::BitCast : in CreateFPCast() 2847 (SrcBits > DstBits ? Instruction::FPTrunc : Instruction::FPExt)); in CreateFPCast() 2856 unsigned SrcBits = C->getType()->getScalarSizeInBits(); in CreateFPCast() local [all …]
|
D | Constants.cpp | 1543 unsigned SrcBits = C->getType()->getScalarSizeInBits(); in getIntegerCast() local 1546 (SrcBits == DstBits ? Instruction::BitCast : in getIntegerCast() 1547 (SrcBits > DstBits ? Instruction::Trunc : in getIntegerCast() 1555 unsigned SrcBits = C->getType()->getScalarSizeInBits(); in getFPCast() local 1557 if (SrcBits == DstBits) in getFPCast() 1560 (SrcBits > DstBits ? Instruction::FPTrunc : Instruction::FPExt); in getFPCast()
|
/external/llvm-project/llvm/lib/IR/ |
D | Instructions.cpp | 3096 unsigned SrcBits = C->getType()->getScalarSizeInBits(); in CreateIntegerCast() local 3099 (SrcBits == DstBits ? Instruction::BitCast : in CreateIntegerCast() 3100 (SrcBits > DstBits ? Instruction::Trunc : in CreateIntegerCast() 3110 unsigned SrcBits = C->getType()->getScalarSizeInBits(); in CreateIntegerCast() local 3113 (SrcBits == DstBits ? Instruction::BitCast : in CreateIntegerCast() 3114 (SrcBits > DstBits ? Instruction::Trunc : in CreateIntegerCast() 3124 unsigned SrcBits = C->getType()->getScalarSizeInBits(); in CreateFPCast() local 3127 (SrcBits == DstBits ? Instruction::BitCast : in CreateFPCast() 3128 (SrcBits > DstBits ? Instruction::FPTrunc : Instruction::FPExt)); in CreateFPCast() 3137 unsigned SrcBits = C->getType()->getScalarSizeInBits(); in CreateFPCast() local [all …]
|
D | Constants.cpp | 1992 unsigned SrcBits = C->getType()->getScalarSizeInBits(); in getIntegerCast() local 1995 (SrcBits == DstBits ? Instruction::BitCast : in getIntegerCast() 1996 (SrcBits > DstBits ? Instruction::Trunc : in getIntegerCast() 2004 unsigned SrcBits = C->getType()->getScalarSizeInBits(); in getFPCast() local 2006 if (SrcBits == DstBits) in getFPCast() 2009 (SrcBits > DstBits ? Instruction::FPTrunc : Instruction::FPExt); in getFPCast()
|
/external/llvm-project/polly/include/polly/CodeGen/ |
D | RuntimeDebugBuilder.h | 152 unsigned SrcBits = 8,
|
/external/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
D | GISelKnownBits.cpp | 524 unsigned SrcBits = MI.getOperand(2).getImm(); in computeNumSignBits() local 525 unsigned InRegBits = TyBits - SrcBits + 1; in computeNumSignBits()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/ |
D | AArch64FastISel.cpp | 4126 unsigned SrcBits = SrcVT.getSizeInBits(); in emitLSL_ri() local 4173 unsigned ImmS = std::min<unsigned>(SrcBits - 1, DstBits - 1 - Shift); in emitLSL_ri() 4233 unsigned SrcBits = SrcVT.getSizeInBits(); in emitLSR_ri() local 4278 if (Shift >= SrcBits && IsZExt) in emitLSR_ri() 4289 SrcBits = SrcVT.getSizeInBits(); in emitLSR_ri() 4293 unsigned ImmR = std::min<unsigned>(SrcBits - 1, Shift); in emitLSR_ri() 4294 unsigned ImmS = SrcBits - 1; in emitLSR_ri() 4354 unsigned SrcBits = SrcVT.getSizeInBits(); in emitASR_ri() local 4399 if (Shift >= SrcBits && IsZExt) in emitASR_ri() 4402 unsigned ImmR = std::min<unsigned>(SrcBits - 1, Shift); in emitASR_ri() [all …]
|
/external/llvm/lib/Target/AArch64/ |
D | AArch64FastISel.cpp | 3948 unsigned SrcBits = SrcVT.getSizeInBits(); in emitLSL_ri() local 3995 unsigned ImmS = std::min<unsigned>(SrcBits - 1, DstBits - 1 - Shift); in emitLSL_ri() 4055 unsigned SrcBits = SrcVT.getSizeInBits(); in emitLSR_ri() local 4100 if (Shift >= SrcBits && IsZExt) in emitLSR_ri() 4111 SrcBits = SrcVT.getSizeInBits(); in emitLSR_ri() 4115 unsigned ImmR = std::min<unsigned>(SrcBits - 1, Shift); in emitLSR_ri() 4116 unsigned ImmS = SrcBits - 1; in emitLSR_ri() 4176 unsigned SrcBits = SrcVT.getSizeInBits(); in emitASR_ri() local 4221 if (Shift >= SrcBits && IsZExt) in emitASR_ri() 4224 unsigned ImmR = std::min<unsigned>(SrcBits - 1, Shift); in emitASR_ri() [all …]
|
/external/llvm-project/llvm/lib/Target/AArch64/ |
D | AArch64FastISel.cpp | 4119 unsigned SrcBits = SrcVT.getSizeInBits(); in emitLSL_ri() local 4166 unsigned ImmS = std::min<unsigned>(SrcBits - 1, DstBits - 1 - Shift); in emitLSL_ri() 4226 unsigned SrcBits = SrcVT.getSizeInBits(); in emitLSR_ri() local 4271 if (Shift >= SrcBits && IsZExt) in emitLSR_ri() 4282 SrcBits = SrcVT.getSizeInBits(); in emitLSR_ri() 4286 unsigned ImmR = std::min<unsigned>(SrcBits - 1, Shift); in emitLSR_ri() 4287 unsigned ImmS = SrcBits - 1; in emitLSR_ri() 4347 unsigned SrcBits = SrcVT.getSizeInBits(); in emitASR_ri() local 4392 if (Shift >= SrcBits && IsZExt) in emitASR_ri() 4395 unsigned ImmR = std::min<unsigned>(SrcBits - 1, Shift); in emitASR_ri() [all …]
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineShifts.cpp | 808 uint32_t SrcBits = ZI->getOperand(0)->getType()->getScalarSizeInBits(); in visitAShr() local 810 if (Op1C->getZExtValue() == DestBits-SrcBits) in visitAShr()
|
D | InstCombineCompares.cpp | 1557 SrcBits = LHSI->getOperand(0)->getType()->getPrimitiveSizeInBits(); in visitICmpInstWithInstAndIntCst() local 1558 APInt KnownZero(SrcBits, 0), KnownOne(SrcBits, 0); in visitICmpInstWithInstAndIntCst() 1562 if ((KnownZero|KnownOne).countLeadingOnes() >= SrcBits-DstBits) { in visitICmpInstWithInstAndIntCst() 1564 APInt NewRHS = RHS->getValue().zext(SrcBits); in visitICmpInstWithInstAndIntCst() 1565 NewRHS |= KnownOne & APInt::getHighBitsSet(SrcBits, SrcBits-DstBits); in visitICmpInstWithInstAndIntCst()
|
/external/llvm-project/clang/lib/CodeGen/ |
D | CGExprScalar.cpp | 1015 unsigned SrcBits = Src->getType()->getScalarSizeInBits(); in EmitIntegerTruncationCheck() local 1018 if (SrcBits <= DstBits) in EmitIntegerTruncationCheck() 1068 unsigned SrcBits = SrcTy->getScalarSizeInBits(); in EmitIntegerSignChangeCheckHelper() local 1070 (void)SrcBits; // Only used in assert() in EmitIntegerSignChangeCheckHelper() 1073 assert(((SrcBits != DstBits) || (SrcSigned != DstSigned)) && in EmitIntegerSignChangeCheckHelper() 1129 unsigned SrcBits = SrcTy->getScalarSizeInBits(); in EmitIntegerSignChangeCheck() local 1137 if (SrcSigned == DstSigned && SrcBits == DstBits) in EmitIntegerSignChangeCheck() 1146 if ((DstBits > SrcBits) && DstSigned) in EmitIntegerSignChangeCheck() 1149 (SrcBits > DstBits) && SrcSigned) { in EmitIntegerSignChangeCheck() 1174 (SrcBits > DstBits) && !SrcSigned && DstSigned) { in EmitIntegerSignChangeCheck()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/ |
D | ARMFastISel.cpp | 2676 unsigned SrcBits = SrcVT.getSizeInBits(); in ARMEmitIntExt() local 2679 assert((SrcBits < DestBits) && "can only extend to larger types"); in ARMEmitIntExt() 2682 assert((SrcBits == 16 || SrcBits == 8 || SrcBits == 1) && in ARMEmitIntExt() 2686 unsigned Bitness = SrcBits / 8; // {1,8,16}=>{0,1,2} in ARMEmitIntExt()
|
/external/llvm/lib/Target/ARM/ |
D | ARMFastISel.cpp | 2657 unsigned SrcBits = SrcVT.getSizeInBits(); in ARMEmitIntExt() local 2660 assert((SrcBits < DestBits) && "can only extend to larger types"); in ARMEmitIntExt() 2663 assert((SrcBits == 16 || SrcBits == 8 || SrcBits == 1) && in ARMEmitIntExt() 2667 unsigned Bitness = SrcBits / 8; // {1,8,16}=>{0,1,2} in ARMEmitIntExt()
|
/external/llvm-project/llvm/lib/Target/ARM/ |
D | ARMFastISel.cpp | 2671 unsigned SrcBits = SrcVT.getSizeInBits(); in ARMEmitIntExt() local 2674 assert((SrcBits < DestBits) && "can only extend to larger types"); in ARMEmitIntExt() 2677 assert((SrcBits == 16 || SrcBits == 8 || SrcBits == 1) && in ARMEmitIntExt() 2681 unsigned Bitness = SrcBits / 8; // {1,8,16}=>{0,1,2} in ARMEmitIntExt()
|
/external/llvm/lib/Analysis/ |
D | ScalarEvolutionExpander.cpp | 2046 unsigned SrcBits = SE.getTypeSizeInBits(ExitCount->getType()); in generateOverflowCheck() local 2054 IntegerType *CountTy = IntegerType::get(Loc->getContext(), SrcBits); in generateOverflowCheck() 2103 auto MaxVal = APInt::getMaxValue(DstBits).zext(SrcBits); in generateOverflowCheck()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/ |
D | ScalarEvolutionExpander.cpp | 2253 unsigned SrcBits = SE.getTypeSizeInBits(ExitCount->getType()); in generateOverflowCheck() local 2261 IntegerType *CountTy = IntegerType::get(Loc->getContext(), SrcBits); in generateOverflowCheck() 2321 auto MaxVal = APInt::getMaxValue(DstBits).zext(SrcBits); in generateOverflowCheck()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/RISCV/ |
D | RISCVISelLowering.cpp | 307 unsigned SrcBits = SrcTy->getPrimitiveSizeInBits(); in isTruncateFree() local 309 return (SrcBits == 64 && DestBits == 32); in isTruncateFree() 316 unsigned SrcBits = SrcVT.getSizeInBits(); in isTruncateFree() local 318 return (SrcBits == 64 && DestBits == 32); in isTruncateFree()
|
/external/llvm-project/llvm/lib/Transforms/Utils/ |
D | ScalarEvolutionExpander.cpp | 2477 unsigned SrcBits = SE.getTypeSizeInBits(ExitCount->getType()); in generateOverflowCheck() local 2485 IntegerType *CountTy = IntegerType::get(Loc->getContext(), SrcBits); in generateOverflowCheck() 2546 auto MaxVal = APInt::getMaxValue(DstBits).zext(SrcBits); in generateOverflowCheck()
|
/external/llvm-project/llvm/lib/Target/RISCV/ |
D | RISCVISelLowering.cpp | 431 unsigned SrcBits = SrcTy->getPrimitiveSizeInBits(); in isTruncateFree() local 433 return (SrcBits == 64 && DestBits == 32); in isTruncateFree() 440 unsigned SrcBits = SrcVT.getSizeInBits(); in isTruncateFree() local 442 return (SrcBits == 64 && DestBits == 32); in isTruncateFree()
|