[all-commits] [llvm/llvm-project] cd0174: [Clang][LoongArch] Support inline asm constraint 'J'

Lu Weining via All-commits all-commits at lists.llvm.org
Sun Oct 30 18:15:19 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cd0174aacb734904205ed7827fb923acda08f79a
      https://github.com/llvm/llvm-project/commit/cd0174aacb734904205ed7827fb923acda08f79a
  Author: Weining Lu <luweining at loongson.cn>
  Date:   2022-10-31 (Mon, 31 Oct 2022)

  Changed paths:
    M clang/lib/Basic/Targets/LoongArch.cpp
    M clang/test/CodeGen/LoongArch/inline-asm-constraints.c
    M llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
    M llvm/test/CodeGen/LoongArch/inline-asm-constraint-error.ll
    M llvm/test/CodeGen/LoongArch/inline-asm-constraint.ll

  Log Message:
  -----------
  [Clang][LoongArch] Support inline asm constraint 'J'

'J' is defined in GCC [1] but not documented [2] while Linux [3] has
already used it in LoongArch port.

[1]: https://github.com/gcc-mirror/gcc/blob/master/gcc/config/loongarch/constraints.md#L61
[2]: https://gcc.gnu.org/onlinedocs/gccint/Machine-Constraints.html
[3]: https://github.com/torvalds/linux/blob/master/arch/loongarch/include/asm/cmpxchg.h#L19

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




More information about the All-commits mailing list