/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineShifts.cpp | 90 Instruction::BinaryOps ShiftOpcode = Sh0->getOpcode(); in reassociateShiftAmtsOfTwoSameDirectionShifts() local 136 BinaryOperator *NewShift = BinaryOperator::Create(ShiftOpcode, X, NewShAmt); in reassociateShiftAmtsOfTwoSameDirectionShifts() 142 if (ShiftOpcode == Instruction::BinaryOps::Shl) { in reassociateShiftAmtsOfTwoSameDirectionShifts() 334 Instruction::BinaryOps ShiftOpcode = I.getOpcode(); in foldShiftOfShiftedLogic() local 344 cast<BinaryOperator>(V)->getOpcode() == ShiftOpcode && in foldShiftOfShiftedLogic() 358 Value *NewShift1 = Builder.CreateBinOp(ShiftOpcode, X, ShiftSumC); in foldShiftOfShiftedLogic() 359 Value *NewShift2 = Builder.CreateBinOp(ShiftOpcode, Y, I.getOperand(1)); in foldShiftOfShiftedLogic()
|
D | InstCombineCompares.cpp | 1644 unsigned ShiftOpcode = Shift->getOpcode(); in foldICmpAndShift() local 1645 bool IsShl = ShiftOpcode == Instruction::Shl; in foldICmpAndShift() 1649 if (ShiftOpcode == Instruction::Shl) { in foldICmpAndShift() 1657 bool IsAshr = ShiftOpcode == Instruction::AShr; in foldICmpAndShift()
|
/external/llvm-project/llvm/lib/Transforms/InstCombine/ |
D | InstCombineShifts.cpp | 91 Instruction::BinaryOps ShiftOpcode = Sh0->getOpcode(); in reassociateShiftAmtsOfTwoSameDirectionShifts() local 137 BinaryOperator *NewShift = BinaryOperator::Create(ShiftOpcode, X, NewShAmt); in reassociateShiftAmtsOfTwoSameDirectionShifts() 143 if (ShiftOpcode == Instruction::BinaryOps::Shl) { in reassociateShiftAmtsOfTwoSameDirectionShifts() 335 Instruction::BinaryOps ShiftOpcode = I.getOpcode(); in foldShiftOfShiftedLogic() local 345 return match(V, m_BinOp(BO)) && BO->getOpcode() == ShiftOpcode && in foldShiftOfShiftedLogic() 361 Value *NewShift1 = Builder.CreateBinOp(ShiftOpcode, X, ShiftSumC); in foldShiftOfShiftedLogic() 362 Value *NewShift2 = Builder.CreateBinOp(ShiftOpcode, Y, I.getOperand(1)); in foldShiftOfShiftedLogic()
|
D | InstCombineCompares.cpp | 1665 unsigned ShiftOpcode = Shift->getOpcode(); in foldICmpAndShift() local 1666 bool IsShl = ShiftOpcode == Instruction::Shl; in foldICmpAndShift() 1671 if (ShiftOpcode == Instruction::Shl) { in foldICmpAndShift() 1682 } else if (ShiftOpcode == Instruction::LShr) { in foldICmpAndShift() 1695 assert(ShiftOpcode == Instruction::AShr && "Unknown shift opcode"); in foldICmpAndShift()
|
/external/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
D | CombinerHelper.cpp | 1632 unsigned ShiftOpcode = MI.getOpcode(); in matchShiftOfShiftedLogic() local 1633 assert((ShiftOpcode == TargetOpcode::G_SHL || in matchShiftOfShiftedLogic() 1634 ShiftOpcode == TargetOpcode::G_ASHR || in matchShiftOfShiftedLogic() 1635 ShiftOpcode == TargetOpcode::G_LSHR || in matchShiftOfShiftedLogic() 1636 ShiftOpcode == TargetOpcode::G_USHLSAT || in matchShiftOfShiftedLogic() 1637 ShiftOpcode == TargetOpcode::G_SSHLSAT) && in matchShiftOfShiftedLogic() 1661 if (MI->getOpcode() != ShiftOpcode || in matchShiftOfShiftedLogic()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCompares.cpp | 1694 unsigned ShiftOpcode = Shift->getOpcode(); in visitICmpInstWithInstAndIntCst() local 1695 if (ShiftOpcode == Instruction::AShr) { in visitICmpInstWithInstAndIntCst() 1699 } else if (ShiftOpcode == Instruction::Shl) { in visitICmpInstWithInstAndIntCst() 1707 } else if (ShiftOpcode == Instruction::LShr) { in visitICmpInstWithInstAndIntCst() 1728 if (ShiftOpcode == Instruction::Shl) in visitICmpInstWithInstAndIntCst() 1735 if (ConstantExpr::get(ShiftOpcode, NewCst, ShAmt) != RHS) { in visitICmpInstWithInstAndIntCst() 1746 if (ShiftOpcode == Instruction::Shl) in visitICmpInstWithInstAndIntCst()
|
/external/llvm-project/llvm/lib/Target/WebAssembly/ |
D | WebAssemblyISelLowering.cpp | 1841 unsigned ShiftOpcode = Op.getOpcode(); in unrollVectorShift() local 1851 if (ShiftOpcode == ISD::SRA) in unrollVectorShift() 1855 DAG.getNode(ShiftOpcode, DL, MVT::i32, ShiftedValue, MaskedShiftValue)); in unrollVectorShift()
|
/external/swiftshader/third_party/subzero/src/ |
D | IceAssemblerARM32.cpp | 1693 constexpr IValueT ShiftOpcode = B3 | B2 | B0; // 1101 in emitShift() local 1709 emitType01(Cond, kInstTypeDataRegShift, ShiftOpcode, SetFlags, Rn, Rd, in emitShift() 1724 emitType01(Cond, kInstTypeDataRegShift, ShiftOpcode, SetFlags, Rn, Rd, in emitShift()
|
/external/llvm/lib/Target/X86/ |
D | X86ISelLowering.cpp | 20230 unsigned ShiftOpcode = Op->getOpcode(); in LowerShift() local 20260 DAG.getNode(ShiftOpcode, dl, VT, R, DAG.getConstant(4, dl, VT)); in LowerShift() 20267 M = DAG.getNode(ShiftOpcode, dl, VT, R, DAG.getConstant(2, dl, VT)); in LowerShift() 20274 M = DAG.getNode(ShiftOpcode, dl, VT, R, DAG.getConstant(1, dl, VT)); in LowerShift() 20293 SDValue MLo = DAG.getNode(ShiftOpcode, dl, ExtVT, RLo, in LowerShift() 20295 SDValue MHi = DAG.getNode(ShiftOpcode, dl, ExtVT, RHi, in LowerShift() 20305 MLo = DAG.getNode(ShiftOpcode, dl, ExtVT, RLo, in LowerShift() 20307 MHi = DAG.getNode(ShiftOpcode, dl, ExtVT, RHi, in LowerShift() 20317 MLo = DAG.getNode(ShiftOpcode, dl, ExtVT, RLo, in LowerShift() 20319 MHi = DAG.getNode(ShiftOpcode, dl, ExtVT, RHi, in LowerShift() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/SelectionDAG/ |
D | DAGCombiner.cpp | 7239 unsigned ShiftOpcode = Shift->getOpcode(); in combineShiftOfShiftedLogic() local 7246 if (V.getOpcode() != ShiftOpcode || !V.hasOneUse()) in combineShiftOfShiftedLogic() 7284 SDValue NewShift1 = DAG.getNode(ShiftOpcode, DL, VT, X, ShiftSumC); in combineShiftOfShiftedLogic() 7285 SDValue NewShift2 = DAG.getNode(ShiftOpcode, DL, VT, Y, C1); in combineShiftOfShiftedLogic() 9594 auto ShiftOpcode = in foldExtendedSignBitTest() local 9596 return DAG.getNode(ShiftOpcode, DL, VT, NotX, ShiftAmount); in foldExtendedSignBitTest()
|
/external/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
D | DAGCombiner.cpp | 7797 unsigned ShiftOpcode = Shift->getOpcode(); in combineShiftOfShiftedLogic() local 7804 if (V.getOpcode() != ShiftOpcode || !V.hasOneUse()) in combineShiftOfShiftedLogic() 7842 SDValue NewShift1 = DAG.getNode(ShiftOpcode, DL, VT, X, ShiftSumC); in combineShiftOfShiftedLogic() 7843 SDValue NewShift2 = DAG.getNode(ShiftOpcode, DL, VT, Y, C1); in combineShiftOfShiftedLogic() 10490 auto ShiftOpcode = in foldExtendedSignBitTest() local 10492 return DAG.getNode(ShiftOpcode, DL, VT, NotX, ShiftAmount); in foldExtendedSignBitTest()
|