[llvm-commits] [llvm] r55853 - in /llvm/trunk: include/llvm/CodeGen/FastISel.h lib/Target/X86/X86FastISel.cpp

Owen Anderson resistor at mac.com
Fri Sep 5 13:49:33 PDT 2008


Author: resistor
Date: Fri Sep  5 15:49:33 2008
New Revision: 55853

URL: http://llvm.org/viewvc/llvm-project?rev=55853&view=rev
Log:
Rename method.

Modified:
    llvm/trunk/include/llvm/CodeGen/FastISel.h
    llvm/trunk/lib/Target/X86/X86FastISel.cpp

Modified: llvm/trunk/include/llvm/CodeGen/FastISel.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/FastISel.h?rev=55853&r1=55852&r2=55853&view=diff

==============================================================================
--- llvm/trunk/include/llvm/CodeGen/FastISel.h (original)
+++ llvm/trunk/include/llvm/CodeGen/FastISel.h Fri Sep  5 15:49:33 2008
@@ -227,8 +227,10 @@
 
   unsigned createResultReg(const TargetRegisterClass *RC);
   
-  virtual unsigned TargetSelectConstantPoolLoad(Constant* C,
-                                                MachineConstantPool* MCP) {
+  /// TargetMaterializeConstant - Emit a constant in a register using 
+  /// target-specific logic, such as constant pool loads.
+  virtual unsigned TargetMaterializeConstant(Constant* C,
+                                             MachineConstantPool* MCP) {
     return 0;
   }
 

Modified: llvm/trunk/lib/Target/X86/X86FastISel.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86FastISel.cpp?rev=55853&r1=55852&r2=55853&view=diff

==============================================================================
--- llvm/trunk/lib/Target/X86/X86FastISel.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86FastISel.cpp Fri Sep  5 15:49:33 2008
@@ -61,7 +61,7 @@
 
   bool X86SelectSelect(Instruction *I);
   
-  unsigned TargetSelectConstantPoolLoad(Constant *C, MachineConstantPool* MCP);
+  unsigned TargetMaterializeConstant(Constant *C, MachineConstantPool* MCP);
 };
 
 /// X86SelectConstAddr - Select and emit code to materialize constant address.
@@ -549,8 +549,8 @@
   return false;
 }
 
-unsigned X86FastISel::TargetSelectConstantPoolLoad(Constant *C,
-                                                   MachineConstantPool* MCP) {
+unsigned X86FastISel::TargetMaterializeConstant(Constant *C,
+                                                MachineConstantPool* MCP) {
   unsigned CPLoad = getRegForValue(C);
   if (CPLoad != 0)
     return CPLoad;





More information about the llvm-commits mailing list