aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorReinUsesLisp <[email protected]>2018-11-02 23:49:41 -0300
committerReinUsesLisp <[email protected]>2018-11-02 23:49:41 -0300
commit15a4d3c0d49388259f48d1c25b758d45845c000a (patch)
tree11d2335a3b846286b2353fc9140686d0aea2b505 /include
parentc29314ad14e912de70a704bf79196827d46ecfa4 (diff)
downloadsirit-15a4d3c0d49388259f48d1c25b758d45845c000a.tar.gz
sirit-15a4d3c0d49388259f48d1c25b758d45845c000a.zip
Add OpArithmetic
Diffstat (limited to 'include')
-rw-r--r--include/sirit/sirit.h5
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);