[all-commits] [llvm/llvm-project] 8b1a6c: [NFC][SanitizerCoverage] Simplify alignment calcul...

Pratyai Mazumder via All-commits all-commits at lists.llvm.org
Wed Apr 8 22:44:01 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 8b1a6c0a57640bc19028eecb34e8a2e9dcaa2caf
      https://github.com/llvm/llvm-project/commit/8b1a6c0a57640bc19028eecb34e8a2e9dcaa2caf
  Author: Vitaly Buka <vitalybuka at google.com>
  Date:   2020-04-08 (Wed, 08 Apr 2020)

  Changed paths:
    M llvm/lib/Transforms/Instrumentation/SanitizerCoverage.cpp

  Log Message:
  -----------
  [NFC][SanitizerCoverage] Simplify alignment calculation

This reverts commit e42f2a0cd8b8007c816d0e63f5000c444e29105e.


  Commit: e8d1c6529b951131fe9c2636d672ed8073919820
      https://github.com/llvm/llvm-project/commit/e8d1c6529b951131fe9c2636d672ed8073919820
  Author: Pratyai Mazumder <feynmanthecurious at gmail.com>
  Date:   2020-04-08 (Wed, 08 Apr 2020)

  Changed paths:
    M llvm/include/llvm/Transforms/Instrumentation.h
    M llvm/lib/Transforms/Instrumentation/SanitizerCoverage.cpp
    A llvm/test/Instrumentation/SanitizerCoverage/coff-pc-table-inline-bool-flag.ll
    A llvm/test/Instrumentation/SanitizerCoverage/inline-bool-flag.ll
    M llvm/test/Instrumentation/SanitizerCoverage/pc-table.ll
    A llvm/test/Instrumentation/SanitizerCoverage/trace-pc-guard-inline-bool-flag.ll

  Log Message:
  -----------
  [SanitizerCoverage] sancov/inline-bool-flag instrumentation.

Summary:
New SanitizerCoverage feature `inline-bool-flag` which inserts an
atomic store of `1` to a boolean (which is an 8bit integer in
practice) flag on every instrumented edge.

Implementation-wise it's very similar to `inline-8bit-counters`
features. So, much of wiring and test just follows the same pattern.

Reviewers: kcc, vitalybuka

Reviewed By: vitalybuka

Subscribers: llvm-commits, hiraditya, jfb, cfe-commits, #sanitizers

Tags: #clang, #sanitizers, #llvm

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


Compare: https://github.com/llvm/llvm-project/compare/2ae1a76c2729...e8d1c6529b95


More information about the All-commits mailing list