summaryrefslogtreecommitdiffstats
path: root/utils/emacs
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2013-11-14 02:03:02 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2013-11-14 02:03:02 +0000
commit0ea3ce91afadcbf46121dd4e6b6142c96330d71b (patch)
tree9d13bfb35f4029d2284a517967f3a98e0fbda6ab /utils/emacs
parent082ac99cc86b17c7cd2a1f2a6faa2d1adc184e17 (diff)
downloadexternal_llvm-0ea3ce91afadcbf46121dd4e6b6142c96330d71b.zip
external_llvm-0ea3ce91afadcbf46121dd4e6b6142c96330d71b.tar.gz
external_llvm-0ea3ce91afadcbf46121dd4e6b6142c96330d71b.tar.bz2
Update emacs llvm mode.
It seems this hasn't been done in a while. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194650 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/emacs')
-rw-r--r--utils/emacs/llvm-mode.el15
1 files changed, 11 insertions, 4 deletions
diff --git a/utils/emacs/llvm-mode.el b/utils/emacs/llvm-mode.el
index 25d9742..3b8fbd7 100644
--- a/utils/emacs/llvm-mode.el
+++ b/utils/emacs/llvm-mode.el
@@ -32,16 +32,23 @@
"null" "undef" "to" "except" "not" "target" "endian" "little" "big"
"pointersize" "volatile" "fastcc" "coldcc" "cc") 'words) . font-lock-keyword-face)
;; Arithmetic and Logical Operators
- `(,(regexp-opt '("add" "sub" "mul" "div" "rem" "and" "or" "xor"
+ `(,(regexp-opt '("add" "sub" "mul" "sdiv" "udiv" "urem" "srem" "and" "or" "xor"
"setne" "seteq" "setlt" "setgt" "setle" "setge") 'words) . font-lock-keyword-face)
;; Floating-point operators
`(,(regexp-opt '("fadd" "fsub" "fmul" "fdiv" "frem") 'words) . font-lock-keyword-face)
;; Special instructions
- `(,(regexp-opt '("phi" "tail" "call" "cast" "select" "to" "shl" "shr" "fcmp" "icmp" "vaarg" "vanext") 'words) . font-lock-keyword-face)
+ `(,(regexp-opt '("phi" "tail" "call" "select" "to" "shl" "lshr" "ashr" "fcmp" "icmp" "va_arg" "landingpad") 'words) . font-lock-keyword-face)
;; Control instructions
- `(,(regexp-opt '("ret" "br" "switch" "invoke" "unwind" "unreachable") 'words) . font-lock-keyword-face)
+ `(,(regexp-opt '("ret" "br" "switch" "invoke" "resume" "unwind" "unreachable" "indirectbr") 'words) . font-lock-keyword-face)
;; Memory operators
- `(,(regexp-opt '("malloc" "alloca" "free" "load" "store" "getelementptr") 'words) . font-lock-keyword-face)
+ `(,(regexp-opt '("malloc" "alloca" "free" "load" "store" "getelementptr" "fence" "cmpxchg" "atomicrmw") 'words) . font-lock-keyword-face)
+ ;; Casts
+ `(,(regexp-opt '("bitcast" "inttoptr" "ptrtoint" "trunc" "zext" "sext" "fptrunc" "fpext" "fptoui" "fptosi" "uitofp" "sitofp") 'words) . font-lock-keyword-face)
+ ;; Vector ops
+ `(,(regexp-opt '("extractelement" "insertelement" "shufflevector") 'words) . font-lock-keyword-face)
+ ;; Aggregate ops
+ `(,(regexp-opt '("extractvalue" "insertvalue") 'words) . font-lock-keyword-face)
+
)
"Syntax highlighting for LLVM"
)