[LLVMdev] insertAfter method Patch
John Criswell
criswell at cs.uiuc.edu
Thu Jan 8 07:05:30 PST 2009
Thomas B. Jablin wrote:
> 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
Small nitpick: in Instruction.cpp, the comment for insertAfter says
insertBefore and not insertAfter.
:)
-- John T.
More information about the llvm-dev
mailing list