Lines Matching +defs:buffer +defs:file +defs:name
108 "irdl-file",
109 cl::desc("IRDL file to register before processing the input"),
154 "split-input-file",
161 cl::desc("Split the input file into chunks using the given or "
318 // Set up the input file.
320 std::unique_ptr<MemoryBuffer> file = openInputFile(irdlFile, &errorMessage);
321 if (!file) {
326 // Give the buffer to the source manager.
329 sourceMgr.AddNewSourceBuffer(std::move(file), SMLoc());
333 // Parse the input file.
362 std::string buffer;
363 llvm::raw_string_ostream ostream(buffer);
377 roundtripModule = parseSourceString<Operation *>(buffer, parseConfig);
417 /// Perform the actions on the input file indicated by the command line flags
420 /// This typically parses the main source file, runs zero or more optimization
431 // Disable multi-threading when parsing the input file. This removes the
447 // Parse the input file and reset the context threading state.
506 /// Parses the memory buffer. If successfully, run a series of passes against
513 // Tell sourceMgr about this buffer, which is what the parser will pick up.
517 // Create a context just for the current buffer. Disable threading on creation
527 // Parse the input file.
562 cl::Positional, cl::desc("<input file>"), cl::init("-"));
580 [&](auto name) { os << name; });
600 std::unique_ptr<llvm::MemoryBuffer> buffer,
609 // The split-input-file mode is a very specific mode that slices the file
628 return splitAndProcessBuffer(std::move(buffer), chunkFn, outputStream,
656 // Set up the input file.
658 auto file = openInputFile(inputFilename, &errorMessage);
659 if (!file) {
669 if (failed(MlirOptMain(output->os(), std::move(file), registry, config)))
672 // Keep the output file if the invocation of MlirOptMain was successful.