• Home
  • Raw
  • Download

Lines Matching refs:llvm

53 llvm::cl::list<std::string>
54 OptInputFilenames(llvm::cl::Positional, llvm::cl::OneOrMore,
55 llvm::cl::desc("<input bitcode files>"));
57 llvm::cl::opt<std::string>
58 OptOutputFilename("o", llvm::cl::desc("Specify the output filename"),
59 llvm::cl::value_desc("filename"));
61 llvm::cl::opt<std::string>
62 OptRuntimePath("rt-path", llvm::cl::desc("Specify the runtime library path"),
63 llvm::cl::value_desc("path"));
66 llvm::cl::opt<std::string>
68 llvm::cl::desc("Specify the target triple (default: "
70 llvm::cl::init(DEFAULT_TARGET_TRIPLE_STRING),
71 llvm::cl::value_desc("triple"));
73 llvm::cl::alias OptTargetTripleC("C", llvm::cl::NotHidden,
74 llvm::cl::desc("Alias for -mtriple"),
75 llvm::cl::aliasopt(OptTargetTriple));
81 llvm::cl::opt<bool>
82 OptPIC("fPIC", llvm::cl::desc("Generate fully relocatable, position independent"
85 llvm::cl::opt<char>
86 OptOptLevel("O", llvm::cl::desc("Optimization level. [-O0, -O1, -O2, or -O3] "
88 llvm::cl::Prefix, llvm::cl::ZeroOrMore, llvm::cl::init('2'));
90 llvm::cl::opt<bool>
91 OptC("c", llvm::cl::desc("Compile and assemble, but do not link."));
99 llvm::cl::opt<std::string>
100 OptImmObjectOutput("or", llvm::cl::desc("Specify the filename for output the "
103 "library"), llvm::cl::ValueRequired);
105 llvm::cl::opt<bool>
106 OptShared("shared", llvm::cl::desc("Create a shared library from input bitcode "
113 llvm::raw_ostream &os = llvm::outs(); in BCCVersionPrinter()
130 const llvm::cl::list<std::string> &pBitcodeFiles) { in PrepareRSScript()
137 llvm::errs() << "Failed to load llvm module from file `" << input_bitcode in PrepareRSScript()
144 llvm::errs() << "Failed to merge the llvm module `" << input_bitcode in PrepareRSScript()
152 llvm::errs() << "Out of memory when create script for file `" in PrepareRSScript()
174 llvm::errs() << "Out of memory when create the compiler configuration!\n"; in ConfigCompiler()
194 config->setRelocationModel(llvm::Reloc::PIC_); in ConfigCompiler()
197 case '0': config->setOptimizationLevel(llvm::CodeGenOpt::None); break; in ConfigCompiler()
198 case '1': config->setOptimizationLevel(llvm::CodeGenOpt::Less); break; in ConfigCompiler()
199 case '3': config->setOptimizationLevel(llvm::CodeGenOpt::Aggressive); break; in ConfigCompiler()
202 config->setOptimizationLevel(llvm::CodeGenOpt::Default); in ConfigCompiler()
211 llvm::errs() << "Failed to configure the compiler! (detail: " in ConfigCompiler()
228 llvm::errs() << "Use " DEFAULT_OUTPUT_PATH " for output file!\n"; in DetermineOutputFilename()
234 llvm::SmallString<200> output_path(input_path); in DetermineOutputFilename()
236 llvm::error_code err = llvm::sys::fs::make_absolute(output_path); in DetermineOutputFilename()
237 if (err != llvm::errc::success) { in DetermineOutputFilename()
238 llvm::errs() << "Failed to determine the absolute path of `" << input_path in DetermineOutputFilename()
245 llvm::sys::path::replace_extension(output_path, "o"); in DetermineOutputFilename()
249 llvm::sys::path::remove_filename(output_path); in DetermineOutputFilename()
250 llvm::sys::path::append(output_path, "a.out"); in DetermineOutputFilename()
257 llvm::cl::SetVersionPrinter(BCCVersionPrinter); in main()
258 llvm::cl::ParseCommandLineOptions(argc, argv); in main()