Home
last modified time | relevance | path

Searched refs:TrOp (Results 1 – 3 of 3) sorted by relevance

/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineShifts.cpp360 Instruction *TrOp = dyn_cast<Instruction>(TI->getOperand(0)); in FoldShiftByConstant() local
366 if (TrOp && I.isLogicalShift() && TrOp->isShift() && in FoldShiftByConstant()
367 isa<ConstantInt>(TrOp->getOperand(1))) { in FoldShiftByConstant()
369 Constant *ShAmt = ConstantExpr::getZExt(Op1, TrOp->getType()); in FoldShiftByConstant()
371 Value *NSh = Builder->CreateBinOp(I.getOpcode(), TrOp, ShAmt,I.getName()); in FoldShiftByConstant()
377 unsigned SrcSize = TrOp->getType()->getScalarSizeInBits(); in FoldShiftByConstant()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineShifts.cpp372 Instruction *TrOp = dyn_cast<Instruction>(TI->getOperand(0)); in FoldShiftByConstant() local
378 if (TrOp && I.isLogicalShift() && TrOp->isShift() && in FoldShiftByConstant()
379 isa<ConstantInt>(TrOp->getOperand(1))) { in FoldShiftByConstant()
381 Constant *ShAmt = ConstantExpr::getZExt(COp1, TrOp->getType()); in FoldShiftByConstant()
383 Value *NSh = Builder->CreateBinOp(I.getOpcode(), TrOp, ShAmt,I.getName()); in FoldShiftByConstant()
389 unsigned SrcSize = TrOp->getType()->getScalarSizeInBits(); in FoldShiftByConstant()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstCombineShifts.cpp380 Instruction *TrOp = dyn_cast<Instruction>(TI->getOperand(0)); in FoldShiftByConstant() local
386 if (TrOp && I.isLogicalShift() && TrOp->isShift() && in FoldShiftByConstant()
387 isa<ConstantInt>(TrOp->getOperand(1))) { in FoldShiftByConstant()
390 ConstantExpr::getZExt(cast<Constant>(Op1), TrOp->getType()); in FoldShiftByConstant()
392 Value *NSh = Builder.CreateBinOp(I.getOpcode(), TrOp, ShAmt, I.getName()); in FoldShiftByConstant()
398 unsigned SrcSize = TrOp->getType()->getScalarSizeInBits(); in FoldShiftByConstant()