[LLVMdev] insertAfter method Patch

Thomas B. Jablin tjablin at CS.Princeton.EDU
Wed Jan 7 17:29:16 PST 2009


Hi,
I have added an insertAfter method to the ilist and Instruction classes. The methods are implemented as efficiently as the currently existing insert and insertBefore methods. The insertAfter method was created to mirror a similar method in another compiler in order to ease an ongoing port. The patch, which is very small is included as AddInsertBefore.patch. Additionally, I wrote a small test pass which demonstrates the correctness of insertAfter and have attached it as ScratchPass.cpp. Thanks.
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: AddInsertAfter.patch
Type: text/x-diff
Size: 1874 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090107/40cad26d/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ScratchPass.cpp
Type: text/x-c++src
Size: 1552 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090107/40cad26d/attachment.cpp>


More information about the llvm-dev mailing list