Is it possible to build tools and utils like FileCheck in Release mode and rest of the project in Debug mode?
There’s cmake variable -DLLVM_OPTIMIZED_TABLEGEN=ON
to do this with TableGen. I don’t know about other tools.
Would there be interest in having separate flags for every util?
something like, LLVM_OPTIMIZED_FILECHECK
that would function similarly to the tablegen flag
I don’t know how flexible existing cmake scripts are to these changes though.
On Tue, 30 Sep 2025, 00:33 Nigel Perks via LLVM Discussion Forums, <notifications@llvm.discoursemail.com> wrote:
nigelp-xmos
September 29There’s cmake variable
-DLLVM_OPTIMIZED_TABLEGEN=ON
to do this with TableGen. I don’t know about other tools.
Visit Topic or reply to this email to respond.
To unsubscribe from these emails, click here.
What’s the motivation for doing this? If it’s to do with testing, then consider that these tools typically have their own tests, which should flag up things like assertions (that’s not to say there isn’t a case for a release build of FileCheck for when it’s not the thing under test, but there would need to be something that ensures the right FileCheck is being run depending on the context).
I posted this with performance as the concern. I don’t have actual numbers to back up what percentage of testing speed up would be achieved from building FileCheck (for example) with all the optimizations. Testing 2K line test file with llvm-lit is taking some time on my machine.