]> granicus.if.org Git - llvm/commit
[Attributor][Stats] Locate statistics tracking with the attributes
authorJohannes Doerfert <jdoerfert@anl.gov>
Wed, 7 Aug 2019 22:46:11 +0000 (22:46 +0000)
committerJohannes Doerfert <jdoerfert@anl.gov>
Wed, 7 Aug 2019 22:46:11 +0000 (22:46 +0000)
commit3a35c9a698350026374c36540b08e85aef5a78da
tree3de58e0186a5ecb63e6faa4a4e791ca76e4c568d
parenta0e16438970921ac379d9b4d20699267fa61e48e
[Attributor][Stats] Locate statistics tracking with the attributes

Summary:
The ever growing switch required Attribute::AttrKind values but they
might not be available for all abstract attributes we deduce. With the
new method we track statistics at the abstract attribute level. The
provided macros simplify the usage and make the messages uniform.

Reviewers: sstefan1, uenoku

Subscribers: hiraditya, bollu, llvm-commits

Tags: #llvm

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368227 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Transforms/IPO/Attributor.h
lib/Transforms/IPO/Attributor.cpp