[llvm-commits] CVS: llvm/lib/Target/Sparc/FInfo.cpp Sparc.cpp

Brian Gaeke gaeke at cs.uiuc.edu
Wed Jun 4 17:08:12 PDT 2003


Changes in directory llvm/lib/Target/Sparc:

FInfo.cpp updated: 1.3 -> 1.4
Sparc.cpp updated: 1.65 -> 1.66

---
Log message:

lib/CodeGen/Mapping/MappingInfo.cpp:
 Update file comment to contain a bunch of the overview mapping-info
  documentation previously buried within the file.
 Remove some unnecessary include/using stmts.
 Rename pass to MappingInfoCollector.
 Rewrite a lot of it so it doesn't use global instance variables and so
  it outputs into MappingInfo objects and then dumps those out, instead of going
  straight to an assembly file.
 Change name of factory to getMappingInfoCollector.
 Fold prologue & epilogue writers into MappingInfo methods.

lib/Target/Sparc/FInfo.cpp:
 Correct file comment to reflect above change

lib/Target/Sparc/Sparc.cpp:
 Change name of factory to getMappingInfoCollector.


---
Diffs of the changes:

Index: llvm/lib/Target/Sparc/FInfo.cpp
diff -u llvm/lib/Target/Sparc/FInfo.cpp:1.3 llvm/lib/Target/Sparc/FInfo.cpp:1.4
--- llvm/lib/Target/Sparc/FInfo.cpp:1.3	Mon Jun  2 22:41:07 2003
+++ llvm/lib/Target/Sparc/FInfo.cpp	Wed Jun  4 17:07:12 2003
@@ -3,8 +3,7 @@
 // This file contains a pass, FunctionInfo, used by LLC's SPARC back-end
 // which writes out two tables used by the Reoptimizer.  These tables,
 // named FunctionBB and FunctionLI, map Function numbers to the BBMIMap and
-// LMIMap tables output by the getMappingInfoForFunction (MappingInfo.cpp)
-// pass, respectively.
+// LMIMap tables output by the MappingInfo pass, respectively.
 // 
 // An LLVM Function's Function number is the index within a Module* where a
 // particular Function* can be found.


Index: llvm/lib/Target/Sparc/Sparc.cpp
diff -u llvm/lib/Target/Sparc/Sparc.cpp:1.65 llvm/lib/Target/Sparc/Sparc.cpp:1.66
--- llvm/lib/Target/Sparc/Sparc.cpp:1.65	Fri May 30 23:23:04 2003
+++ llvm/lib/Target/Sparc/Sparc.cpp	Wed Jun  4 17:07:12 2003
@@ -174,7 +174,7 @@
   if (!DisablePeephole)
     PM.add(createPeepholeOptsPass(*this));
 
-  PM.add(MappingInfoForFunction(Out));  
+  PM.add(getMappingInfoCollector(Out));  
 
   // Output assembly language to the .s file.  Assembly emission is split into
   // two parts: Function output and Global value output.  This is because





More information about the llvm-commits mailing list