[all-commits] [llvm/llvm-project] c6a96d: [vim] Add initial syntax definition for .mir files

Cassie Jones via All-commits all-commits at lists.llvm.org
Tue Feb 16 23:41:24 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c6a96df3752065a9411e517942e2cd928e7af82e
      https://github.com/llvm/llvm-project/commit/c6a96df3752065a9411e517942e2cd928e7af82e
  Author: Cassie Jones <code at witchoflight.com>
  Date:   2021-02-17 (Wed, 17 Feb 2021)

  Changed paths:
    A llvm/utils/vim/ftdetect/mir.vim
    A llvm/utils/vim/ftplugin/mir.vim
    A llvm/utils/vim/syntax/machine-ir.vim
    A llvm/utils/vim/syntax/mir.vim

  Log Message:
  -----------
  [vim] Add initial syntax definition for .mir files

This initial definition handles the yaml container and the embedding of
the inner IRs. As a stopgap, this reuses the LLVM IR syntax highlighting
for the MIR function bodies--even though it's not technically correct,
it produces decent highlighting for a first pass.

Reviewed By: dblaikie

Differential Revision: https://reviews.llvm.org/D95552


  Commit: ed7638a34d32ee427f75c6ca1ef0a9e8661b847d
      https://github.com/llvm/llvm-project/commit/ed7638a34d32ee427f75c6ca1ef0a9e8661b847d
  Author: Cassie Jones <code at witchoflight.com>
  Date:   2021-02-17 (Wed, 17 Feb 2021)

  Changed paths:
    M llvm/utils/vim/syntax/machine-ir.vim

  Log Message:
  -----------
  [vim] Highlight most common MIR syntax not in LLVM IR

This adds highlighting for MIR instruction opcodes, physical registers,
and MIR types.

Reviewed By: dblaikie

Differential Revision: https://reviews.llvm.org/D95553


Compare: https://github.com/llvm/llvm-project/compare/0984b8de0b0d...ed7638a34d32


More information about the All-commits mailing list