via llvm-dev
2015-Aug-18 03:33 UTC
[llvm-dev] Inserting a new MachineBasicBlock between two existing MachineBasicBlocks
To insert block B after block A, MachineFunction::iterator MBBI = A; MF.insert(MBBI, B) CONFIDENTIALITY NOTICE: This e-mail (and its attachments) may contain confidential and legally privileged information or information protected from disclosure. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein is strictly prohibited. In this case, please immediately notify the sender by return e-mail, delete the message (and any accompanying documents) and destroy all printed hard copies. Thank you for your cooperation. Copyright ANDES TECHNOLOGY CORPORATION - All Rights Reserved. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150818/01ceeac4/attachment.html>
Ziqiang Patrick Huang via llvm-dev
2015-Aug-18 14:10 UTC
[llvm-dev] Inserting a new MachineBasicBlock between two existing MachineBasicBlocks
Thanks, nick. I think I found my problem, LIS->insertMBBInMaps(B) already takes care of adding the block into slotIndexes so I don't have to call LIS->getSlotIndexes()->insertMBBInMaps(B) again. Now I'm trying to figure out how to correctly update the LiveIntervals ... Can someone briefly introduce what MachineBasicBlock::SplitCriticalEdge() function does, it looks very like what I'm trying to do ... Thanks 2015-08-17 23:33 GMT-04:00 via llvm-dev <llvm-dev at lists.llvm.org>:> To insert block B after block A, > > > > MachineFunction::iterator MBBI = A; > > MF.insert(MBBI, B) > > > > > > > CONFIDENTIALITY NOTICE: > > This e-mail (and its attachments) may contain confidential and legally > privileged information or information protected from disclosure. If you are > not the intended recipient, you are hereby notified that any disclosure, > copying, distribution, or use of the information contained herein is > strictly prohibited. In this case, please immediately notify the sender by > return e-mail, delete the message (and any accompanying documents) and > destroy all printed hard copies. Thank you for your cooperation. > Copyright ANDES TECHNOLOGY CORPORATION - All Rights Reserved. > > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150818/7b69ee9e/attachment.html>