[clang] [llvm] [RISC-V] Add CSR read/write builtins (PR #85091)
Nemanja Ivanovic via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 14 02:08:02 PDT 2024
================
@@ -20,6 +20,12 @@ class RISCVBuiltin<string prototype, string features = ""> : TargetBuiltin {
let Attributes = [NoThrow, Const] in {
//===----------------------------------------------------------------------===//
+// Zicsr extension.
+//===----------------------------------------------------------------------===//
+def csrr : RISCVBuiltin<"unsigned long int(unsigned long int)", "zicsr">;
----------------
nemanjai wrote:
I can certainly change it to `size_t`. And I'll move them out of the section marked with `Const`.
https://github.com/llvm/llvm-project/pull/85091
More information about the llvm-commits
mailing list