diff options
author | Evan Cheng <evan.cheng@apple.com> | 2006-12-01 21:52:58 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2006-12-01 21:52:58 +0000 |
commit | ba59a1e453e110f7b84233f07613f9c5d9a39b87 (patch) | |
tree | 91b99b547060bdc60c14f716fc7ed29ba57c3a01 /lib/Target/X86 | |
parent | 258ff6726d6c079ec6c5b13e340299cbf7300299 (diff) | |
download | external_llvm-ba59a1e453e110f7b84233f07613f9c5d9a39b87.zip external_llvm-ba59a1e453e110f7b84233f07613f9c5d9a39b87.tar.gz external_llvm-ba59a1e453e110f7b84233f07613f9c5d9a39b87.tar.bz2 |
Match TargetInstrInfo changes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32098 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86')
-rw-r--r-- | lib/Target/X86/X86CodeEmitter.cpp | 4 | ||||
-rw-r--r-- | lib/Target/X86/X86InstrInfo.h | 4 | ||||
-rw-r--r-- | lib/Target/X86/X86RegisterInfo.cpp | 2 |
3 files changed, 6 insertions, 4 deletions
diff --git a/lib/Target/X86/X86CodeEmitter.cpp b/lib/Target/X86/X86CodeEmitter.cpp index aa77a25..a1547cf 100644 --- a/lib/Target/X86/X86CodeEmitter.cpp +++ b/lib/Target/X86/X86CodeEmitter.cpp @@ -471,7 +471,7 @@ unsigned Emitter::determineREX(const MachineInstr &MI) { unsigned NumOps = II->getNumOperands(Opcode); if (NumOps) { bool isTwoAddr = NumOps > 1 && - II->getOperandConstraint(Opcode, 1, TargetInstrInfo::TIED_TO) != -1; + II->getOperandConstraint(Opcode, 1, TOI::TIED_TO) != -1; // If it accesses SPL, BPL, SIL, or DIL, then it requires a 0x40 REX prefix. bool isTrunc8 = isX86_64TruncToByte(Opcode); @@ -610,7 +610,7 @@ void Emitter::emitInstruction(const MachineInstr &MI) { unsigned NumOps = II->getNumOperands(Opcode); unsigned CurOp = 0; if (NumOps > 1 && - II->getOperandConstraint(Opcode, 1, TargetInstrInfo::TIED_TO) != -1) + II->getOperandConstraint(Opcode, 1, TOI::TIED_TO) != -1) CurOp++; unsigned char BaseOpcode = II->getBaseOpcodeFor(Opcode); diff --git a/lib/Target/X86/X86InstrInfo.h b/lib/Target/X86/X86InstrInfo.h index c9ce1fc..409243a 100644 --- a/lib/Target/X86/X86InstrInfo.h +++ b/lib/Target/X86/X86InstrInfo.h @@ -252,7 +252,9 @@ public: /// This method returns a null pointer if the transformation cannot be /// performed, otherwise it returns the new instruction. /// - virtual MachineInstr *convertToThreeAddress(MachineInstr *TA) const; + virtual MachineInstr *convertToThreeAddress(MachineFunction::iterator &MFI, + MachineBasicBlock::iterator &MBBI, + LiveVariables &LV) const; /// commuteInstruction - We have a few instructions that must be hacked on to /// commute them. diff --git a/lib/Target/X86/X86RegisterInfo.cpp b/lib/Target/X86/X86RegisterInfo.cpp index 8355390..2dcb2bc 100644 --- a/lib/Target/X86/X86RegisterInfo.cpp +++ b/lib/Target/X86/X86RegisterInfo.cpp @@ -289,7 +289,7 @@ MachineInstr* X86RegisterInfo::foldMemoryOperand(MachineInstr *MI, bool isTwoAddrFold = false; unsigned NumOps = TII.getNumOperands(MI->getOpcode()); bool isTwoAddr = NumOps > 1 && - TII.getOperandConstraint(MI->getOpcode(), 1,TargetInstrInfo::TIED_TO) != -1; + TII.getOperandConstraint(MI->getOpcode(), 1, TOI::TIED_TO) != -1; MachineInstr *NewMI = NULL; // Folding a memory location into the two-address part of a two-address |