Lines Matching refs:cl

46 static cl::OptionCategory MCCategory("MC Options");
48 static cl::opt<std::string> InputFilename(cl::Positional,
49 cl::desc("<input file>"),
50 cl::init("-"), cl::cat(MCCategory));
52 static cl::list<std::string>
53 DisassemblerOptions("M", cl::desc("Disassembler options"),
54 cl::cat(MCCategory));
56 static cl::opt<std::string> OutputFilename("o", cl::desc("Output filename"),
57 cl::value_desc("filename"),
58 cl::init("-"), cl::cat(MCCategory));
60 static cl::opt<std::string> SplitDwarfFile("split-dwarf-file",
61 cl::desc("DWO output filename"),
62 cl::value_desc("filename"),
63 cl::cat(MCCategory));
65 static cl::opt<bool> ShowEncoding("show-encoding",
66 cl::desc("Show instruction encodings"),
67 cl::cat(MCCategory));
69 static cl::opt<bool> RelaxELFRel(
70 "relax-relocations", cl::init(true),
71 cl::desc("Emit R_X86_64_GOTPCRELX instead of R_X86_64_GOTPCREL"),
72 cl::cat(MCCategory));
74 static cl::opt<DebugCompressionType> CompressDebugSections(
75 "compress-debug-sections", cl::ValueOptional,
76 cl::init(DebugCompressionType::None),
77 cl::desc("Choose DWARF debug sections compression:"),
78 cl::values(clEnumValN(DebugCompressionType::None, "none", "No compression"),
81 cl::cat(MCCategory));
83 static cl::opt<bool>
84 ShowInst("show-inst", cl::desc("Show internal instruction representation"),
85 cl::cat(MCCategory));
87 static cl::opt<bool>
89 cl::desc("Show instructions operands as parsed"),
90 cl::cat(MCCategory));
92 static cl::opt<unsigned>
94 cl::desc("Syntax variant to use for output printing"),
95 cl::cat(MCCategory));
97 static cl::opt<bool>
98 PrintImmHex("print-imm-hex", cl::init(false),
99 cl::desc("Prefer hex format for immediate values"),
100 cl::cat(MCCategory));
102 static cl::list<std::string>
104 cl::desc("Defines a symbol to be an integer constant"),
105 cl::cat(MCCategory));
107 static cl::opt<bool>
109 cl::desc("Preserve Comments in outputted assembly"),
110 cl::cat(MCCategory));
117 static cl::opt<OutputFileType>
118 FileType("filetype", cl::init(OFT_AssemblyFile),
119 cl::desc("Choose an output file type:"),
120 cl::values(clEnumValN(OFT_AssemblyFile, "asm",
126 cl::cat(MCCategory));
128 static cl::list<std::string> IncludeDirs("I",
129 cl::desc("Directory of include files"),
130 cl::value_desc("directory"),
131 cl::Prefix, cl::cat(MCCategory));
133 static cl::opt<std::string>
135 cl::desc("Target arch to assemble for, "
137 cl::cat(MCCategory));
139 static cl::opt<std::string>
141 cl::desc("Target triple to assemble for, "
143 cl::cat(MCCategory));
145 static cl::opt<std::string>
147 cl::desc("Target a specific cpu type (-mcpu=help for details)"),
148 cl::value_desc("cpu-name"), cl::init(""), cl::cat(MCCategory));
150 static cl::list<std::string>
151 MAttrs("mattr", cl::CommaSeparated,
152 cl::desc("Target specific attributes (-mattr=help for details)"),
153 cl::value_desc("a1,+a2,-a3,..."), cl::cat(MCCategory));
155 static cl::opt<bool> PIC("position-independent",
156 cl::desc("Position independent"), cl::init(false),
157 cl::cat(MCCategory));
159 static cl::opt<bool>
161 cl::desc("Create cfi directives that assume the code might "
163 cl::cat(MCCategory));
165 static cl::opt<bool>
167 cl::desc("Don't assume assembly file starts "
169 cl::cat(MCCategory));
171 static cl::opt<bool>
173 cl::desc("Generate dwarf debugging info for assembly "
175 cl::cat(MCCategory));
177 static cl::opt<std::string>
179 cl::desc("Specifies the debug info's compilation dir"),
180 cl::cat(MCCategory));
182 static cl::list<std::string> DebugPrefixMap(
183 "fdebug-prefix-map", cl::desc("Map file source paths in debug info"),
184 cl::value_desc("= separated key-value pairs"), cl::cat(MCCategory));
186 static cl::opt<std::string> MainFileName(
188 cl::desc("Specifies the name we should consider the input file"),
189 cl::cat(MCCategory));
191 static cl::opt<bool> SaveTempLabels("save-temp-labels",
192 cl::desc("Don't discard temporary labels"),
193 cl::cat(MCCategory));
195 static cl::opt<bool> LexMasmIntegers(
197 cl::desc("Enable binary and hex masm integers (0b110 and 0ABCh)"),
198 cl::cat(MCCategory));
200 static cl::opt<bool> LexMasmHexFloats(
202 cl::desc("Enable MASM-style hex float initializers (3F800000r)"),
203 cl::cat(MCCategory));
205 static cl::opt<bool> LexMotorolaIntegers(
207 cl::desc("Enable binary and hex Motorola integers (%110 and $ABC)"),
208 cl::cat(MCCategory));
210 static cl::opt<bool> NoExecStack("no-exec-stack",
211 cl::desc("File doesn't need an exec stack"),
212 cl::cat(MCCategory));
221 static cl::opt<ActionType> Action(
222 cl::desc("Action to perform:"), cl::init(AC_Assemble),
223 cl::values(clEnumValN(AC_AsLex, "as-lex", "Lex tokens from a .s file"),
230 cl::cat(MCCategory));
359 cl::AddExtraVersionPrinter(TargetRegistry::printRegisteredTargetsForVersion); in main()
361 cl::HideUnrelatedOptions({&MCCategory, &getColorCategory()}); in main()
362 cl::ParseCommandLineOptions(argc, argv, "llvm machine code playground\n"); in main()