[AssumeBundles] Enforce constraints on the operand bundle of llvm.assume
authorTyker <tyker1@outlook.com>
Wed, 11 Mar 2020 22:21:44 +0000 (23:21 +0100)
committerTyker <tyker1@outlook.com>
Wed, 11 Mar 2020 22:53:48 +0000 (23:53 +0100)
commit70c0a9675dcaeb74a114a129f3d998bd6dee926f
tree9ce572d9b41d6a6ca429c2312f2300c24b999d06
parent2b366e75d41341e7cb2e763b20c4fc8fd3bd4b3c
[AssumeBundles] Enforce constraints on the operand bundle of llvm.assume

Summary: Add verification that operand bundles on an llvm.assume are well formed to the verify pass.

Reviewers: jdoerfert

Reviewed By: jdoerfert

Subscribers: hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D75269
llvm/include/llvm/IR/Attributes.h
llvm/lib/IR/Attributes.cpp
llvm/lib/IR/KnowledgeRetention.cpp
llvm/lib/IR/Verifier.cpp
llvm/test/IR/assume-builder.ll
llvm/test/Verifier/assume-bundles.ll [new file with mode: 0644]