[LLVMdev] Backend Tablegen Instruction Definition
John Leidel (jleidel)
jleidel at micron.com
Sat Jan 10 18:35:36 PST 2015
Tim, thanks for the response. It seems to build with the pattern omitted. It ll flys well with the the MC tests, this should finish out the system calls.
Cheers
John
--John D. Leidel
> On Jan 10, 2015, at 8:21 PM, Tim Northover <t.p.northover at gmail.com> wrote:
>
> Hi John,
>
>> On 10 January 2015 at 17:33, John Leidel (jleidel) <jleidel at micron.com> wrote:
>> def RDCYCLE: InstRISCV<4, (outs GR32:$dst), (ins), ([set GC32:$dst])>{
>
> I think the problem is that pattern. For your purposes just using an
> empty pattern, "[]", ought to be fine to begin with.
>
> If and when you do decide it needs to be selected, you'll probably go
> via an intrinsic at the IR level. Something like "(set GR32:$dst,
> int_riscv_read_cycle)", though I've not actually ever tried to match
> an intrinsic with *no* arguments before, so you may need to modify
> that slightly.
>
> Cheers.
>
> Tim.
More information about the llvm-dev
mailing list