diff options
author | ReinUsesLisp <[email protected]> | 2018-11-02 23:49:41 -0300 |
---|---|---|
committer | ReinUsesLisp <[email protected]> | 2018-11-02 23:49:41 -0300 |
commit | 15a4d3c0d49388259f48d1c25b758d45845c000a (patch) | |
tree | 11d2335a3b846286b2353fc9140686d0aea2b505 /include | |
parent | c29314ad14e912de70a704bf79196827d46ecfa4 (diff) | |
download | sirit-15a4d3c0d49388259f48d1c25b758d45845c000a.tar.gz sirit-15a4d3c0d49388259f48d1c25b758d45845c000a.zip |
Add OpArithmetic
Diffstat (limited to 'include')
-rw-r--r-- | include/sirit/sirit.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/sirit/sirit.h b/include/sirit/sirit.h index 6056248..5cf61a0 100644 --- a/include/sirit/sirit.h +++ b/include/sirit/sirit.h @@ -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); |