And a possible opt invocation plus a link to more extensive documentation.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/test/Other/opt-legacy-syntax-deprecation.ll | ||
---|---|---|
7 | Could perhaps add a RUN line using -codegenprepare (or some other pass hardcoded into using legacy PM) to show that we do not give a warning for those. | |
llvm/tools/opt/opt.cpp | ||
720 | While giving the list of passes here might be helpful, maybe we should just say "please use opt -passes=<pipeline>" or something instead.
But I don't know really. Maybe better to try to be helpful in the warning message anyway. One idea is to suggest using -print-pipeline-passes to get an idea for how the pipeline should look like, but that also makes the warning a bit longer. |
llvm/tools/opt/opt.cpp | ||
---|---|---|
720 |
but anyway, made the message generic so it's less confusing if it doesn't actually work (e.g. func-pass,module-pass) |
This currently depends on D136616 since it refer to the -p option. I think it looks good otherwise.
Could perhaps add a RUN line using -codegenprepare (or some other pass hardcoded into using legacy PM) to show that we do not give a warning for those.