[all-commits] [llvm/llvm-project] 2b5845: [MIRLexer][RISCV] Eat a space after the Machine co...

Michael Maitland via All-commits all-commits at lists.llvm.org
Mon Nov 11 11:48:52 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2b58458225fb0f9cce6dabce7e4451f86c8c73a5
      https://github.com/llvm/llvm-project/commit/2b58458225fb0f9cce6dabce7e4451f86c8c73a5
  Author: Michael Maitland <michaeltmaitland at gmail.com>
  Date:   2024-11-11 (Mon, 11 Nov 2024)

  Changed paths:
    M llvm/lib/CodeGen/MIRParser/MILexer.cpp
    A llvm/test/CodeGen/MIR/skip-mir-comment-trailing-whitespace.mir

  Log Message:
  -----------
  [MIRLexer][RISCV] Eat a space after the Machine comment (#115365)

The MIRPrinter emits ` :: ` at the start of a MMO. The MIRLexer eats all
the white space after the operand and before the `::` when there is no
comment. We need to eat the space after the comment to allow MIRLexer to
parse comments on a MMO.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list