Lines Matching refs:llvm
61 llvm::cl::list<std::string>
62 OptInputFilenames(llvm::cl::Positional, llvm::cl::OneOrMore,
63 llvm::cl::desc("<input bitcode files>"));
65 llvm::cl::list<std::string>
66 OptMergePlans("merge", llvm::cl::ZeroOrMore,
67 llvm::cl::desc("Lists of kernels to merge (as source-and-slot "
70 llvm::cl::list<std::string>
71 OptInvokes("invoke", llvm::cl::ZeroOrMore,
72 llvm::cl::desc("Invocable functions"));
74 llvm::cl::opt<std::string>
75 OptOutputFilename("o", llvm::cl::desc("Specify the output filename"),
76 llvm::cl::value_desc("filename"),
77 llvm::cl::init("bcc_output"));
79 llvm::cl::opt<std::string>
80 OptBCLibFilename("bclib", llvm::cl::desc("Specify the bclib filename"),
81 llvm::cl::value_desc("bclib"));
83 llvm::cl::opt<std::string>
84 OptBCLibRelaxedFilename("bclib_relaxed", llvm::cl::desc("Specify the bclib filename optimized for "
86 llvm::cl::init(""),
87 llvm::cl::value_desc("bclib_relaxed"));
89 llvm::cl::opt<std::string>
90 OptOutputPath("output_path", llvm::cl::desc("Specify the output path"),
91 llvm::cl::value_desc("output path"),
92 llvm::cl::init("."));
94 llvm::cl::opt<bool>
96 llvm::cl::desc("Emit an LLVM-IR version of the generated program"));
98 llvm::cl::opt<std::string>
100 llvm::cl::desc("Specify the target triple (default: "
102 llvm::cl::init(DEFAULT_TARGET_TRIPLE_STRING),
103 llvm::cl::value_desc("triple"));
105 llvm::cl::alias OptTargetTripleC("C", llvm::cl::NotHidden,
106 llvm::cl::desc("Alias for -mtriple"),
107 llvm::cl::aliasopt(OptTargetTriple));
109 llvm::cl::opt<bool>
111 llvm::cl::desc("Enable build to work with a RenderScript debug context"));
113 llvm::cl::opt<bool>
115 llvm::cl::desc("Embed information about global variables in the code"));
117 llvm::cl::opt<bool>
119 llvm::cl::desc("Skip embedding information about constant global "
122 llvm::cl::opt<std::string>
124 llvm::cl::desc("Embed a checksum of this compiler invocation for"
126 llvm::cl::value_desc("checksum"));
129 llvm::cl::opt<std::string>
130 OptVendorPlugin("plugin", llvm::cl::ZeroOrMore,
131 llvm::cl::value_desc("pluginfilename"),
132 llvm::cl::desc("Load the specified vendor plugin. Use this instead of the -load option"));
138 llvm::cl::opt<bool>
139 OptPIC("fPIC", llvm::cl::desc("Generate fully relocatable, position independent"
145 llvm::cl::opt<bool>
147 llvm::cl::desc("Embed RS Info into the object file instead of generating"
151 llvm::cl::opt<char>
152 OptOptLevel("O", llvm::cl::desc("Optimization level. [-O0, -O1, -O2, or -O3] "
154 llvm::cl::Prefix, llvm::cl::ZeroOrMore, llvm::cl::init('3'));
159 llvm::raw_ostream &os = llvm::outs(); in BCCVersionPrinter()
167 void extractSourcesAndSlots(const llvm::cl::list<std::string>& optList, in extractSourcesAndSlots()
203 llvm::errs() << "Error loading file '" << OptInputFilenames[i]<< "'\n"; in compileScriptGroup()
239 llvm::errs() << "Out of memory when create the compiler configuration!\n"; in ConfigCompiler()
244 config->setRelocationModel(llvm::Reloc::PIC_); in ConfigCompiler()
249 config->setCodeModel(llvm::CodeModel::Small); in ConfigCompiler()
253 case '0': config->setOptimizationLevel(llvm::CodeGenOpt::None); break; in ConfigCompiler()
254 case '1': config->setOptimizationLevel(llvm::CodeGenOpt::Less); break; in ConfigCompiler()
255 case '2': config->setOptimizationLevel(llvm::CodeGenOpt::Default); break; in ConfigCompiler()
258 config->setOptimizationLevel(llvm::CodeGenOpt::Aggressive); in ConfigCompiler()
279 llvm::errs() << "Failed to configure the compiler! (detail: " in ConfigCompiler()
289 llvm::llvm_shutdown_obj Y; in main()
291 llvm::cl::SetVersionPrinter(BCCVersionPrinter); in main()
292 llvm::cl::ParseCommandLineOptions(argc, argv); in main()
340 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> mb_or_error = in main()
341 llvm::MemoryBuffer::getFile(OptInputFilenames[0].c_str()); in main()
347 std::unique_ptr<llvm::MemoryBuffer> input_data = std::move(mb_or_error.get()); in main()
376 llvm::errs() << "Out of memory when creating script for file `" in main()
383 llvm::SmallString<80> output(OptOutputPath); in main()
384 llvm::sys::path::append(output, "/", OptOutputFilename); in main()
385 llvm::sys::path::replace_extension(output, ".o"); in main()