]> granicus.if.org Git - llvm/commit
[Attributor] Introduce a state wrapper class
authorJohannes Doerfert <jdoerfert@anl.gov>
Wed, 7 Aug 2019 22:34:26 +0000 (22:34 +0000)
committerJohannes Doerfert <jdoerfert@anl.gov>
Wed, 7 Aug 2019 22:34:26 +0000 (22:34 +0000)
commit4078102f4b035311cf0c0ef8e9044ea0acc0743e
tree8e5788adf2c8d14b34b5a6d4ba3b7fe75a021215
parente892d1f282c0f7458353c4b3e22b7e58e873e9f0
[Attributor] Introduce a state wrapper class

Summary:
The wrapper reduces boilerplate code and also provide a nice way to
determine the state type used by an abstract attributes statically via
AAType::StateType.

This was already discussed as part of the review of D65711.

Reviewers: sstefan1, uenoku

Subscribers: hiraditya, bollu, llvm-commits

Tags: #llvm

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

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