Mercurial > hg > CbC > CbC_llvm
comparison lib/Target/Mips/Mips16ISelLowering.cpp @ 100:7d135dc70f03 LLVM 3.9
LLVM 3.9
author | Miyagi Mitsuki <e135756@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 26 Jan 2016 22:53:40 +0900 |
parents | afa8332a0e37 |
children | 1172e4bd9c6f |
comparison
equal
deleted
inserted
replaced
96:6418606d0ead | 100:7d135dc70f03 |
---|---|
528 // To "insert" a SELECT_CC instruction, we actually have to insert the | 528 // To "insert" a SELECT_CC instruction, we actually have to insert the |
529 // diamond control-flow pattern. The incoming instruction knows the | 529 // diamond control-flow pattern. The incoming instruction knows the |
530 // destination vreg to set, the condition code register to branch on, the | 530 // destination vreg to set, the condition code register to branch on, the |
531 // true/false values to select between, and a branch opcode to use. | 531 // true/false values to select between, and a branch opcode to use. |
532 const BasicBlock *LLVM_BB = BB->getBasicBlock(); | 532 const BasicBlock *LLVM_BB = BB->getBasicBlock(); |
533 MachineFunction::iterator It = BB; | 533 MachineFunction::iterator It = ++BB->getIterator(); |
534 ++It; | |
535 | 534 |
536 // thisMBB: | 535 // thisMBB: |
537 // ... | 536 // ... |
538 // TrueVal = ... | 537 // TrueVal = ... |
539 // setcc r1, r2, r3 | 538 // setcc r1, r2, r3 |
590 // To "insert" a SELECT_CC instruction, we actually have to insert the | 589 // To "insert" a SELECT_CC instruction, we actually have to insert the |
591 // diamond control-flow pattern. The incoming instruction knows the | 590 // diamond control-flow pattern. The incoming instruction knows the |
592 // destination vreg to set, the condition code register to branch on, the | 591 // destination vreg to set, the condition code register to branch on, the |
593 // true/false values to select between, and a branch opcode to use. | 592 // true/false values to select between, and a branch opcode to use. |
594 const BasicBlock *LLVM_BB = BB->getBasicBlock(); | 593 const BasicBlock *LLVM_BB = BB->getBasicBlock(); |
595 MachineFunction::iterator It = BB; | 594 MachineFunction::iterator It = ++BB->getIterator(); |
596 ++It; | |
597 | 595 |
598 // thisMBB: | 596 // thisMBB: |
599 // ... | 597 // ... |
600 // TrueVal = ... | 598 // TrueVal = ... |
601 // setcc r1, r2, r3 | 599 // setcc r1, r2, r3 |
655 // To "insert" a SELECT_CC instruction, we actually have to insert the | 653 // To "insert" a SELECT_CC instruction, we actually have to insert the |
656 // diamond control-flow pattern. The incoming instruction knows the | 654 // diamond control-flow pattern. The incoming instruction knows the |
657 // destination vreg to set, the condition code register to branch on, the | 655 // destination vreg to set, the condition code register to branch on, the |
658 // true/false values to select between, and a branch opcode to use. | 656 // true/false values to select between, and a branch opcode to use. |
659 const BasicBlock *LLVM_BB = BB->getBasicBlock(); | 657 const BasicBlock *LLVM_BB = BB->getBasicBlock(); |
660 MachineFunction::iterator It = BB; | 658 MachineFunction::iterator It = ++BB->getIterator(); |
661 ++It; | |
662 | 659 |
663 // thisMBB: | 660 // thisMBB: |
664 // ... | 661 // ... |
665 // TrueVal = ... | 662 // TrueVal = ... |
666 // setcc r1, r2, r3 | 663 // setcc r1, r2, r3 |