[IRBuilder] Add a CreateGCStatepointInvoke.
authorSanjoy Das <sanjoy@playingwithpointers.com>
Wed, 6 May 2015 23:53:09 +0000 (23:53 +0000)
committerSanjoy Das <sanjoy@playingwithpointers.com>
Wed, 6 May 2015 23:53:09 +0000 (23:53 +0000)
commit8a86e2564d5e6225f4dc5d1c4be96937022fdd7a
treec1306c5845386c39b7dbaae704a0f5beac047a68
parent4f28a76c2564066e23a7925738b11c3e933c5902
[IRBuilder] Add a CreateGCStatepointInvoke.

Renames the original CreateGCStatepoint to CreateGCStatepointCall, and
moves invoke creating functionality from PlaceSafepoints.cpp to
IRBuilder.cpp.

This changes the labels generated for PlaceSafepoints/invokes.ll so use
a regex there to make the basic block labels more resilient.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236672 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/IRBuilder.h
lib/IR/IRBuilder.cpp
lib/Transforms/Scalar/PlaceSafepoints.cpp
test/Transforms/PlaceSafepoints/invokes.ll