llvm.org GIT mirror llvm / 0ea3ce9
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 Matt Arsenault 5 years ago
1 changed file(s) with 11 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
3131 "null" "undef" "to" "except" "not" "target" "endian" "little" "big"
3232 "pointersize" "volatile" "fastcc" "coldcc" "cc") 'words) . font-lock-keyword-face)
3333 ;; Arithmetic and Logical Operators
34 `(,(regexp-opt '("add" "sub" "mul" "div" "rem" "and" "or" "xor"
34 `(,(regexp-opt '("add" "sub" "mul" "sdiv" "udiv" "urem" "srem" "and" "or" "xor"
3535 "setne" "seteq" "setlt" "setgt" "setle" "setge") 'words) . font-lock-keyword-face)
3636 ;; Floating-point operators
3737 `(,(regexp-opt '("fadd" "fsub" "fmul" "fdiv" "frem") 'words) . font-lock-keyword-face)
3838 ;; Special instructions
39 `(,(regexp-opt '("phi" "tail" "call" "cast" "select" "to" "shl" "shr" "fcmp" "icmp" "vaarg" "vanext") 'words) . font-lock-keyword-face)
39 `(,(regexp-opt '("phi" "tail" "call" "select" "to" "shl" "lshr" "ashr" "fcmp" "icmp" "va_arg" "landingpad") 'words) . font-lock-keyword-face)
4040 ;; Control instructions
41 `(,(regexp-opt '("ret" "br" "switch" "invoke" "unwind" "unreachable") 'words) . font-lock-keyword-face)
41 `(,(regexp-opt '("ret" "br" "switch" "invoke" "resume" "unwind" "unreachable" "indirectbr") 'words) . font-lock-keyword-face)
4242 ;; Memory operators
43 `(,(regexp-opt '("malloc" "alloca" "free" "load" "store" "getelementptr") 'words) . font-lock-keyword-face)
43 `(,(regexp-opt '("malloc" "alloca" "free" "load" "store" "getelementptr" "fence" "cmpxchg" "atomicrmw") 'words) . font-lock-keyword-face)
44 ;; Casts
45 `(,(regexp-opt '("bitcast" "inttoptr" "ptrtoint" "trunc" "zext" "sext" "fptrunc" "fpext" "fptoui" "fptosi" "uitofp" "sitofp") 'words) . font-lock-keyword-face)
46 ;; Vector ops
47 `(,(regexp-opt '("extractelement" "insertelement" "shufflevector") 'words) . font-lock-keyword-face)
48 ;; Aggregate ops
49 `(,(regexp-opt '("extractvalue" "insertvalue") 'words) . font-lock-keyword-face)
50
4451 )
4552 "Syntax highlighting for LLVM"
4653 )