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