[llvm-commits] [llvm] r168407 - /llvm/trunk/lib/Target/X86/X86FloatingPoint.cpp
Jakub Staszak
kubastaszak at gmail.com
Tue Nov 20 16:50:58 PST 2012
Author: kuba
Date: Tue Nov 20 18:50:57 2012
New Revision: 168407
URL: http://llvm.org/viewvc/llvm-project?rev=168407&view=rev
Log:
Make isScratchReg and isFPCopy methods static.
Modified:
llvm/trunk/lib/Target/X86/X86FloatingPoint.cpp
Modified: llvm/trunk/lib/Target/X86/X86FloatingPoint.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86FloatingPoint.cpp?rev=168407&r1=168406&r2=168407&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86FloatingPoint.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86FloatingPoint.cpp Tue Nov 20 18:50:57 2012
@@ -206,7 +206,7 @@
}
/// isScratchReg - Returns trus if RegNo is a scratch FP register.
- bool isScratchReg(unsigned RegNo) const {
+ static bool isScratchReg(unsigned RegNo) {
return RegNo > 8 && RegNo < NumFPRegs;
}
@@ -311,7 +311,7 @@
void handleSpecialFP(MachineBasicBlock::iterator &I);
// Check if a COPY instruction is using FP registers.
- bool isFPCopy(MachineInstr *MI) const {
+ static bool isFPCopy(MachineInstr *MI) {
unsigned DstReg = MI->getOperand(0).getReg();
unsigned SrcReg = MI->getOperand(1).getReg();
More information about the llvm-commits
mailing list