Different sources of valid options for GlobalParser?
Hello,
Julia fails to accept certain options that were accepted by opt from Julia’s LLVM build. I see the same function, CommandLineParser::ParseCommandLineOptions in llvm/lib/Support/CommandLine.cpp, is used to parse arguments by calling it through the GlobalParser object by both Julia and opt.
(I’ve enabled and added few debug statements)
$ JULIA_LLVM_ARGS="-polly-scops" ./julia
/home/sanjay/Software/polly_julia/llvm_src/lib/Support/CommandLine.cpp:1042:ParseCommandLineOptions
Program: Options: -enable-tail-merge=0
Args: -enable-tail-merge=0
/home/sanjay/Software/polly_julia/llvm_src/lib/Support/CommandLine.cpp:996:ParseEnvironmentOptions
Julia:JULIA_LLVM_ARGS:
/home/sanjay/Software/polly_julia/llvm_src/lib/Support/CommandLine.cpp:1042:ParseCommandLineOptions
Program:Julia Options: -polly-scops
Julia: (->)Unknown command line argument '-polly-scops'(<-). Try: 'Julia -help'
Julia: Did you mean '-polly-show'?
Args: Julia -polly-scops
$ ../llvm_build/bin/opt -polly-scops
/home/sanjay/Software/polly_julia/llvm_src/lib/Support/CommandLine.cpp:1042:ParseCommandLineOptions
Program:../llvm_build/bin/opt Options: -polly-scops
Args: ../llvm_build/bin/opt -polly-scops
^C
$
Is GlobalParser populated differently when invoked through Julia compared to when it’s invoked by opt ?
Thank You,
Sanjay Srivallabh