[PATCH] D126929: Add sanitizer metadata attributes to clang IR gen.
Mitch Phillips via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 2 15:34:50 PDT 2022
hctim created this revision.
hctim added reviewers: vitalybuka, kstoimenov.
Herald added a project: All.
hctim requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
This patch adds generation of sanitizer metadata attributes (which were
added in D126100 <https://reviews.llvm.org/D126100>) to the clang frontend.
We still currently generate the `llvm.asan.globals` that's consumed by
the IR pass, but the plan is to eventually migrate off of that onto
purely debuginfo and these IR attributes.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D126929
Files:
clang/lib/CodeGen/CGDecl.cpp
clang/lib/CodeGen/CodeGenModule.cpp
clang/lib/CodeGen/SanitizerMetadata.cpp
clang/lib/CodeGen/SanitizerMetadata.h
clang/test/CodeGen/asan-globals.cpp
clang/test/CodeGen/sanitize-init-order.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D126929.433908.patch
Type: text/x-patch
Size: 13093 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220602/6626a53c/attachment.bin>
More information about the cfe-commits
mailing list