search for: setinsertionpoint

Displaying 1 result from an estimated 1 matches for "setinsertionpoint".

2013 Sep 17
4
[LLVMdev] Is it safe to insert instructions in batches into BBs?
...;s like if llvm gets corrupted or something similar, because in the backend strange things happen, like MCRegisterInfo returning wrong register aliasing information in a random fashion (sometimes happens and sometimes doesn't) . If I create and add the instructions on the fly like this: IB.SetInsertionPoint(SomeInstruction); for () { IB.CreateXXX(); } Everything is fine. So , in the end, is it safe to add instructions like in the first method I mentioned or actually the only safe way is to use the second way? In case it should be safe, what could be the cause of the random breakages? Cheers,...