Home
last modified time | relevance | path

Searched refs:ShiftOpcode (Results 1 – 10 of 10) sorted by relevance

/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineShifts.cpp90 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()
DInstCombineCompares.cpp1644 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/
DInstCombineShifts.cpp91 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()
DInstCombineCompares.cpp1665 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/
DCombinerHelper.cpp1632 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/
DInstCombineCompares.cpp1694 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/
DWebAssemblyISelLowering.cpp1841 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/
DIceAssemblerARM32.cpp1693 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/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/SelectionDAG/
DDAGCombiner.cpp7239 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/
DDAGCombiner.cpp7797 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()