[PATCH] D96036: [clang][codegen] Remember string used to create llvm::Regex for optimization remarks
Jan Svoboda via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 4 07:13:20 PST 2021
jansvoboda11 created this revision.
jansvoboda11 added reviewers: Bigcheese, dexonsmith.
jansvoboda11 requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Regular expression patterns passed through the command line are being used to create an instances of `llvm::Regex` and thrown away.
There is no API to serialize `Regex` back to the original pattern. This means we have no way to reconstruct the original pattern from command line. This is necessary for serializing `CompilerInvocation`.
This patch stores the original pattern string in `CodeGenOptions` alongside the `llvm::Regex` instance.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D96036
Files:
clang/include/clang/Basic/CodeGenOptions.h
clang/lib/CodeGen/CodeGenAction.cpp
clang/lib/Frontend/CompilerInvocation.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D96036.321423.patch
Type: text/x-patch
Size: 7081 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210204/51b0a1c3/attachment.bin>
More information about the cfe-commits
mailing list