[llvm-dev] TableGen trace facility

Gabriel Hjort Ã…kerlund via llvm-dev llvm-dev at lists.llvm.org
Mon Aug 3 23:46:19 PDT 2020


I think such a feature would be very helpful if the trace can be used to print 
arbitrary parts of patterns. I often find that when a pattern is rejected I 
need to strip down the *.td file, fire up gdb, set up breakpoints or step to 
where the pattern is rejected, and inspect the current tree pattern. Having 
the ability to insert trace points directly into the pattern would save me 
this effort.

Cheers,
Gabriel

-----Original Message-----
From: llvm-dev <llvm-dev-bounces at lists.llvm.org> On Behalf Of Paul C. 
Anagnostopoulos via llvm-dev
Sent: den 3 augusti 2020 18:00
To: llvm-dev at lists.llvm.org
Subject: [llvm-dev] TableGen trace facility

A question for those of you who have developed complex TableGen files: Do you 
think a trace facility would be useful during debugging? The idea is to add a 
new statement to TableGen along these lines:

  trace tag : value1, value2, ... ;

When encountered, the TableGen parser would display the tag along with the 
values of the specified value1, value2, etc. The tag is an identifier that 
makes it easier to distinguish multiple traces.

_______________________________________________
LLVM Developers mailing list
llvm-dev at lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6320 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200804/d8b7d7ed/attachment.bin>


More information about the llvm-dev mailing list