aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/FrontendAction.cpp
diff options
context:
space:
mode:
authorNuri Amari <nuri.amari99@gmail.com>2023-09-29 08:41:46 -0700
committerGitHub <noreply@github.com>2023-09-29 08:41:46 -0700
commitc718336c4cb14e27aa88054cc30ee0c2fc6505d1 (patch)
tree311c6b758321b5274b51d582f4439c37a4f113cb /clang/lib/Frontend/FrontendAction.cpp
parent847de9c332775d1841fec9fea5cb5c41592a4c8f (diff)
downloadllvm-c718336c4cb14e27aa88054cc30ee0c2fc6505d1.zip
llvm-c718336c4cb14e27aa88054cc30ee0c2fc6505d1.tar.gz
llvm-c718336c4cb14e27aa88054cc30ee0c2fc6505d1.tar.bz2
Add option to dump IR to files instead of stderr (#66412)
This patch adds a flag to LLVM such that the output generated by the `-print-(before|after|all)` family of flags is written to files in a directory rather than to stderr. This new flag is `-ir-dump-directory` and is used to specify where to write the files. No other flags are added, it just modifies the behavior of the print flags. This is a second simplified version of the changes proposed in https://github.com/llvm/llvm-project/pull/65179. This patch only adds support for the new pass manager. If this patch is accepted, similar support can be added to the legacy pass manager. Co-authored-by: Nuri Amari <nuriamari@fb.com>
Diffstat (limited to 'clang/lib/Frontend/FrontendAction.cpp')
0 files changed, 0 insertions, 0 deletions