Lines Matching refs:llvm

48 llvm::cl::list<std::string>
49 OptInputFilenames(llvm::cl::Positional, llvm::cl::OneOrMore,
50 llvm::cl::desc("<input bitcode files>"));
52 llvm::cl::opt<std::string>
53 OptOutputFilename("o", llvm::cl::desc("Specify the output filename"),
54 llvm::cl::value_desc("filename"));
56 llvm::cl::opt<std::string>
57 OptRuntimePath("rt-path", llvm::cl::desc("Specify the runtime library path"),
58 llvm::cl::value_desc("path"));
60 llvm::cl::opt<std::string>
62 llvm::cl::desc("Specify the target triple (default: "
64 llvm::cl::init(DEFAULT_TARGET_TRIPLE_STRING),
65 llvm::cl::value_desc("triple"));
67 llvm::cl::alias OptTargetTripleC("C", llvm::cl::NotHidden,
68 llvm::cl::desc("Alias for -mtriple"),
69 llvm::cl::aliasopt(OptTargetTriple));
74 llvm::cl::opt<bool>
75 OptPIC("fPIC", llvm::cl::desc("Generate fully relocatable, position independent"
78 llvm::cl::opt<char>
79 OptOptLevel("O", llvm::cl::desc("Optimization level. [-O0, -O1, -O2, or -O3] "
81 llvm::cl::Prefix, llvm::cl::ZeroOrMore, llvm::cl::init('2'));
83 llvm::cl::opt<bool>
84 OptC("c", llvm::cl::desc("Compile and assemble, but do not link."));
92 llvm::cl::opt<std::string>
93 OptImmObjectOutput("or", llvm::cl::desc("Specify the filename for output the "
96 "library"), llvm::cl::ValueRequired);
98 llvm::cl::opt<bool>
99 OptShared("shared", llvm::cl::desc("Create a shared library from input bitcode "
106 llvm::raw_ostream &os = llvm::outs(); in BCCVersionPrinter()
117 const llvm::cl::list<std::string> &pBitcodeFiles) { in PrepareRSScript()
124 llvm::errs() << "Failed to load llvm module from file `" << input_bitcode in PrepareRSScript()
131 llvm::errs() << "Failed to merge the llvm module `" << input_bitcode in PrepareRSScript()
139 llvm::errs() << "Out of memory when create script for file `" in PrepareRSScript()
157 llvm::errs() << "Out of memory when create the compiler configuration!\n"; in ConfigCompiler()
186 config->setRelocationModel(llvm::Reloc::PIC_); in ConfigCompiler()
190 config->setCodeModel(llvm::CodeModel::Small); in ConfigCompiler()
194 case '0': config->setOptimizationLevel(llvm::CodeGenOpt::None); break; in ConfigCompiler()
195 case '1': config->setOptimizationLevel(llvm::CodeGenOpt::Less); break; in ConfigCompiler()
196 case '3': config->setOptimizationLevel(llvm::CodeGenOpt::Aggressive); break; in ConfigCompiler()
199 config->setOptimizationLevel(llvm::CodeGenOpt::Default); in ConfigCompiler()
208 llvm::errs() << "Failed to configure the compiler! (detail: " in ConfigCompiler()
225 llvm::errs() << "Use " DEFAULT_OUTPUT_PATH " for output file!\n"; in DetermineOutputFilename()
231 llvm::SmallString<200> output_path(input_path); in DetermineOutputFilename()
233 std::error_code err = llvm::sys::fs::make_absolute(output_path); in DetermineOutputFilename()
235 llvm::errs() << "Failed to determine the absolute path of `" << input_path in DetermineOutputFilename()
242 llvm::sys::path::replace_extension(output_path, "o"); in DetermineOutputFilename()
246 llvm::sys::path::remove_filename(output_path); in DetermineOutputFilename()
247 llvm::sys::path::append(output_path, "a.out"); in DetermineOutputFilename()
254 llvm::cl::SetVersionPrinter(BCCVersionPrinter); in main()
255 llvm::cl::ParseCommandLineOptions(argc, argv); in main()