Lines Matching refs:rhs
54 Expression::Type Expression::coalesceTypes(Type lhs, Type rhs) { in coalesceTypes() argument
61 if (lhs == rhs) { in coalesceTypes()
66 if (SIGNED(lhs) == SIGNED(rhs)) { in coalesceTypes()
71 if (lhs == U32 || rhs == U32) { in coalesceTypes()
134 UnaryExpression(std::string op, Expression* rhs) in UnaryExpression()
135 : mOp(op), mRhs(rhs) in UnaryExpression()
156 BinaryExpression(Expression *lhs, std::string op, Expression* rhs) in BinaryExpression()
157 : mLhs(lhs), mOp(op), mRhs(rhs) in BinaryExpression()
180 TernaryExpression(Expression *lhs, Expression *mhs, Expression* rhs) in TernaryExpression()
181 : mLhs(lhs), mMhs(mhs), mRhs(rhs) in TernaryExpression()
273 Expression *Expression::unary(std::string op, Expression *rhs) { in unary() argument
274 return new UnaryExpression(op, rhs); in unary()
277 Expression *Expression::binary(Expression *lhs, std::string op, Expression *rhs) { in binary() argument
278 return new BinaryExpression(lhs, op, rhs); in binary()
281 Expression *Expression::ternary(Expression *lhs, Expression *mhs, Expression *rhs) { in ternary() argument
282 return new TernaryExpression(lhs, mhs, rhs); in ternary()