recognize +! and set-vector (#706)

"
This commit is contained in:
water111
2021-07-17 15:00:10 -04:00
committed by GitHub
parent 1e90da8e7c
commit 4989470828
48 changed files with 557 additions and 1038 deletions
@@ -100,12 +100,9 @@
(set! (-> arg0 begin-level) 0)
0
(.mfc0 a1-0 Count)
(set!
(+!
(-> arg0 prev-time-elapsed)
(+
(-> arg0 prev-time-elapsed)
(the-as uint (- a1-0 (the-as int (-> arg0 start-time))))
)
(the-as uint (- a1-0 (the-as int (-> arg0 start-time))))
)
)
(the-as uint 0)
@@ -120,7 +117,7 @@
(.mfc0 v1-3 Count)
(set! (-> arg0 start-time) (the-as uint v1-3))
)
(set! (-> arg0 begin-level) (+ (-> arg0 begin-level) 1))
(+! (-> arg0 begin-level) 1)
0
)
@@ -129,16 +126,13 @@
;; WARN: Unsupported inline assembly instruction kind - [mfc0 a1, Count]
(defun stopwatch-end ((arg0 stopwatch))
(local-vars (a1-0 int))
(set! (-> arg0 begin-level) (+ (-> arg0 begin-level) -1))
(+! (-> arg0 begin-level) -1)
(when (zero? (-> arg0 begin-level))
0
(.mfc0 a1-0 Count)
(set!
(+!
(-> arg0 prev-time-elapsed)
(+
(-> arg0 prev-time-elapsed)
(the-as uint (- a1-0 (the-as int (-> arg0 start-time))))
)
(the-as uint (- a1-0 (the-as int (-> arg0 start-time))))
)
)
(the-as uint 0)