Home
last modified time | relevance | path

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

/external/llvm/lib/IR/
DInstructions.cpp2740 unsigned SrcBits = C->getType()->getScalarSizeInBits(); in CreateIntegerCast() local
2743 (SrcBits == DstBits ? Instruction::BitCast : in CreateIntegerCast()
2744 (SrcBits > DstBits ? Instruction::Trunc : in CreateIntegerCast()
2754 unsigned SrcBits = C->getType()->getScalarSizeInBits(); in CreateIntegerCast() local
2757 (SrcBits == DstBits ? Instruction::BitCast : in CreateIntegerCast()
2758 (SrcBits > DstBits ? Instruction::Trunc : in CreateIntegerCast()
2768 unsigned SrcBits = C->getType()->getScalarSizeInBits(); in CreateFPCast() local
2771 (SrcBits == DstBits ? Instruction::BitCast : in CreateFPCast()
2772 (SrcBits > DstBits ? Instruction::FPTrunc : Instruction::FPExt)); in CreateFPCast()
2781 unsigned SrcBits = C->getType()->getScalarSizeInBits(); in CreateFPCast() local
[all …]
DConstants.cpp1613 unsigned SrcBits = C->getType()->getScalarSizeInBits(); in getIntegerCast() local
1616 (SrcBits == DstBits ? Instruction::BitCast : in getIntegerCast()
1617 (SrcBits > DstBits ? Instruction::Trunc : in getIntegerCast()
1625 unsigned SrcBits = C->getType()->getScalarSizeInBits(); in getFPCast() local
1627 if (SrcBits == DstBits) in getFPCast()
1630 (SrcBits > DstBits ? Instruction::FPTrunc : Instruction::FPExt); in getFPCast()
/external/llvm/lib/Target/AArch64/
DAArch64FastISel.cpp3915 unsigned SrcBits = SrcVT.getSizeInBits(); in emitLSL_ri() local
3962 unsigned ImmS = std::min<unsigned>(SrcBits - 1, DstBits - 1 - Shift); in emitLSL_ri()
4022 unsigned SrcBits = SrcVT.getSizeInBits(); in emitLSR_ri() local
4067 if (Shift >= SrcBits && IsZExt) in emitLSR_ri()
4078 SrcBits = SrcVT.getSizeInBits(); in emitLSR_ri()
4082 unsigned ImmR = std::min<unsigned>(SrcBits - 1, Shift); in emitLSR_ri()
4083 unsigned ImmS = SrcBits - 1; in emitLSR_ri()
4143 unsigned SrcBits = SrcVT.getSizeInBits(); in emitASR_ri() local
4188 if (Shift >= SrcBits && IsZExt) in emitASR_ri()
4191 unsigned ImmR = std::min<unsigned>(SrcBits - 1, Shift); in emitASR_ri()
[all …]
/external/llvm/lib/Transforms/InstCombine/
DInstCombineShifts.cpp807 uint32_t SrcBits = ZI->getOperand(0)->getType()->getScalarSizeInBits(); in visitAShr() local
809 if (Op1C->getZExtValue() == DestBits-SrcBits) in visitAShr()
DInstCombineCompares.cpp1232 SrcBits = LHSI->getOperand(0)->getType()->getPrimitiveSizeInBits(); in visitICmpInstWithInstAndIntCst() local
1233 APInt KnownZero(SrcBits, 0), KnownOne(SrcBits, 0); in visitICmpInstWithInstAndIntCst()
1237 if ((KnownZero|KnownOne).countLeadingOnes() >= SrcBits-DstBits) { in visitICmpInstWithInstAndIntCst()
1239 APInt NewRHS = RHS->getValue().zext(SrcBits); in visitICmpInstWithInstAndIntCst()
1240 NewRHS |= KnownOne & APInt::getHighBitsSet(SrcBits, SrcBits-DstBits); in visitICmpInstWithInstAndIntCst()
/external/llvm/lib/Target/ARM/
DARMFastISel.cpp2663 unsigned SrcBits = SrcVT.getSizeInBits(); in ARMEmitIntExt() local
2666 assert((SrcBits < DestBits) && "can only extend to larger types"); in ARMEmitIntExt()
2669 assert((SrcBits == 16 || SrcBits == 8 || SrcBits == 1) && in ARMEmitIntExt()
2673 unsigned Bitness = SrcBits / 8; // {1,8,16}=>{0,1,2} in ARMEmitIntExt()