[all-commits] [llvm/llvm-project] 685bbe: [Clang][LoongArch] Add intrinsic for csrrd, csrwr ...

Gong LingQin via All-commits all-commits at lists.llvm.org
Wed Dec 7 22:25:45 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 685bbe65f5c3617e79f52a5af827cee2ee0b6f45
      https://github.com/llvm/llvm-project/commit/685bbe65f5c3617e79f52a5af827cee2ee0b6f45
  Author: gonglingqin <gonglingqin at loongson.cn>
  Date:   2022-12-08 (Thu, 08 Dec 2022)

  Changed paths:
    M clang/include/clang/Basic/BuiltinsLoongArch.def
    M clang/lib/CodeGen/CGBuiltin.cpp
    M clang/lib/Headers/larchintrin.h
    M clang/lib/Sema/SemaChecking.cpp
    A clang/test/CodeGen/LoongArch/intrinsic-error-la64.c
    M clang/test/CodeGen/LoongArch/intrinsic-error.c
    M clang/test/CodeGen/LoongArch/intrinsic-la64.c
    M clang/test/CodeGen/LoongArch/intrinsic.c
    M llvm/include/llvm/IR/IntrinsicsLoongArch.td
    M llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
    M llvm/lib/Target/LoongArch/LoongArchISelLowering.h
    M llvm/lib/Target/LoongArch/LoongArchInstrInfo.td
    M llvm/test/CodeGen/LoongArch/intrinsic-error.ll
    M llvm/test/CodeGen/LoongArch/intrinsic-la32-error.ll
    A llvm/test/CodeGen/LoongArch/intrinsic-la64-error.ll
    M llvm/test/CodeGen/LoongArch/intrinsic-la64.ll
    M llvm/test/CodeGen/LoongArch/intrinsic.ll

  Log Message:
  -----------
  [Clang][LoongArch] Add intrinsic for csrrd, csrwr and csrxchg

These intrinsics are required by Linux [1].

[1]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/loongarch/include/asm/loongarch.h?h=v6.0&id=4fe89d07dcc2804c8b562f6c7896a45643d34b2f#n232

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




More information about the All-commits mailing list