/external/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineAddSub.cpp | 135 Constant *ShAmt = ConstantInt::get(I.getType(), ExtendAmt); local 136 Value *NewShl = Builder->CreateShl(XorLHS, ShAmt, "sext"); 137 return BinaryOperator::CreateAShr(NewShl, ShAmt);
|
H A D | InstCombineMulDivRem.cpp | 534 Value *ShAmt = llvm::ConstantInt::get(RHS->getType(), local 536 return BinaryOperator::CreateExactAShr(Op0, ShAmt, I.getName());
|
H A D | InstCombineShifts.cpp | 370 Constant *ShAmt = ConstantExpr::getZExt(Op1, TrOp->getType()); local 372 Value *NSh = Builder->CreateBinOp(I.getOpcode(), TrOp, ShAmt,I.getName()); 690 unsigned ShAmt = Op1C->getZExtValue(); local 695 APInt::getHighBitsSet(Op1C->getBitWidth(), ShAmt))) { 702 ComputeNumSignBits(I.getOperand(0)) > ShAmt) { 729 unsigned ShAmt = Op1C->getZExtValue(); local 739 isPowerOf2_32(BitWidth) && Log2_32(BitWidth) == ShAmt) { 749 MaskedValueIsZero(Op0,APInt::getLowBitsSet(Op1C->getBitWidth(),ShAmt))){ 769 unsigned ShAmt = Op1C->getZExtValue(); local 795 MaskedValueIsZero(Op0,APInt::getLowBitsSet(Op1C->getBitWidth(),ShAmt))){ [all...] |
H A D | InstCombineAndOrXor.cpp | 1295 unsigned ShAmt = local 1298 if ((ShAmt & 7) || (ShAmt > 8*ByteValues.size())) 1301 unsigned ByteShift = ShAmt >> 3;
|
H A D | InstCombineCasts.cpp | 1078 Value *ShAmt = ConstantInt::get(DestTy, DestBitSize-SrcBitSize); 1079 return BinaryOperator::CreateAShr(Builder->CreateShl(Res, ShAmt, "sext"), 1080 ShAmt); 1091 Value *ShAmt = ConstantInt::get(DestTy, DestBitSize-SrcBitSize); local 1092 Value *Res = Builder->CreateShl(TI->getOperand(0), ShAmt, "sext"); 1093 return BinaryOperator::CreateAShr(Res, ShAmt); 1120 unsigned ShAmt = CA->getZExtValue()+SrcDstSize-MidSize; local 1121 Constant *ShAmtV = ConstantInt::get(CI.getType(), ShAmt); 1615 ConstantInt *ShAmt = 0; local 1617 m_ConstantInt(ShAmt)))) [all...] |
H A D | InstCombineCompares.cpp | 931 ConstantInt *ShAmt) { 938 uint32_t ShAmtVal = (uint32_t)ShAmt->getLimitedValue(TypeBits); 1150 ConstantInt *ShAmt; local 1151 ShAmt = Shift ? dyn_cast<ConstantInt>(Shift->getOperand(1)) : 0; 1158 if (ShAmt) { 1164 int ShAmtVal = TyBits - ShAmt->getLimitedValue(TyBits); 1175 NewCst = ConstantExpr::getLShr(RHS, ShAmt); 1177 NewCst = ConstantExpr::getShl(RHS, ShAmt); 1182 NewCst, ShAmt) != RHS) { 1196 NewAndCST = ConstantExpr::getLShr(AndCST, ShAmt); 930 FoldICmpShrCst(ICmpInst &ICI, BinaryOperator *Shr, ConstantInt *ShAmt) argument 1267 ConstantInt *ShAmt = dyn_cast<ConstantInt>(LHSI->getOperand(1)); local 2602 uint64_t ShAmt = 0; local 2615 MaskV <<= ShAmt; local 2618 CmpV <<= ShAmt; local [all...] |
H A D | InstructionCombining.cpp | 1011 ConstantInt *ShAmt = cast<ConstantInt>(Inst->getOperand(1)); local 1012 uint32_t ShAmtVal = ShAmt->getLimitedValue(64);
|
/external/clang/lib/Lex/ |
H A D | PPExpressions.cpp | 582 unsigned ShAmt = static_cast<unsigned>(RHS.Val.getLimitedValue()); local 584 Overflow = ShAmt >= LHS.Val.getBitWidth(); 586 ShAmt = LHS.Val.getBitWidth()-1; 587 Res = LHS.Val << ShAmt; 589 Res = llvm::APSInt(LHS.Val.sshl_ov(ShAmt, Overflow), false); 595 unsigned ShAmt = static_cast<unsigned>(RHS.Val.getLimitedValue()); local 596 if (ShAmt >= LHS.getBitWidth()) 597 Overflow = true, ShAmt = LHS.getBitWidth()-1; 598 Res = LHS.Val >> ShAmt;
|
/external/llvm/lib/Analysis/ |
H A D | ValueTracking.cpp | 1033 const APInt *ShAmt; local 1034 if (match(U->getOperand(1), m_APInt(ShAmt))) { 1035 Tmp += ShAmt->getZExtValue(); 1041 const APInt *ShAmt; local 1042 if (match(U->getOperand(1), m_APInt(ShAmt))) { 1045 Tmp2 = ShAmt->getZExtValue();
|
/external/llvm/lib/VMCore/ |
H A D | ConstantFold.cpp | 251 unsigned ShAmt = Amt->getZExtValue(); local 253 if ((ShAmt & 7) != 0) 255 ShAmt >>= 3; 258 if (ByteStart >= CSize-ShAmt) 262 if (ByteStart+ByteSize+ShAmt <= CSize) 263 return ExtractConstantBytes(CE->getOperand(0), ByteStart+ShAmt, ByteSize); 273 unsigned ShAmt = Amt->getZExtValue(); local 275 if ((ShAmt & 7) != 0) 277 ShAmt >>= 3; 280 if (ByteStart+ByteSize <= ShAmt) [all...] |
/external/llvm/lib/Target/ARM/ |
H A D | ARMISelDAGToDAG.cpp | 92 ARM_AM::ShiftOpc ShOpcVal, unsigned ShAmt); 376 unsigned ShAmt) { 382 return ShOpcVal == ARM_AM::lsl && ShAmt == 2; 501 unsigned ShAmt = Log2_32(RHSC); local 503 Opc = CurDAG->getTargetConstant(ARM_AM::getAM2Opc(AddSub, ShAmt, 529 unsigned ShAmt = 0; local 539 ShAmt = Sh->getZExtValue(); 540 if (isShifterOpProfitable(Offset, ShOpcVal, ShAmt)) 543 ShAmt = 0; 560 ShAmt 374 isShifterOpProfitable(const SDValue &Shift, ARM_AM::ShiftOpc ShOpcVal, unsigned ShAmt) argument 599 unsigned ShAmt = Log2_32(RHSC); local 667 unsigned ShAmt = 0; local 731 unsigned ShAmt = 0; local 1282 unsigned ShAmt = 0; local [all...] |
H A D | ARMBaseInstrInfo.cpp | 2786 unsigned ShAmt = DefMI->getOperand(3).getImm(); local 2787 if (ShAmt == 0 || ShAmt == 2) 3055 unsigned ShAmt = local 3057 if (ShAmt == 0 || ShAmt == 2)
|
H A D | ARMISelLowering.cpp | 3414 SDValue ShAmt = Op.getOperand(2); local 3421 DAG.getConstant(VTBits, MVT::i32), ShAmt); 3422 SDValue Tmp1 = DAG.getNode(ISD::SRL, dl, VT, ShOpLo, ShAmt); 3423 SDValue ExtraShAmt = DAG.getNode(ISD::SUB, dl, MVT::i32, ShAmt, 3432 SDValue Hi = DAG.getNode(Opc, dl, VT, ShOpHi, ShAmt); 3450 SDValue ShAmt = Op.getOperand(2); local 3455 DAG.getConstant(VTBits, MVT::i32), ShAmt); 3457 SDValue ExtraShAmt = DAG.getNode(ISD::SUB, dl, MVT::i32, ShAmt, 3459 SDValue Tmp2 = DAG.getNode(ISD::SHL, dl, VT, ShOpHi, ShAmt); 3466 SDValue Lo = DAG.getNode(ISD::SHL, dl, VT, ShOpLo, ShAmt); 7787 SDValue ShAmt = N00.getOperand(1); local [all...] |
/external/llvm/lib/Transforms/Scalar/ |
H A D | ScalarReplAggregates.cpp | 836 int ShAmt = 0; local 841 ShAmt = TD.getTypeStoreSizeInBits(NTy) - 844 ShAmt = Offset; 850 if (ShAmt > 0 && (unsigned)ShAmt < NTy->getBitWidth()) 852 ConstantInt::get(FromVal->getType(), ShAmt)); 853 else if (ShAmt < 0 && (unsigned)-ShAmt < NTy->getBitWidth()) 855 ConstantInt::get(FromVal->getType(), -ShAmt)); 984 int ShAmt local 1000 Mask <<= ShAmt; local [all...] |
/external/llvm/lib/CodeGen/SelectionDAG/ |
H A D | TargetLowering.cpp | 1419 unsigned ShAmt = SA->getZExtValue(); local 1423 if (ShAmt >= BitWidth) 1426 // If this is ((X >>u C1) << ShAmt), see if we can simplify this into a 1431 if (ShAmt && (NewMask & APInt::getLowBitsSet(BitWidth, ShAmt)) == 0) { 1434 int Diff = ShAmt-C1; 1448 if (SimplifyDemandedBits(InOp, NewMask.lshr(ShAmt), 1458 if (ShAmt < InnerBits && NewMask.lshr(InnerBits) == 0 && 1461 if (!APInt(BitWidth, ShAmt).isIntN(ShTy.getSizeInBits())) 1465 TLO.DAG.getConstant(ShAmt, ShT 1482 unsigned ShAmt = SA->getZExtValue(); local 1535 unsigned ShAmt = SA->getZExtValue(); local 1576 unsigned ShAmt = ExVT.getScalarType().getSizeInBits(); local 1734 ConstantSDNode *ShAmt = dyn_cast<ConstantSDNode>(In.getOperand(1)); local 1799 SDValue ShAmt = TLO.DAG.getConstant(ShVal, Op.getValueType()); local 1933 const APInt &ShAmt local 3299 unsigned ShAmt = d.countTrailingZeros(); local [all...] |
H A D | DAGCombiner.cpp | 2994 SDValue ShAmt = DAG.getConstant(16, getShiftAmountTy(VT)); local 2996 return DAG.getNode(ISD::ROTL, N->getDebugLoc(), VT, BSwap, ShAmt); 2998 return DAG.getNode(ISD::ROTR, N->getDebugLoc(), VT, BSwap, ShAmt); 3000 DAG.getNode(ISD::SHL, N->getDebugLoc(), VT, BSwap, ShAmt), 3001 DAG.getNode(ISD::SRL, N->getDebugLoc(), VT, BSwap, ShAmt)); 3850 uint64_t ShAmt = N1C->getZExtValue()+64-N0.getValueSizeInBits(); local 3852 DAG.getConstant(~0ULL >> ShAmt, VT)); 3901 unsigned ShAmt = UnknownBits.countTrailingZeros(); local 3904 if (ShAmt) { 3906 DAG.getConstant(ShAmt, getShiftAmountT 4753 SDValue ShAmt = N0.getOperand(1); local 5017 unsigned ShAmt = 0; local 7330 unsigned ShAmt = Imm.countTrailingZeros(); local [all...] |
H A D | SelectionDAG.cpp | 1825 unsigned ShAmt = SA->getZExtValue(); local 1828 if (ShAmt >= BitWidth) 1833 KnownZero <<= ShAmt; local 1834 KnownOne <<= ShAmt; local 1836 KnownZero |= APInt::getLowBitsSet(BitWidth, ShAmt); 1842 unsigned ShAmt = SA->getZExtValue(); local 1845 if (ShAmt >= BitWidth) 1850 KnownZero = KnownZero.lshr(ShAmt); 1851 KnownOne = KnownOne.lshr(ShAmt); 1853 APInt HighBits = APInt::getHighBitsSet(BitWidth, ShAmt); 1859 unsigned ShAmt = SA->getZExtValue(); local [all...] |
H A D | SelectionDAGBuilder.cpp | 4814 SDValue ShAmt = getValue(I.getArgOperand(1)); local 4815 if (isa<ConstantSDNode>(ShAmt)) { 4855 ShOps[0] = ShAmt; 4857 ShAmt = DAG.getNode(ISD::BUILD_VECTOR, dl, ShAmtVT, &ShOps[0], 2); 4859 ShAmt = DAG.getNode(ISD::BITCAST, dl, DestVT, ShAmt); 4862 getValue(I.getArgOperand(0)), ShAmt);
|
/external/llvm/lib/Target/X86/ |
H A D | X86InstrInfo.cpp | 1767 unsigned ShAmt = MI->getOperand(2).getImm(); local 1768 MIB.addReg(0).addImm(1 << ShAmt) 1893 unsigned ShAmt = MI->getOperand(2).getImm(); local 1894 if (ShAmt == 0 || ShAmt >= 4) return 0; 1904 .addReg(0).addImm(1 << ShAmt).addOperand(Src).addImm(0).addReg(0); 1911 unsigned ShAmt = MI->getOperand(2).getImm(); local 1912 if (ShAmt == 0 || ShAmt >= 4) return 0; 1923 .addReg(0).addImm(1 << ShAmt) 1930 unsigned ShAmt = MI->getOperand(2).getImm(); local [all...] |
H A D | X86ISelLowering.cpp | 3984 unsigned ShAmt = (i << Shift) % 8; local 3985 Mask |= Elt << ShAmt; 4684 bool &isLeft, SDValue &ShVal, unsigned &ShAmt) { 4709 ShAmt = NumZeros; 4717 bool &isLeft, SDValue &ShVal, unsigned &ShAmt) { 4742 ShAmt = NumZeros; 4750 bool &isLeft, SDValue &ShVal, unsigned &ShAmt) { 4756 if (isVectorShiftLeft(SVOp, DAG, isLeft, ShVal, ShAmt) || 4757 isVectorShiftRight(SVOp, DAG, isLeft, ShVal, ShAmt)) 6691 unsigned ShAmt local 4683 isVectorShiftRight(ShuffleVectorSDNode *SVOp, SelectionDAG &DAG, bool &isLeft, SDValue &ShVal, unsigned &ShAmt) argument 4716 isVectorShiftLeft(ShuffleVectorSDNode *SVOp, SelectionDAG &DAG, bool &isLeft, SDValue &ShVal, unsigned &ShAmt) argument 4749 isVectorShift(ShuffleVectorSDNode *SVOp, SelectionDAG &DAG, bool &isLeft, SDValue &ShVal, unsigned &ShAmt) argument 7744 SDValue ShAmt = Op.getOperand(2); local 9608 getTargetVShiftNode(unsigned Opc, DebugLoc dl, EVT VT, SDValue SrcOp, SDValue ShAmt, SelectionDAG &DAG) argument 10663 SDValue ShAmt = DAG.getConstant(32, MVT::i32); local 10998 SDValue ShAmt = DAG.getConstant(BitsDiff, MVT::i32); local 13992 unsigned ShAmt = TrueC->getAPIntValue().logBase2(); local 14356 unsigned ShAmt = TrueC->getAPIntValue().logBase2(); local 14510 APInt ShAmt = N1C->getAPIntValue(); local [all...] |