[llvm] [Vectorize] Declare command line options in TableGen (PR #231025)
Alexis Engelke via llvm-commits
llvm-commits at lists.llvm.org
Sun Oct 11 23:57:27 PDT 2026
================
@@ -487,9 +484,9 @@ TEST_F(VPVerifierTest, testRUN_VPLAN_PASS) {
VPBB1->appendRecipe(UseI);
VPBB1->appendRecipe(DefI);
- bool OrigVerifyEachVPlan = VerifyEachVPlan;
- VerifyEachVPlan = true;
- llvm::scope_exit _([&]() { VerifyEachVPlan = OrigVerifyEachVPlan; });
+ const char *Args[] = {"VPlanVerifierTest", "-vplan-verify-each"};
+ ASSERT_TRUE(cl::ParseCommandLineOptions(std::size(Args), Args));
+ llvm::scope_exit _([] { cl::ResetAllOptionOccurrences(); });
----------------
aengelke wrote:
I suppose there is no easy way to avoid this hack?
https://github.com/llvm/llvm-project/pull/231025
More information about the llvm-commits
mailing list