[llvm-dev] Intrinsics for RISCV CSR instructions
Alex Bradbury via llvm-dev
llvm-dev at lists.llvm.org
Wed Feb 13 14:03:32 PST 2019
On Wed, 13 Feb 2019, 21:50 David Jones <david.jones at metrics.ca wrote:
> I would like to generate LLVM IR from my custom compiler that will lower
> to a CSR access instruction.
>
> Can I emit arbitrary inline asm from LLVM IR without using clang?
>
Yes, see https://llvm.org/docs/LangRef.html#inline-assembler-expressions
and take a look at clang's -emit-llvm -S output for examples of how it
represents inline asm in IR.
Best,
Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190213/660ecd7e/attachment.html>
More information about the llvm-dev
mailing list