[all-commits] [llvm/llvm-project] 7c9562: MCAsmParser: Support \+

Fangrui Song via All-commits all-commits at lists.llvm.org
Thu May 16 00:01:20 PDT 2024


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

  Changed paths:
    M llvm/include/llvm/MC/MCAsmMacro.h
    M llvm/include/llvm/MC/MCContext.h
    M llvm/lib/MC/MCParser/AsmParser.cpp
    M llvm/test/MC/AsmParser/macro-at-pseudo-variable.s

  Log Message:
  -----------
  MCAsmParser: Support \+

In .macro, \+ expands to the per-macro invocation count.
https://sourceware.org/pipermail/binutils/2024-May/134009.html

\+ counts from 0 for .irp/.irpc/.rept .

Note: We currently prints \q for `.print "\q"` while gas doesn't. This
patch does not change this behavior.



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