Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[OM] Add OpInterface for IntegerBinaryArithmeticOp. (#6703)
As we start adding integer binary arithmetic expressions, this will allow us to abstract over these ops in the evaluator. The interfaces defines accessors for each operand and the result, which can be trivially implemented by a shared helper in ODS. The interface also defines one method to be used in the evaluator, which is to actually evaluate the integer arithmetic operation. APSInts for each operand are passed to the interface method, and an APSInt representing the result or a failure must be returned.
- Loading branch information