OSDN Git Service

[WIP] Build assume from call
authorTyker <tyker1@outlook.com>
Sun, 2 Feb 2020 13:46:59 +0000 (14:46 +0100)
committerTyker <tyker1@outlook.com>
Sun, 2 Feb 2020 13:50:31 +0000 (14:50 +0100)
commit2ff5602cb52969d3273062f36340fe95ac4e82da
tree5ac8b9c044032f9cf3b0374f696e80e6f3047d56
parent4dba14cf37abda16ab33cb748a5c762dae2e95e9
[WIP] Build assume from call

Summary:
this is part of the implementation of http://lists.llvm.org/pipermail/llvm-dev/2019-December/137632.html

this patch gives the basis of building an assume to preserve all information from an instruction and add support for building an assume that preserve the information from a call.

Reviewers: jdoerfert

Reviewed By: jdoerfert

Subscribers: mgrang, fhahn, mgorny, hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D72475
llvm/include/llvm/IR/Attributes.h
llvm/include/llvm/Transforms/Utils/KnowledgeRetention.h [new file with mode: 0644]
llvm/lib/IR/Attributes.cpp
llvm/lib/IR/Core.cpp
llvm/lib/Passes/PassBuilder.cpp
llvm/lib/Passes/PassRegistry.def
llvm/lib/Transforms/Utils/CMakeLists.txt
llvm/lib/Transforms/Utils/KnowledgeRetention.cpp [new file with mode: 0644]
llvm/test/Transforms/Util/assume-builder.ll [new file with mode: 0644]