[all-commits] [llvm/llvm-project] 77475f: Reland "Add sanitizer metadata attributes to clang...

Mitch Phillips via All-commits all-commits at lists.llvm.org
Mon Jun 13 12:23:45 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 77475ffd22418ca7249f5457dddba15ab7cda0cc
      https://github.com/llvm/llvm-project/commit/77475ffd22418ca7249f5457dddba15ab7cda0cc
  Author: Mitch Phillips <31459023+hctim at users.noreply.github.com>
  Date:   2022-06-13 (Mon, 13 Jun 2022)

  Changed paths:
    M clang/lib/CodeGen/CodeGenModule.cpp
    M clang/lib/CodeGen/CodeGenModule.h
    M clang/lib/CodeGen/SanitizerMetadata.cpp
    M clang/lib/CodeGen/SanitizerMetadata.h
    A clang/test/CodeGen/Inputs/sanitizer-special-case-list-globals.txt
    M clang/test/CodeGen/asan-globals.cpp
    M clang/test/CodeGen/sanitize-init-order.cpp
    A clang/test/CodeGen/sanitizer-special-case-list-globals.c

  Log Message:
  -----------
  Reland "Add sanitizer metadata attributes to clang IR gen."

RE-LAND (reverts a revert):
This reverts commit 8e1f47b596b28fbc88cf32e8f46eb2fecb145fb2.

This patch adds generation of sanitizer metadata attributes (which were
added in 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.

Reviewed By: vitalybuka, kstoimenov

Differential Revision: https://reviews.llvm.org/D126929




More information about the All-commits mailing list