[all-commits] [llvm/llvm-project] b7badd: [Clang][LoongArch] Add inline asm support for cons...

Lu Weining via All-commits all-commits at lists.llvm.org
Thu Sep 29 00:06:37 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b7baddc7557e5c35a0f6a604a134d849265a99d4
      https://github.com/llvm/llvm-project/commit/b7baddc7557e5c35a0f6a604a134d849265a99d4
  Author: Weining Lu <luweining at loongson.cn>
  Date:   2022-09-29 (Thu, 29 Sep 2022)

  Changed paths:
    M clang/lib/Basic/Targets/LoongArch.cpp
    M clang/lib/Basic/Targets/LoongArch.h
    M clang/test/CodeGen/LoongArch/inline-asm-constraints.c
    M llvm/include/llvm/IR/InlineAsm.h
    M llvm/lib/Target/LoongArch/LoongArchAsmPrinter.cpp
    M llvm/lib/Target/LoongArch/LoongArchAsmPrinter.h
    M llvm/lib/Target/LoongArch/LoongArchISelDAGToDAG.cpp
    M llvm/lib/Target/LoongArch/LoongArchISelDAGToDAG.h
    M llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
    M llvm/lib/Target/LoongArch/LoongArchISelLowering.h
    A llvm/test/CodeGen/LoongArch/inline-asm-constraint-ZB.ll
    A llvm/test/CodeGen/LoongArch/inline-asm-constraint-ZC.ll
    A llvm/test/CodeGen/LoongArch/inline-asm-constraint-k.ll
    A llvm/test/CodeGen/LoongArch/inline-asm-constraint-m.ll

  Log Message:
  -----------
  [Clang][LoongArch] Add inline asm support for constraints k/m/ZB/ZC

k: A memory operand whose address is formed by a base register and
(optionally scaled) index register.

m: A memory operand whose address is formed by a base register and
offset that is suitable for use in instructions with the same
addressing mode as st.w and ld.w.

ZB: An address that is held in a general-purpose register. The offset
is zero.

ZC: A memory operand whose address is formed by a base register and
offset that is suitable for use in instructions with the same
addressing mode as ll.w and sc.w.

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




More information about the All-commits mailing list