Lines Matching +full:string +full:- +full:support
1 //===- Main.cpp - Top-Level TableGen implementation -----------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
13 // high-level description of the target.
15 //===----------------------------------------------------------------------===//
22 #include "llvm/Support/CommandLine.h"
23 #include "llvm/Support/ErrorOr.h"
24 #include "llvm/Support/FileSystem.h"
25 #include "llvm/Support/MemoryBuffer.h"
26 #include "llvm/Support/SMLoc.h"
27 #include "llvm/Support/SourceMgr.h"
28 #include "llvm/Support/ToolOutputFile.h"
29 #include "llvm/Support/raw_ostream.h"
34 #include <string>
39 static cl::opt<std::string>
41 cl::init("-"));
43 static cl::opt<std::string>
49 static cl::opt<std::string>
50 InputFilename(cl::Positional, cl::desc("<input file>"), cl::init("-"));
52 static cl::list<std::string>
56 static cl::list<std::string>
61 WriteIfChanged("write-if-changed", cl::desc("Only write output if it changed"));
64 TimePhases("time-phases", cl::desc("Time phases of parser and backend"));
67 "no-warn-on-unused-template-args",
76 /// Create a dependency file for `-d` option.
79 /// It is similar to GCC's `-M*` family of options.
81 if (OutputFilename == "-") in createDependencyFile()
82 return reportError(argv0, "the option -d must be used together with -o\n"); in createDependencyFile()
131 std::string OutString; in TableGenMain()
134 TableGen::Emitter::FnT ActionFn = TableGen::Emitter::Action->getValue(); in TableGenMain()
162 if (std::move(ExistingOrErr.get())->getBuffer() == OutString) in TableGenMain()