JinGu Kang
2013-Dec-11 12:00 UTC
[LLVMdev] Question about assertion code in 'BuildMI' function with MachineBasicBlock
Hi all, While I using BuildMI with MachineBasicBlock as parameter, I made a mistake. The mistake was that the MachineBasicBlock of instruction, which is for insertion, is different with given MachineBasicBlock as parameter. I have thought if there is assertion code to check whether MachineBasicBlocks are same between instruction's MachineBasicBlock and given MachineBasicBlock as parameter or not, it might be so useful to find wrong code. How do you feel about this? Is it useful or not? In order to do this, I have attached a simple patch. If there is something wrong, please let me know. Thanks, JinGu Kang -------------- next part -------------- A non-text attachment was scrubbed... Name: llvm.patch Type: text/x-patch Size: 1123 bytes Desc: not available URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20131211/ec92109c/attachment.bin>
Maybe Matching Threads
- [LLVMdev] MachineBasicBlock insertion and use/def list update
- [LLVMdev] Inserting MachineBasicBlock(s) before a MachineBasicBlock
- [LLVMdev] MachineBasicBlock insertion
- [LLVMdev] BuildMI declarations inconsistency?
- LLVM X86 MachineBasicBlock inserting push and pop instructions causes segmentation fault