search for: compiledtestboilerpl

Displaying 1 result from an estimated 1 matches for "compiledtestboilerpl".

2020 Jun 24
7
[RFC] Compiled regression tests.
...the llvm/test directory. I am not proposing to replace FileCheck, but in a lot of cases, domain-specific verifiers can be more powerful (e.g. verify-uselistorder or `clang -verify`). #ifdef IR define void @func() { entry: ret } #else /* IR */ #include "compiledtestboilerplate.h" TEST(TestSuiteName, TestName) { unique_ptr<Module> Output = run_opt(__FILE__, "IR", "-passes=loop-vectorize"); /* Check Output */ } #endif /* IR */ That is, input IR and check code are in the same file. The run_opt command is a r...