Home
last modified time | relevance | path

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

/external/llvm/lib/IR/
DInstructions.cpp2466 unsigned SrcBits = C->getType()->getScalarSizeInBits(); in CreateIntegerCast() local
2469 (SrcBits == DstBits ? Instruction::BitCast : in CreateIntegerCast()
2470 (SrcBits > DstBits ? Instruction::Trunc : in CreateIntegerCast()
2480 unsigned SrcBits = C->getType()->getScalarSizeInBits(); in CreateIntegerCast() local
2483 (SrcBits == DstBits ? Instruction::BitCast : in CreateIntegerCast()
2484 (SrcBits > DstBits ? Instruction::Trunc : in CreateIntegerCast()
2494 unsigned SrcBits = C->getType()->getScalarSizeInBits(); in CreateFPCast() local
2497 (SrcBits == DstBits ? Instruction::BitCast : in CreateFPCast()
2498 (SrcBits > DstBits ? Instruction::FPTrunc : Instruction::FPExt)); in CreateFPCast()
2507 unsigned SrcBits = C->getType()->getScalarSizeInBits(); in CreateFPCast() local
[all …]
DConstants.cpp1653 unsigned SrcBits = C->getType()->getScalarSizeInBits(); in getIntegerCast() local
1656 (SrcBits == DstBits ? Instruction::BitCast : in getIntegerCast()
1657 (SrcBits > DstBits ? Instruction::Trunc : in getIntegerCast()
1665 unsigned SrcBits = C->getType()->getScalarSizeInBits(); in getFPCast() local
1667 if (SrcBits == DstBits) in getFPCast()
1670 (SrcBits > DstBits ? Instruction::FPTrunc : Instruction::FPExt); in getFPCast()
/external/llvm/lib/Target/AArch64/
DAArch64FastISel.cpp3929 unsigned SrcBits = SrcVT.getSizeInBits(); in emitLSL_ri() local
3976 unsigned ImmS = std::min<unsigned>(SrcBits - 1, DstBits - 1 - Shift); in emitLSL_ri()
4036 unsigned SrcBits = SrcVT.getSizeInBits(); in emitLSR_ri() local
4081 if (Shift >= SrcBits && IsZExt) in emitLSR_ri()
4092 SrcBits = SrcVT.getSizeInBits(); in emitLSR_ri()
4096 unsigned ImmR = std::min<unsigned>(SrcBits - 1, Shift); in emitLSR_ri()
4097 unsigned ImmS = SrcBits - 1; in emitLSR_ri()
4157 unsigned SrcBits = SrcVT.getSizeInBits(); in emitASR_ri() local
4202 if (Shift >= SrcBits && IsZExt) in emitASR_ri()
4205 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.cpp1152 SrcBits = LHSI->getOperand(0)->getType()->getPrimitiveSizeInBits(); in visitICmpInstWithInstAndIntCst() local
1153 APInt KnownZero(SrcBits, 0), KnownOne(SrcBits, 0); in visitICmpInstWithInstAndIntCst()
1157 if ((KnownZero|KnownOne).countLeadingOnes() >= SrcBits-DstBits) { in visitICmpInstWithInstAndIntCst()
1159 APInt NewRHS = RHS->getValue().zext(SrcBits); in visitICmpInstWithInstAndIntCst()
1160 NewRHS |= KnownOne & APInt::getHighBitsSet(SrcBits, SrcBits-DstBits); in visitICmpInstWithInstAndIntCst()
/external/llvm/lib/Target/ARM/
DARMFastISel.cpp2665 unsigned SrcBits = SrcVT.getSizeInBits(); in ARMEmitIntExt() local
2668 assert((SrcBits < DestBits) && "can only extend to larger types"); in ARMEmitIntExt()
2671 assert((SrcBits == 16 || SrcBits == 8 || SrcBits == 1) && in ARMEmitIntExt()
2675 unsigned Bitness = SrcBits / 8; // {1,8,16}=>{0,1,2} in ARMEmitIntExt()