[llvm-dev] About TableGen RangeList

陳韋任 via llvm-dev llvm-dev at lists.llvm.org
Sat Apr 15 08:55:30 PDT 2017


Hi All,

  One thing I believe also bothers someone else. Say we have the following
code snippet:

    bits<32> insnEncoding;
    let insnEncoding{15-12} = 0b0100;

Can we write the let expression with range list like this, with the same
meaning?

    let insnEncoding{12-15} = 0b0100;

I take a look on TGParser::ParseRangePiece (lib/TableGen/TGParser.cpp),
seems the
answer is YES. Can anyone confirm this?

Thanks.

Regards,
chenwj

-- 
Wei-Ren Chen (陳韋任)
Homepage: https://people.cs.nctu.edu.tw/~chenwj
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170415/617c5f27/attachment.html>


More information about the llvm-dev mailing list