[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)
commit344d038960c4e5f7a6898586dfe9cf9cad614a87
tree6bd41ead5d1789b6b6ff247cd2dd9473aa5f772a
parentd620781872245952ac6e25392815caa096310b6f
[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

llvm-svn: 368224
llvm/include/llvm/Transforms/IPO/Attributor.h
llvm/lib/Transforms/IPO/Attributor.cpp