<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr">On Wed, 13 Feb 2019, 21:17 David Jones via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>I notice that no intrinsics have been defined for the CSRRW/CSRRS/CSRRC instructions.</div><div><br></div><div>It would be convenient to have intrinsics for these to allow CSR manipulation directly from IR code.</div><div><br></div><div>Interestingly, this seems to be true for PowerPC (no intrinsics for mfdcr/mtdcr) and X86 (no in/out) as well.</div><div><br></div><div>Are there plans to define standard RISCV intrinsics for this?</div><div></div></div></blockquote></div></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div></div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Its not something I'd considered but I'd be happy to review a proposal or patches if there's precedent in LLVM with other backends l a good use case justification. Why would intrinsics be preferred to just using inline asm?</div><div dir="auto"><br></div><div dir="auto">Best,</div><div dir="auto"><br></div><div dir="auto">Alex</div></div>