[AssumeBundles] Move to IR so it can be used by Analysis
authorTyker <tyker1@outlook.com>
Sun, 8 Mar 2020 11:19:29 +0000 (12:19 +0100)
committerTyker <tyker1@outlook.com>
Sun, 8 Mar 2020 11:21:50 +0000 (12:21 +0100)
commit57c964aaa76bfaa908398fbd9d8c9d6d19856859
treeeb29d77a99c808038a2b1817dcc5632e64444fda
parent84056394e97885e1d7c588992d725f188d134e63
[AssumeBundles] Move to IR so it can be used by Analysis

Summary:
Assume bundles need to be usable by Analysis and Transforms/Utils isn't.
so this commit moves utilities to deal with asusme bundles to IR.

Reviewers: jdoerfert

Reviewed By: jdoerfert

Subscribers: mgorny, hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D75618
llvm/include/llvm/IR/KnowledgeRetention.h [moved from llvm/include/llvm/Transforms/Utils/KnowledgeRetention.h with 100% similarity]
llvm/lib/IR/CMakeLists.txt
llvm/lib/IR/KnowledgeRetention.cpp [moved from llvm/lib/Transforms/Utils/KnowledgeRetention.cpp with 99% similarity]
llvm/lib/Passes/PassBuilder.cpp
llvm/lib/Transforms/Utils/CMakeLists.txt
llvm/test/IR/assume-builder.ll [moved from llvm/test/Transforms/Util/assume-builder.ll with 100% similarity]
llvm/unittests/IR/CMakeLists.txt
llvm/unittests/IR/KnowledgeRetentionTest.cpp [moved from llvm/unittests/Transforms/Utils/KnowledgeRetentionTest.cpp with 99% similarity]
llvm/unittests/Transforms/Utils/CMakeLists.txt