[PATCH] D139288: [Clang][LoongArch] Add intrinsic for csrrd, csrwr and csrxchg

Lu Weining via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Dec 4 20:33:19 PST 2022


SixWeining added inline comments.


================
Comment at: clang/lib/Headers/larchintrin.h:67-96
 #define __break(/*ui15*/ _1) __builtin_loongarch_break((_1))
 
 #define __dbar(/*ui15*/ _1) __builtin_loongarch_dbar((_1))
 
 #define __ibar(/*ui15*/ _1) __builtin_loongarch_ibar((_1))
 
 #define __syscall(/*ui15*/ _1) __builtin_loongarch_syscall((_1))
----------------
It's better to add testcases for all these macros.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D139288/new/

https://reviews.llvm.org/D139288



More information about the cfe-commits mailing list