[Attributor] Introduce the IRAttribute helper struct
authorJohannes Doerfert <jdoerfert@anl.gov>
Mon, 5 Aug 2019 23:35:12 +0000 (23:35 +0000)
committerJohannes Doerfert <jdoerfert@anl.gov>
Mon, 5 Aug 2019 23:35:12 +0000 (23:35 +0000)
commiteccdf085774c96049a8dc7280a962442f1b569c7
treef1e6edf1158f36027b93d7b18de6375b03429d57
parentfb69f7688a7eac0a9dd2535487093b477db0126b
[Attributor] Introduce the IRAttribute helper struct

Summary:
Certain properties, e.g., an AttrKind, are not shared among all abstract
attributes. This patch extracts the functionality into a helper struct.

Reviewers: uenoku, sstefan1

Subscribers: hiraditya, bollu, llvm-commits

Tags: #llvm

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

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