| 1 |
include "llvm/Option/OptParser.td" |
| 2 |
|
| 3 |
class F<string name, string help> : Flag<["--"], name>, HelpText<help>; |
| 4 |
multiclass Eq<string name, string metavar, string help> { |
| 5 |
def NAME #_EQ : Joined<["--"], name #"=">, |
| 6 |
HelpText<help>, MetaVarName<metavar>; |
| 7 |
def : Separate<["--"], name>, Alias<!cast<Joined>(NAME #_EQ)>; |
| 8 |
} |
| 9 |
|
| 10 |
def help : F<"help", "Display available options">; |
| 11 |
def : Flag<["-"], "h">, HelpText<"Alias for --help">, Alias<help>; |
| 12 |
def dump_tli : F<"dump-tli", "Dump TLI's list of functions and whether they are available">; |
| 13 |
defm triple : Eq<"triple", "<triple>", "Target triple">; |
| 14 |
defm libdir : Eq<"libdir", "<directory>", "Root directory for finding library files">; |
| 15 |
def separate : F<"separate", "Report on each library file separately">; |
| 16 |
def report_EQ : Joined<["--"], "report=">, HelpText<"Level of detail to report">, Values<"summary,discrepancy,full">; |