Home
last modified time | relevance | path

Searched refs:SrcBits (Results 1 – 21 of 21) sorted by relevance

/external/swiftshader/third_party/LLVM/lib/VMCore/
DInstructions.cpp2372 unsigned SrcBits = C->getType()->getScalarSizeInBits(); in CreateIntegerCast() local
2375 (SrcBits == DstBits ? Instruction::BitCast : in CreateIntegerCast()
2376 (SrcBits > DstBits ? Instruction::Trunc : in CreateIntegerCast()
2386 unsigned SrcBits = C->getType()->getScalarSizeInBits(); in CreateIntegerCast() local
2389 (SrcBits == DstBits ? Instruction::BitCast : in CreateIntegerCast()
2390 (SrcBits > DstBits ? Instruction::Trunc : in CreateIntegerCast()
2400 unsigned SrcBits = C->getType()->getScalarSizeInBits(); in CreateFPCast() local
2403 (SrcBits == DstBits ? Instruction::BitCast : in CreateFPCast()
2404 (SrcBits > DstBits ? Instruction::FPTrunc : Instruction::FPExt)); in CreateFPCast()
2413 unsigned SrcBits = C->getType()->getScalarSizeInBits(); in CreateFPCast() local
[all …]
DConstants.cpp1287 unsigned SrcBits = C->getType()->getScalarSizeInBits(); in getIntegerCast() local
1290 (SrcBits == DstBits ? Instruction::BitCast : in getIntegerCast()
1291 (SrcBits > DstBits ? Instruction::Trunc : in getIntegerCast()
1299 unsigned SrcBits = C->getType()->getScalarSizeInBits(); in getFPCast() local
1301 if (SrcBits == DstBits) in getFPCast()
1304 (SrcBits > DstBits ? Instruction::FPTrunc : Instruction::FPExt); in getFPCast()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/
DInstructions.cpp2630 unsigned SrcBits = C->getType()->getScalarSizeInBits(); in CreateIntegerCast() local
2633 (SrcBits == DstBits ? Instruction::BitCast : in CreateIntegerCast()
2634 (SrcBits > DstBits ? Instruction::Trunc : in CreateIntegerCast()
2644 unsigned SrcBits = C->getType()->getScalarSizeInBits(); in CreateIntegerCast() local
2647 (SrcBits == DstBits ? Instruction::BitCast : in CreateIntegerCast()
2648 (SrcBits > DstBits ? Instruction::Trunc : in CreateIntegerCast()
2658 unsigned SrcBits = C->getType()->getScalarSizeInBits(); in CreateFPCast() local
2661 (SrcBits == DstBits ? Instruction::BitCast : in CreateFPCast()
2662 (SrcBits > DstBits ? Instruction::FPTrunc : Instruction::FPExt)); in CreateFPCast()
2671 unsigned SrcBits = C->getType()->getScalarSizeInBits(); in CreateFPCast() local
[all …]
DConstants.cpp1593 unsigned SrcBits = C->getType()->getScalarSizeInBits(); in getIntegerCast() local
1596 (SrcBits == DstBits ? Instruction::BitCast : in getIntegerCast()
1597 (SrcBits > DstBits ? Instruction::Trunc : in getIntegerCast()
1605 unsigned SrcBits = C->getType()->getScalarSizeInBits(); in getFPCast() local
1607 if (SrcBits == DstBits) in getFPCast()
1610 (SrcBits > DstBits ? Instruction::FPTrunc : Instruction::FPExt); in getFPCast()
/external/llvm/lib/IR/
DInstructions.cpp2815 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 …]
DConstants.cpp1543 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/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineCompares.cpp1003 SrcBits = LHSI->getOperand(0)->getType()->getPrimitiveSizeInBits(); in visitICmpInstWithInstAndIntCst() local
1004 APInt Mask(APInt::getHighBitsSet(SrcBits, SrcBits-DstBits)); in visitICmpInstWithInstAndIntCst()
1005 APInt KnownZero(SrcBits, 0), KnownOne(SrcBits, 0); in visitICmpInstWithInstAndIntCst()
1009 if ((KnownZero|KnownOne).countLeadingOnes() >= SrcBits-DstBits) { in visitICmpInstWithInstAndIntCst()
1011 APInt NewRHS = RHS->getValue().zext(SrcBits); in visitICmpInstWithInstAndIntCst()
DInstCombineShifts.cpp735 uint32_t SrcBits = ZI->getOperand(0)->getType()->getScalarSizeInBits(); in visitAShr() local
737 if (Op1C->getZExtValue() == DestBits-SrcBits) in visitAShr()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AArch64/
DAArch64FastISel.cpp4034 unsigned SrcBits = SrcVT.getSizeInBits(); in emitLSL_ri() local
4081 unsigned ImmS = std::min<unsigned>(SrcBits - 1, DstBits - 1 - Shift); in emitLSL_ri()
4141 unsigned SrcBits = SrcVT.getSizeInBits(); in emitLSR_ri() local
4186 if (Shift >= SrcBits && IsZExt) in emitLSR_ri()
4197 SrcBits = SrcVT.getSizeInBits(); in emitLSR_ri()
4201 unsigned ImmR = std::min<unsigned>(SrcBits - 1, Shift); in emitLSR_ri()
4202 unsigned ImmS = SrcBits - 1; in emitLSR_ri()
4262 unsigned SrcBits = SrcVT.getSizeInBits(); in emitASR_ri() local
4307 if (Shift >= SrcBits && IsZExt) in emitASR_ri()
4310 unsigned ImmR = std::min<unsigned>(SrcBits - 1, Shift); in emitASR_ri()
[all …]
/external/llvm/lib/Target/AArch64/
DAArch64FastISel.cpp3948 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/swiftshader/third_party/llvm-7.0/llvm/lib/Target/RISCV/
DRISCVISelLowering.cpp203 unsigned SrcBits = SrcTy->getPrimitiveSizeInBits(); in isTruncateFree() local
205 return (SrcBits == 64 && DestBits == 32); in isTruncateFree()
212 unsigned SrcBits = SrcVT.getSizeInBits(); in isTruncateFree() local
214 return (SrcBits == 64 && DestBits == 32); in isTruncateFree()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineShifts.cpp808 uint32_t SrcBits = ZI->getOperand(0)->getType()->getScalarSizeInBits(); in visitAShr() local
810 if (Op1C->getZExtValue() == DestBits-SrcBits) in visitAShr()
DInstCombineCompares.cpp1557 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/lib/Target/ARM/
DARMFastISel.cpp2657 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/swiftshader/third_party/llvm-7.0/llvm/lib/Target/ARM/
DARMFastISel.cpp2683 unsigned SrcBits = SrcVT.getSizeInBits(); in ARMEmitIntExt() local
2686 assert((SrcBits < DestBits) && "can only extend to larger types"); in ARMEmitIntExt()
2689 assert((SrcBits == 16 || SrcBits == 8 || SrcBits == 1) && in ARMEmitIntExt()
2693 unsigned Bitness = SrcBits / 8; // {1,8,16}=>{0,1,2} in ARMEmitIntExt()
DARMISelLowering.cpp12964 unsigned SrcBits = SrcTy->getPrimitiveSizeInBits(); in isTruncateFree() local
12966 return (SrcBits == 64 && DestBits == 32); in isTruncateFree()
12973 unsigned SrcBits = SrcVT.getSizeInBits(); in isTruncateFree() local
12975 return (SrcBits == 64 && DestBits == 32); in isTruncateFree()
/external/llvm/lib/Analysis/
DScalarEvolutionExpander.cpp2046 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-7.0/llvm/lib/Analysis/
DScalarEvolutionExpander.cpp2163 unsigned SrcBits = SE.getTypeSizeInBits(ExitCount->getType()); in generateOverflowCheck() local
2171 IntegerType *CountTy = IntegerType::get(Loc->getContext(), SrcBits); in generateOverflowCheck()
2231 auto MaxVal = APInt::getMaxValue(DstBits).zext(SrcBits); in generateOverflowCheck()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstCombineCompares.cpp1436 SrcBits = X->getType()->getScalarSizeInBits(); in foldICmpTruncConstant() local
1440 if ((Known.Zero | Known.One).countLeadingOnes() >= SrcBits - DstBits) { in foldICmpTruncConstant()
1442 APInt NewRHS = C.zext(SrcBits); in foldICmpTruncConstant()
1443 NewRHS |= Known.One & APInt::getHighBitsSet(SrcBits, SrcBits - DstBits); in foldICmpTruncConstant()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAG.cpp3233 unsigned SrcBits = SrcVT.getScalarSizeInBits(); in ComputeNumSignBits() local
3240 if (VTBits == SrcBits) in ComputeNumSignBits()
3246 if ((SrcBits % VTBits) == 0) { in ComputeNumSignBits()
3249 if (Tmp == SrcBits) in ComputeNumSignBits()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/X86/
DX86ISelLowering.cpp29058 unsigned SrcBits = Op.getOperand(0).getScalarValueSizeInBits(); in ComputeNumSignBitsForTargetNode() local
29062 if (Tmp > (SrcBits - VTBits)) in ComputeNumSignBitsForTargetNode()
29063 return Tmp - (SrcBits - VTBits); in ComputeNumSignBitsForTargetNode()