Add OpArithmetic

This commit is contained in:
ReinUsesLisp
2018-11-02 23:49:41 -03:00
parent c29314ad14
commit 15a4d3c0d4
3 changed files with 27 additions and 0 deletions

View File

@@ -262,6 +262,11 @@ class Module {
/// The least-significant bits will be zero filled.
Id OpShiftLeftLogical(Id result_type, Id base, Id shift);
// Arithmetic
/// Unsigned-integer division of Operand 1 divided by Operand 2.
Id OpUDiv(Id result_type, Id operand_1, Id operand_2);
private:
Id AddCode(std::unique_ptr<Op> op);