[PATCH] Support invoking the patchpoint intrinsic

Kevin Modzelewski kmod at dropbox.com
Wed Oct 1 19:14:00 PDT 2014


Hi atrick, ributzka,

This is a barebones patch that enables the invoking of llvm.experimental.patchpoint intrinsics; it's missing some things (tests, should refactor the existing code instead of duplicating more of it), but I wanted to send out the current version for early feedback.

I tried to just take the invoke-handling sections from the normal Invoke path and add them to patchpoints, and it seems to work (LLVM and Pyston tests pass), but it's hard for me to verify that I'm doing this correctly and that it's not missing anything.

There might also need to be some discussion about whether it makes sense to invoke patchpoints in the first place -- I think it definitely makes sense to attach stackmap information to an invoke, but patching and statically emitting EH information might not be coherent concepts, though on my system it ends up working out fine.

http://reviews.llvm.org/D5572

Files:
  include/llvm/IR/Intrinsics.td
  lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
  lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h
  lib/IR/Verifier.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5572.14308.patch
Type: text/x-patch
Size: 13559 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141002/181a64c4/attachment.bin>


More information about the llvm-commits mailing list