[all-commits] [llvm/llvm-project] 6685a3: [cfe] Support target-specific escaped character in...

Min-Yih Hsu via All-commits all-commits at lists.llvm.org
Mon May 24 21:40:37 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6685a3f3e4c497a3a0fd06aa4e77cb442325d1ba
      https://github.com/llvm/llvm-project/commit/6685a3f3e4c497a3a0fd06aa4e77cb442325d1ba
  Author: Min-Yih Hsu <minyihh at uci.edu>
  Date:   2021-05-24 (Mon, 24 May 2021)

  Changed paths:
    M clang/include/clang/Basic/TargetInfo.h
    M clang/lib/AST/Stmt.cpp
    M clang/lib/Basic/Targets/M68k.cpp
    M clang/lib/Basic/Targets/M68k.h
    A clang/test/CodeGen/m68k-asm.c

  Log Message:
  -----------
  [cfe] Support target-specific escaped character in inline asm

GCC allows each target to define a set of non-letter and non-digit
escaped characters for inline assembly that will be replaced by another
string (They call this "punctuation" characters. The existing "%%" and
"%{" -- replaced by '%' and '{' at the end -- can be seen as special
cases shared by all targets).
This patch implements this feature by adding a new hook in `TargetInfo`.

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




More information about the All-commits mailing list