[Verifier] Verify invokes of intrinsics
authorPhilip Reames <listmail@philipreames.com>
Fri, 26 Jun 2015 21:39:44 +0000 (21:39 +0000)
committerPhilip Reames <listmail@philipreames.com>
Fri, 26 Jun 2015 21:39:44 +0000 (21:39 +0000)
commitf84a6504a617cf3d632a2bee7d7d93d9c6d78ccf
tree5abfbff26241223174ff258794ef2ec7b92796a9
parent7cb828a34db7e7115fe9a03cd5435532599dbcb9
[Verifier] Verify invokes of intrinsics

We support invoking a subset of llvm's intrinsics, but the verifier didn't account for this.  We had previously added a special case to verify invokes of statepoints.  By generalizing the code in terms of CallSite, we can verify invokes of other intrinsics as well.  Interestingly, this found one test case which was invalid.

Note: I'm deliberately leaving the naming change from CI to CS to a follow up change.  That will happen shortly, I just wanted to reduce the diff to make it clear what was happening with this one.

Differential Revision: http://reviews.llvm.org/D10118

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240836 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/CallSite.h
lib/IR/Verifier.cpp
test/CodeGen/WinEH/cppeh-prepared-catch.ll