[all-commits] [llvm/llvm-project] 97ad39: MCParser: Move LCurly/RCurly testing into tokenIsS...

Fangrui Song via All-commits all-commits at lists.llvm.org
Thu May 15 18:28:46 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 97ad399c48d33247a66cca928a77a612f1e7bb4d
      https://github.com/llvm/llvm-project/commit/97ad399c48d33247a66cca928a77a612f1e7bb4d
  Author: Fangrui Song <i at maskray.me>
  Date:   2025-05-15 (Thu, 15 May 2025)

  Changed paths:
    M llvm/lib/MC/MCParser/AsmParser.cpp
    M llvm/lib/Target/Hexagon/AsmParser/HexagonAsmParser.cpp
    M llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp
    A llvm/test/MC/AsmParser/token.s

  Log Message:
  -----------
  MCParser: Move LCurly/RCurly testing into tokenIsStartOfStatement

Commit 8a0453e23abf27433b7539b2da2060d2df9fb39c (2015) added LCurly and
RCurly cases for Hexagon instruction bundles. While gas x86 also adopted
`{` in 2017 for pseudo prefixes (see `tc_symbol_chars`), `{` remains
uncommon among targets. Move `{` and `}` parsing into the newly
introduced `tokenIsStartOfStatement` hook (#137997).

Pull Request: https://github.com/llvm/llvm-project/pull/140101



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