From c2728bc932238b6d37c9024d037920d4b1572e2b Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Tue, 13 Nov 2018 19:50:38 +0000 Subject: [PATCH] Add fneg instruction to syntax highlighting lists llvm-svn: 346785 --- llvm/utils/emacs/llvm-mode.el | 2 +- llvm/utils/kate/llvm.xml | 1 + llvm/utils/vim/syntax/llvm.vim | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/llvm/utils/emacs/llvm-mode.el b/llvm/utils/emacs/llvm-mode.el index 95c7f3c0c6d3..cde66d122866 100644 --- a/llvm/utils/emacs/llvm-mode.el +++ b/llvm/utils/emacs/llvm-mode.el @@ -62,7 +62,7 @@ `(,(regexp-opt '("add" "sub" "mul" "sdiv" "udiv" "urem" "srem" "and" "or" "xor" "setne" "seteq" "setlt" "setgt" "setle" "setge") 'symbols) . font-lock-keyword-face) ;; Floating-point operators - `(,(regexp-opt '("fadd" "fsub" "fmul" "fdiv" "frem") 'symbols) . font-lock-keyword-face) + `(,(regexp-opt '("fadd" "fsub" "fneg" "fmul" "fdiv" "frem") 'symbols) . font-lock-keyword-face) ;; Special instructions `(,(regexp-opt '("phi" "tail" "call" "select" "to" "shl" "lshr" "ashr" "fcmp" "icmp" "va_arg" "landingpad") 'symbols) . font-lock-keyword-face) ;; Control instructions diff --git a/llvm/utils/kate/llvm.xml b/llvm/utils/kate/llvm.xml index 5ba46ee46aca..bbb97b5222e0 100644 --- a/llvm/utils/kate/llvm.xml +++ b/llvm/utils/kate/llvm.xml @@ -120,6 +120,7 @@ fadd sub fsub + fneg mul fmul udiv diff --git a/llvm/utils/vim/syntax/llvm.vim b/llvm/utils/vim/syntax/llvm.vim index 33abbc823f7a..9345a9c0901a 100644 --- a/llvm/utils/vim/syntax/llvm.vim +++ b/llvm/utils/vim/syntax/llvm.vim @@ -26,7 +26,7 @@ syn keyword llvmStatement add addrspacecast alloca and arcp ashr atomicrmw syn keyword llvmStatement bitcast br catchpad catchswitch catchret call syn keyword llvmStatement cleanuppad cleanupret cmpxchg eq exact extractelement syn keyword llvmStatement extractvalue fadd fast fcmp fdiv fence fmul fpext -syn keyword llvmStatement fptosi fptoui fptrunc free frem fsub getelementptr +syn keyword llvmStatement fptosi fptoui fptrunc free frem fsub fneg getelementptr syn keyword llvmStatement icmp inbounds indirectbr insertelement insertvalue syn keyword llvmStatement inttoptr invoke landingpad load lshr malloc max min syn keyword llvmStatement mul nand ne ninf nnan nsw nsz nuw oeq oge ogt ole