================ @@ -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">; ---------------- topperc wrote:
I don't think these are `Const` since they operate on state that is not part of their arguments/return. https://github.com/llvm/llvm-project/pull/85091 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits