[llvm] r194650 - Update emacs llvm mode.
Michael Gottesman
mgottesman at apple.com
Wed Nov 13 18:16:53 PST 2013
Nice!
Michael
On Nov 13, 2013, at 6:03 PM, Matt Arsenault <Matthew.Arsenault at amd.com> wrote:
> Author: arsenm
> Date: Wed Nov 13 20:03:02 2013
> New Revision: 194650
>
> URL: http://llvm.org/viewvc/llvm-project?rev=194650&view=rev
> Log:
> Update emacs llvm mode.
>
> It seems this hasn't been done in a while.
>
> Modified:
> llvm/trunk/utils/emacs/llvm-mode.el
>
> Modified: llvm/trunk/utils/emacs/llvm-mode.el
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/emacs/llvm-mode.el?rev=194650&r1=194649&r2=194650&view=diff
> ==============================================================================
> --- llvm/trunk/utils/emacs/llvm-mode.el (original)
> +++ llvm/trunk/utils/emacs/llvm-mode.el Wed Nov 13 20:03:02 2013
> @@ -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"
> )
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list