https://github.com/svkeerthy updated https://github.com/llvm/llvm-project/pull/149213
>From 32275ce1e046510a779a9f6a1bd2cd64a242c1b2 Mon Sep 17 00:00:00 2001 From: svkeerthy <venkatakeer...@google.com> Date: Wed, 16 Jul 2025 22:01:47 +0000 Subject: [PATCH] support-stdin-input-llvm-ir2vec --- llvm/tools/llvm-ir2vec/llvm-ir2vec.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/llvm/tools/llvm-ir2vec/llvm-ir2vec.cpp b/llvm/tools/llvm-ir2vec/llvm-ir2vec.cpp index 4e88282e85c14..e1e5fad13f413 100644 --- a/llvm/tools/llvm-ir2vec/llvm-ir2vec.cpp +++ b/llvm/tools/llvm-ir2vec/llvm-ir2vec.cpp @@ -48,10 +48,10 @@ namespace ir2vec { static cl::OptionCategory IR2VecToolCategory("IR2Vec Tool Options"); -static cl::opt<std::string> InputFilename(cl::Positional, - cl::desc("<input bitcode file>"), - cl::Required, - cl::cat(IR2VecToolCategory)); +static cl::opt<std::string> + InputFilename(cl::Positional, + cl::desc("<input bitcode file or '-' for stdin>"), + cl::init("-"), cl::cat(IR2VecToolCategory)); static cl::opt<std::string> OutputFilename("o", cl::desc("Output filename"), cl::value_desc("filename"), @@ -287,7 +287,7 @@ 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); _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits