aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrea Corallo2020-07-05 20:00:46 +0100
committerAndrea Corallo2020-07-09 16:22:48 +0100
commit5688739c5bd742e5665f58cdcb2c588990c3f416 (patch)
treef6c13f471e18fca9ea284842b50a6a9dc490fad2
parent4348969536f2d2a16e794ff3ce15f855f9ec7e1e (diff)
downloademacs-5688739c5bd742e5665f58cdcb2c588990c3f416.tar.gz
emacs-5688739c5bd742e5665f58cdcb2c588990c3f416.zip
* Add `comp-call-op-p'
* lisp/emacs-lisp/comp.el (comp-call-op-p): New predicate. (comp-limple-insn-call-p): Make use of.
-rw-r--r--lisp/emacs-lisp/comp.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/comp.el b/lisp/emacs-lisp/comp.el
index 22575e415f1..46b09fe352c 100644
--- a/lisp/emacs-lisp/comp.el
+++ b/lisp/emacs-lisp/comp.el
@@ -423,9 +423,13 @@ structure.")
423 "Assignment predicate for OP." 423 "Assignment predicate for OP."
424 (when (memq op comp-limple-assignments) t)) 424 (when (memq op comp-limple-assignments) t))
425 425
426(defsubst comp-call-op-p (op)
427 "Call predicate for OP."
428 (when (memq op comp-limple-calls) t))
429
426(defsubst comp-limple-insn-call-p (insn) 430(defsubst comp-limple-insn-call-p (insn)
427 "Limple INSN call predicate." 431 "Limple INSN call predicate."
428 (when (memq (car-safe insn) comp-limple-calls) t)) 432 (comp-call-op-p (car-safe insn)))
429 433
430(defsubst comp-type-hint-p (func) 434(defsubst comp-type-hint-p (func)
431 "Type hint predicate for function name FUNC." 435 "Type hint predicate for function name FUNC."