What is the meaning of a $ sign in tablgen? Here is an example // Pattern fragments def vextract_sext_i8 : PatFrag<(ops node:$vec, node:$idx), (MipsVExtractSExt node:$vec, node:$idx, i8)>; Taken from https://github.com/llvm-mirror/llvm/blob/fd031a51c35d1781c066a42e221a7ae28610be3f/lib/Target/Mips/MipsMSAInstrInfo.td#L118 -- Rail Shafigulin Software Engineer Esencia Technologies -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160122/f538c26b/attachment.html>
Whenever you use a variable in TableGen, you write it <type>:$<name> The name is always prefixed with a $, similar to how in IR, identifiers are always prefixed with % or @. On Sat, Jan 23, 2016 at 11:59 AM, Rail Shafigulin via llvm-dev < llvm-dev at lists.llvm.org> wrote:> What is the meaning of a $ sign in tablgen? Here is an example > > > // Pattern fragments > def vextract_sext_i8 : PatFrag<(ops node:$vec, node:$idx), > (MipsVExtractSExt node:$vec, > node:$idx, i8)>; > > Taken from > > > https://github.com/llvm-mirror/llvm/blob/fd031a51c35d1781c066a42e221a7ae28610be3f/lib/Target/Mips/MipsMSAInstrInfo.td#L118 > > -- > Rail Shafigulin > Software Engineer > Esencia Technologies > > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160125/d9f2824c/attachment.html>
On Sun, Jan 24, 2016 at 4:20 PM, Dylan McKay <dylanmckay34 at gmail.com> wrote:> Whenever you use a variable in TableGen, you write it > > <type>:$<name> > > The name is always prefixed with a $, similar to how in IR, identifiers > are always prefixed with % or @. >Thanks. -- Rail Shafigulin Software Engineer Esencia Technologies -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160125/f707ff63/attachment-0001.html>
Seemingly Similar Threads
- Instruction selection confusion at register - chooses vector register instead of scalar one
- Instruction selection confusion at register - chooses vector register instead of scalar one
- Is there any way to check the class of an ALTREP?
- Is there any way to check the class of an ALTREP?
- Assert in TargetLoweringBase.cpp