[LLVMdev] Let expressions at file scope combined with defm

Sky Flyer skylake007 at googlemail.com
Mon Jul 27 07:45:45 PDT 2015


Hi all,

I try to run such a line in TableGen but seems it's not working.
What is the problem with this code?

multiclass cond {
    let Inst{1-0}=0b11 in defm fxy: ConditionalALU;
    ....
}

I receive this error:

test.td:162:11: error: expected '=' in let expression
  let Inst{1-0}=0b11 in defm fxy: ConditionalALU;
            ^
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150727/d5b1b269/attachment.html>


More information about the llvm-dev mailing list