Stream: cranelift

Topic: ✔ generate filetest comments


view this post on Zulip kmeakin (Mar 23 2023 at 22:30):

In LLVM they have a script that automatically generates filecheck comments from an input LLVM-IR file, so you don't have to type in the optimised LLVM-IR by hand. Does cranelift have something similar?

view this post on Zulip Alexa VanHattum (Mar 24 2023 at 00:59):

You can run the filetest with the environment variable CRANELIFT_TEST_BLESS=1, and it will set the test expectation comments to whatever the output is. As far as I know you do need to still set the header comments yourself.

view this post on Zulip kmeakin (Mar 24 2023 at 01:00):

Thank you! Wish I'd known that before I spent ~30 mins fixing the file myself

view this post on Zulip Notification Bot (Mar 24 2023 at 01:00):

kmeakin has marked this topic as resolved.


Last updated: Dec 23 2024 at 13:07 UTC