mirror of
https://github.com/pestctrl/emacs-config.git
synced 2026-02-16 08:14:15 +00:00
Step forwards and backwards through print IR
This commit is contained in:
parent
7ff5c97122
commit
187713fc4a
1 changed files with 11 additions and 0 deletions
|
|
@ -50,6 +50,17 @@
|
|||
(add-to-list 'llvm-font-lock-keywords
|
||||
`(,llvm-ir-dump-regexp 0 'llvm-separator-face prepend))
|
||||
|
||||
(defun llvm-previous-IR-dump ()
|
||||
(interactive)
|
||||
(re-search-backward llvm-ir-dump-regexp))
|
||||
|
||||
(defun llvm-next-IR-dump ()
|
||||
(interactive)
|
||||
(re-search-forward llvm-ir-dump-regexp))
|
||||
|
||||
(define-key llvm-mode-map (kbd "C-M-a") #'llvm-previous-IR-dump)
|
||||
(define-key llvm-mode-map (kbd "C-M-e") #'llvm-next-IR-dump)
|
||||
|
||||
(-->
|
||||
"\\b[-]?[0-9]+\\b"
|
||||
(assoc it llvm-font-lock-keywords)
|
||||
|
|
|
|||
Loading…
Reference in a new issue