Lines Matching refs:InstArithmetic
701 static bool isCommutative(Ice::InstArithmetic::OpKind op) in isCommutative()
705 case Ice::InstArithmetic::Add: in isCommutative()
706 case Ice::InstArithmetic::Fadd: in isCommutative()
707 case Ice::InstArithmetic::Mul: in isCommutative()
708 case Ice::InstArithmetic::Fmul: in isCommutative()
709 case Ice::InstArithmetic::And: in isCommutative()
710 case Ice::InstArithmetic::Or: in isCommutative()
711 case Ice::InstArithmetic::Xor: in isCommutative()
718 static Value *createArithmetic(Ice::InstArithmetic::OpKind op, Value *lhs, Value *rhs) in createArithmetic()
725 …Ice::InstArithmetic *arithmetic = Ice::InstArithmetic::create(::function, op, result, swapOperands… in createArithmetic()
733 return createArithmetic(Ice::InstArithmetic::Add, lhs, rhs); in createAdd()
738 return createArithmetic(Ice::InstArithmetic::Sub, lhs, rhs); in createSub()
743 return createArithmetic(Ice::InstArithmetic::Mul, lhs, rhs); in createMul()
748 return createArithmetic(Ice::InstArithmetic::Udiv, lhs, rhs); in createUDiv()
753 return createArithmetic(Ice::InstArithmetic::Sdiv, lhs, rhs); in createSDiv()
758 return createArithmetic(Ice::InstArithmetic::Fadd, lhs, rhs); in createFAdd()
763 return createArithmetic(Ice::InstArithmetic::Fsub, lhs, rhs); in createFSub()
768 return createArithmetic(Ice::InstArithmetic::Fmul, lhs, rhs); in createFMul()
773 return createArithmetic(Ice::InstArithmetic::Fdiv, lhs, rhs); in createFDiv()
778 return createArithmetic(Ice::InstArithmetic::Urem, lhs, rhs); in createURem()
783 return createArithmetic(Ice::InstArithmetic::Srem, lhs, rhs); in createSRem()
788 return createArithmetic(Ice::InstArithmetic::Frem, lhs, rhs); in createFRem()
793 return createArithmetic(Ice::InstArithmetic::Shl, lhs, rhs); in createShl()
798 return createArithmetic(Ice::InstArithmetic::Lshr, lhs, rhs); in createLShr()
803 return createArithmetic(Ice::InstArithmetic::Ashr, lhs, rhs); in createAShr()
808 return createArithmetic(Ice::InstArithmetic::And, lhs, rhs); in createAnd()
813 return createArithmetic(Ice::InstArithmetic::Or, lhs, rhs); in createOr()
818 return createArithmetic(Ice::InstArithmetic::Xor, lhs, rhs); in createXor()