mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 23:17:16 +00:00
Move getBundleStart() into MachineInstrBundle.h.
This allows the function to be inlined, and makes it suitable for use in getInstructionIndex(). Also provide a const version. C++ is great for touch typing practice. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151782 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -900,16 +900,6 @@ bool MachineInstr::isBundled() const {
|
||||
return nextMI != Parent->instr_end() && nextMI->isInsideBundle();
|
||||
}
|
||||
|
||||
MachineInstr* MachineInstr::getBundleStart() {
|
||||
if (!isInsideBundle())
|
||||
return this;
|
||||
MachineBasicBlock::reverse_instr_iterator MII(this);
|
||||
++MII;
|
||||
while (MII->isInsideBundle())
|
||||
++MII;
|
||||
return &*MII;
|
||||
}
|
||||
|
||||
bool MachineInstr::isStackAligningInlineAsm() const {
|
||||
if (isInlineAsm()) {
|
||||
unsigned ExtraInfo = getOperand(InlineAsm::MIOp_ExtraInfo).getImm();
|
||||
|
||||
Reference in New Issue
Block a user