Displaying 3 results from an estimated 3 matches for "optdescs".
2009 Sep 05
2
[LLVMdev] tblgen bug in handling case , switch_on
Hi Mikhail,
What is mentioned in the reference manual is this:
// Evaluates to "cmdline1" if the option "-A" is provided on the
// command line; to "cmdline2" if "-B" is provided;
// otherwise to "cmdline3".
(case
(switch_on "A"), "cmdline1",
(switch_on "B"), "cmdline2",
2009 Sep 05
0
[LLVMdev] tblgen bug in handling case , switch_on
...h below ok?
Index: LLVMCConfigurationEmitter.cpp
===================================================================
--- LLVMCConfigurationEmitter.cpp (revision 80668)
+++ LLVMCConfigurationEmitter.cpp (working copy)
@@ -1141,6 +1141,7 @@
Callback, EmitElseIf, OptDescs, O);
}
else {
+ EmitElseIf = true;
Callback(arg, (std::string(IndentLevel) + Indent1).c_str(), O);
}
O << IndentLevel << "}\n";
- Sanjiv
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://...
2009 Sep 05
3
[LLVMdev] tblgen bug in handling case , switch_on
...MCConfigurationEmitter.cpp
> ===================================================================
> --- LLVMCConfigurationEmitter.cpp (revision 80668)
> +++ LLVMCConfigurationEmitter.cpp (working copy)
> @@ -1141,6 +1141,7 @@
> Callback, EmitElseIf, OptDescs, O);
> }
> else {
> + EmitElseIf = true;
> Callback(arg, (std::string(IndentLevel) + Indent1).c_str(), O);
> }
> O << IndentLevel << "}\n";
No, this is not OK - EmitCaseConstructHandler is supposed to be able
to generate both 'if (....