Lines Matching refs:llvm
60 llvm::cl::list<std::string>
61 OptInputFilenames(llvm::cl::Positional, llvm::cl::OneOrMore,
62 llvm::cl::desc("<input bitcode files>"));
64 llvm::cl::list<std::string>
65 OptMergePlans("merge", llvm::cl::ZeroOrMore,
66 llvm::cl::desc("Lists of kernels to merge (as source-and-slot "
69 llvm::cl::list<std::string>
70 OptInvokes("invoke", llvm::cl::ZeroOrMore,
71 llvm::cl::desc("Invocable functions"));
73 llvm::cl::opt<std::string>
74 OptOutputFilename("o", llvm::cl::desc("Specify the output filename"),
75 llvm::cl::value_desc("filename"),
76 llvm::cl::init("bcc_output"));
78 llvm::cl::opt<std::string>
79 OptBCLibFilename("bclib", llvm::cl::desc("Specify the bclib filename"),
80 llvm::cl::value_desc("bclib"));
82 llvm::cl::opt<std::string>
83 OptBCLibRelaxedFilename("bclib_relaxed", llvm::cl::desc("Specify the bclib filename optimized for "
85 llvm::cl::init(""),
86 llvm::cl::value_desc("bclib_relaxed"));
88 llvm::cl::opt<std::string>
89 OptOutputPath("output_path", llvm::cl::desc("Specify the output path"),
90 llvm::cl::value_desc("output path"),
91 llvm::cl::init("."));
93 llvm::cl::opt<bool>
95 llvm::cl::desc("Emit an LLVM-IR version of the generated program"));
97 llvm::cl::opt<std::string>
99 llvm::cl::desc("Specify the target triple (default: "
101 llvm::cl::init(DEFAULT_TARGET_TRIPLE_STRING),
102 llvm::cl::value_desc("triple"));
104 llvm::cl::alias OptTargetTripleC("C", llvm::cl::NotHidden,
105 llvm::cl::desc("Alias for -mtriple"),
106 llvm::cl::aliasopt(OptTargetTriple));
108 llvm::cl::opt<bool>
110 llvm::cl::desc("Enable build to work with a RenderScript debug context"));
112 llvm::cl::opt<bool>
114 llvm::cl::desc("Embed information about global variables in the code"));
116 llvm::cl::opt<bool>
118 llvm::cl::desc("Skip embedding information about constant global "
121 llvm::cl::opt<std::string>
123 llvm::cl::desc("Embed a checksum of this compiler invocation for"
125 llvm::cl::value_desc("checksum"));
130 llvm::cl::opt<bool>
131 OptPIC("fPIC", llvm::cl::desc("Generate fully relocatable, position independent"
137 llvm::cl::opt<bool>
139 llvm::cl::desc("Embed RS Info into the object file instead of generating"
143 llvm::cl::opt<char>
144 OptOptLevel("O", llvm::cl::desc("Optimization level. [-O0, -O1, -O2, or -O3] "
146 llvm::cl::Prefix, llvm::cl::ZeroOrMore, llvm::cl::init('3'));
151 llvm::raw_ostream &os = llvm::outs(); in BCCVersionPrinter()
159 void extractSourcesAndSlots(const llvm::cl::list<std::string>& optList, in extractSourcesAndSlots()
195 llvm::errs() << "Error loading file '" << OptInputFilenames[i]<< "'\n"; in compileScriptGroup()
231 llvm::errs() << "Out of memory when create the compiler configuration!\n"; in ConfigCompiler()
260 config->setRelocationModel(llvm::Reloc::PIC_); in ConfigCompiler()
265 config->setCodeModel(llvm::CodeModel::Small); in ConfigCompiler()
269 case '0': config->setOptimizationLevel(llvm::CodeGenOpt::None); break; in ConfigCompiler()
270 case '1': config->setOptimizationLevel(llvm::CodeGenOpt::Less); break; in ConfigCompiler()
271 case '2': config->setOptimizationLevel(llvm::CodeGenOpt::Default); break; in ConfigCompiler()
274 config->setOptimizationLevel(llvm::CodeGenOpt::Aggressive); in ConfigCompiler()
295 llvm::errs() << "Failed to configure the compiler! (detail: " in ConfigCompiler()
305 llvm::llvm_shutdown_obj Y; in main()
307 llvm::cl::SetVersionPrinter(BCCVersionPrinter); in main()
308 llvm::cl::ParseCommandLineOptions(argc, argv); in main()
341 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> mb_or_error = in main()
342 llvm::MemoryBuffer::getFile(OptInputFilenames[0].c_str()); in main()
348 std::unique_ptr<llvm::MemoryBuffer> input_data = std::move(mb_or_error.get()); in main()
370 llvm::errs() << "Out of memory when creating script for file `" in main()
376 llvm::SmallString<80> output(OptOutputPath); in main()
377 llvm::sys::path::append(output, "/", OptOutputFilename); in main()
378 llvm::sys::path::replace_extension(output, ".o"); in main()