]> granicus.if.org Git - llvm/commit
[Attributor][NFC] Move DerefState to header and use StateWrapper
authorHideto Ueno <uenoku.tokotoko@gmail.com>
Thu, 22 Aug 2019 14:18:29 +0000 (14:18 +0000)
committerHideto Ueno <uenoku.tokotoko@gmail.com>
Thu, 22 Aug 2019 14:18:29 +0000 (14:18 +0000)
commit58ad398198b0382f60eb7f3ae912ad781a20bfb5
tree1b087ccbc0a011b0e080b6409df6ec81e8ca18e9
parent1acbd600bf65898c8b2f35db5e2864726577b4d6
[Attributor][NFC] Move DerefState to header and use StateWrapper

Summary: In D65402, I want to get DerefState from AADereferenceable but it was not allowed. This patch moves DerefState definition into Attributor.h and makes AADerefenceable inherit StateWrapper.

Reviewers: jdoerfert, sstefan1

Reviewed By: jdoerfert

Subscribers: hiraditya, jfb, llvm-commits

Tags: #llvm

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

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