[llvm-branch-commits] [llvm] [IR2Vec][llvm-ir2vec] Add support for reading from stdin (PR #149213)

Aiden Grossman via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Jul 17 12:10:38 PDT 2025


================
@@ -287,10 +287,14 @@ int main(int argc, char **argv) {
   if (Mode == TripletMode && Level.getNumOccurrences() > 0)
     errs() << "Warning: --level option is ignored in triplet mode\n";
 
-  // Parse the input LLVM IR file
+  // Parse the input LLVM IR file or stdin
   SMDiagnostic Err;
   LLVMContext Context;
-  std::unique_ptr<Module> M = parseIRFile(InputFilename, Err, Context);
+  std::unique_ptr<Module> M;
----------------
boomanaiden154 wrote:

You can probably just revert this to what it was?

https://github.com/llvm/llvm-project/pull/149213


More information about the llvm-branch-commits mailing list