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?
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.
Thank you! Wish I'd known that before I spent ~30 mins fixing the file myself
kmeakin has marked this topic as resolved.
Last updated: Dec 23 2024 at 13:07 UTC