[llvm] [CodeGen] Declare command line options in TableGen (PR #228729)

Alexis Engelke via llvm-commits llvm-commits at lists.llvm.org
Sat Oct 3 22:40:09 PDT 2026


================
@@ -498,44 +307,44 @@ void TargetPassConfig::setStartStopPasses() {
   Started = (StartAfter == nullptr) && (StartBefore == nullptr);
 }
 
+static cl::boolOrDefault toBoolOrDefault(std::optional<bool> B) {
----------------
aengelke wrote:

Side remark (I missed this earlier?): std::optional<bool> is technically accurate, but easy to misuse and 2B large. I think the option should eventually store a bool-or-default enum.

https://github.com/llvm/llvm-project/pull/228729


More information about the llvm-commits mailing list