]> git.eshelyaron.com Git - emacs.git/commitdiff
better comp-func doc
authorAndrea Corallo <akrl@sdf.org>
Sun, 22 Sep 2019 07:58:20 +0000 (09:58 +0200)
committerAndrea Corallo <akrl@sdf.org>
Wed, 1 Jan 2020 10:37:52 +0000 (11:37 +0100)
lisp/emacs-lisp/comp.el

index dd3b5200bc20d93703d24a44ebedcd0cd6da5403..b5d54289debed840b353e99524334478789a0637 100644 (file)
@@ -186,23 +186,26 @@ Is in use to help the SSA rename pass."))
   (byte-func nil
              :documentation "Byte compiled version.")
   (lap () :type list
-       :documentation "Lap assembly representation.")
+       :documentation "LAP assembly representation.")
   (args nil :type comp-args-base)
   (frame-size nil :type number)
   (blocks (make-hash-table) :type hash-table
           :documentation "Key is the basic block symbol value is a comp-block
 structure.")
   (lap-block (make-hash-table :test #'equal) :type hash-table
-             :documentation "LAP lable -> LIMPLE basic block.")
+             :documentation "LAP lable -> LIMPLE basic block name.")
   (edges () :type list
          :documentation "List of edges connecting basic blocks.")
+  (block-cnt-gen (funcall #'comp-gen-counter) :type function
+                 :documentation "Generates block numbers.")
   (edge-cnt-gen (funcall #'comp-gen-counter) :type function
-               :documentation "Generates edges numbers.")
+                :documentation "Generates edges numbers.")
   (ssa-cnt-gen (funcall #'comp-gen-counter) :type function
               :documentation "Counter to create ssa limple vars."))
 
 (defun comp-func-reset-generators (func)
   "Reset unique id generators for FUNC."
+  ;; (setf (block-cnt-gen func) (comp-gen-counter))
   (setf (comp-func-edge-cnt-gen func) (comp-gen-counter))
   (setf (comp-func-ssa-cnt-gen func) (comp-gen-counter)))