Fix file header comments and include guards -- many files have been moved or
authorBrian Gaeke <gaeke@uiuc.edu>
Sun, 25 Apr 2004 07:04:49 +0000 (07:04 +0000)
committerBrian Gaeke <gaeke@uiuc.edu>
Sun, 25 Apr 2004 07:04:49 +0000 (07:04 +0000)
renamed since they were last spiffed up, or they just never had proper comments
in the first place.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13148 91177308-0d34-0410-b5e6-96231b3b80d8

30 files changed:
lib/Target/SparcV9/EmitBytecodeToAssembly.cpp
lib/Target/SparcV9/MachineInstrAnnot.h
lib/Target/SparcV9/Makefile
lib/Target/SparcV9/MappingInfo.cpp
lib/Target/SparcV9/MappingInfo.h
lib/Target/SparcV9/SparcV9.td
lib/Target/SparcV9/SparcV9AsmPrinter.cpp
lib/Target/SparcV9/SparcV9FrameInfo.cpp
lib/Target/SparcV9/SparcV9FrameInfo.h
lib/Target/SparcV9/SparcV9Instr.def
lib/Target/SparcV9/SparcV9InstrInfo.cpp
lib/Target/SparcV9/SparcV9InstrInfo.h
lib/Target/SparcV9/SparcV9InstrSelection.cpp
lib/Target/SparcV9/SparcV9InstrSelectionSupport.h
lib/Target/SparcV9/SparcV9Internals.h
lib/Target/SparcV9/SparcV9JITInfo.h
lib/Target/SparcV9/SparcV9PeepholeOpts.cpp
lib/Target/SparcV9/SparcV9PreSelection.cpp
lib/Target/SparcV9/SparcV9PrologEpilogInserter.cpp
lib/Target/SparcV9/SparcV9RegClassInfo.cpp
lib/Target/SparcV9/SparcV9RegClassInfo.h
lib/Target/SparcV9/SparcV9RegInfo.cpp
lib/Target/SparcV9/SparcV9SchedInfo.cpp
lib/Target/SparcV9/SparcV9StackSlots.cpp
lib/Target/SparcV9/SparcV9TargetMachine.cpp
lib/Target/SparcV9/SparcV9TargetMachine.h
lib/Target/SparcV9/SparcV9_F2.td
lib/Target/SparcV9/SparcV9_F3.td
lib/Target/SparcV9/SparcV9_F4.td
lib/Target/SparcV9/SparcV9_Reg.td

index 0e14580386c4bc7a2dcc08d512df61d505b559a3..0826f76284e7b4ab516c2e9daa56a2a523942012 100644 (file)
@@ -1,4 +1,4 @@
-//===-- EmitBytecodeToAssembly.cpp - Emit bytecode to SparcV9 .s File --------==//
+//===-- EmitBytecodeToAssembly.cpp - Emit bytecode to SparcV9 .s File ------==//
 // 
 //                     The LLVM Compiler Infrastructure
 //
index 6b6d928d04f9dac073118c49baced310bc14d4ba..13e68c042cf173261ec4f14effd4bb2df90365cb 100644 (file)
@@ -1,4 +1,4 @@
-//===-- llvm/CodeGen/MachineInstrAnnot.h ------------------------*- C++ -*-===//
+//===-- MachineInstrAnnot.h -------------------------------------*- C++ -*-===//
 // 
 //                     The LLVM Compiler Infrastructure
 //
@@ -7,12 +7,12 @@
 // 
 //===----------------------------------------------------------------------===//
 //
-//  Annotations used to pass information between code generation phases.
+// Annotations used to pass information between SparcV9 code generation phases.
 // 
 //===----------------------------------------------------------------------===//
 
-#ifndef MACHINE_INSTR_ANNOT_h
-#define MACHINE_INSTR_ANNOT_h
+#ifndef MACHINEINSTRANNOT_H
+#define MACHINEINSTRANNOT_H
 
 #include "llvm/CodeGen/MachineInstr.h"
 #include "SparcV9RegInfo.h"
index 3c028f1632ac6a692965fb05daed2232d48e2362..195a1bce52d393ae68e06cee0163f9e0a910ceaf 100644 (file)
@@ -1,4 +1,4 @@
-##===- lib/Target/SparcV9/Makefile ---------------------------*- Makefile -*-===##
+##===- lib/Target/SparcV9/Makefile -------------------------*- Makefile -*-===##
 # 
 #                     The LLVM Compiler Infrastructure
 #
index 4648c54e48e0083a254c7cf605a9c311ff4bb6a7..3aa23592888d22a05daa27c00a12cc24f53f5ad1 100644 (file)
@@ -1,4 +1,4 @@
-//===- MappingInfo.cpp - create LLVM info and output to .s file ---------===//
+//===- MappingInfo.cpp - create LLVM info and output to .s file -----------===//
 // 
 //                     The LLVM Compiler Infrastructure
 //
index 351d5f87a95e97e7332df84cd5a1fc4b1af7c743..bf725a0a0fe40fd71e015cada5514e569970f1dc 100644 (file)
@@ -1,4 +1,4 @@
-//===- lib/Target/SparcV9/MappingInfo.h ---------------------------*- C++ -*-===//
+//===- lib/Target/SparcV9/MappingInfo.h -------------------------*- C++ -*-===//
 // 
 //                     The LLVM Compiler Infrastructure
 //
index f20b57d909fc52315869b1f07d02104e21b38cf6..f31c364e6fbba0444964ad60876000b9a6fca1b8 100644 (file)
@@ -1,4 +1,4 @@
-//===- SparcV9.td - Target Description for SparcV9 V9 Target ----------------===//
+//===- SparcV9.td - Target Description for SparcV9 Target -----------------===//
 // 
 //                     The LLVM Compiler Infrastructure
 //
@@ -7,7 +7,8 @@
 // 
 //===----------------------------------------------------------------------===//
 //
-// TODO: Need a description here.
+// TableGen target description file for the SparcV9. This is currently used 
+// primarily to generate part of the SparcV9CodeEmitter automatically.
 //
 //===----------------------------------------------------------------------===//
 
index 0fa4c49ceb4b89a3f2aada1b53fae58bc19f57a9..0f8c2cdc37433c8975c19f56d24c167e7ed14cfb 100644 (file)
@@ -1,4 +1,4 @@
-//===-- EmitAssembly.cpp - Emit SparcV9 Specific .s File ---------------------==//
+//===-- EmitAssembly.cpp - Emit SparcV9 Specific .s File -------------------==//
 // 
 //                     The LLVM Compiler Infrastructure
 //
index a3f60496b657135c7fd3d8ea3f12e169d665da38..91b94883f692b237517b71f24f9e97fd6ffd6a33 100644 (file)
@@ -1,4 +1,4 @@
-//===-- SparcV9.cpp - General implementation file for the SparcV9 Target ------===//
+//===-- SparcV9FrameInfo.cpp - Stack frame layout info for SparcV9 --------===//
 // 
 //                     The LLVM Compiler Infrastructure
 //
index d5f542cc18c68acd53ef85943438feda08cba9e4..97153f8f970536d9964e5dd30bcf0ccaf592e9ab 100644 (file)
@@ -1,4 +1,4 @@
-//===-- SparcV9FrameInfo.h - Define TargetFrameInfo for SparcV9 -----*- C++ -*-===//
+//===-- SparcV9FrameInfo.h - Define TargetFrameInfo for SparcV9 -*- C++ -*-===//
 // 
 //                     The LLVM Compiler Infrastructure
 //
index f3ed337d6e97fd7cb9032d99886ab99fee1f0c94..f67ed939e2c8a614471dcbff7764652170c1f77b 100644 (file)
@@ -1,4 +1,4 @@
-//===-- SparcInstr.def - Sparc Instruction Information -----------*- C++ -*-==//
+//===-- SparcV9Instr.def - SparcV9 Instruction Information -------*- C++ -*-==//
 // 
 //                     The LLVM Compiler Infrastructure
 //
index 7c123f7332a4110855c64fc3afc2f3c8d8c04c0b..b6d580622fe6f854a2298921e59fe64623732142 100644 (file)
@@ -1,4 +1,4 @@
-//===-- SparcV9InstrInfo.cpp ------------------------------------------------===//
+//===-- SparcV9InstrInfo.cpp - SparcV9 Instr. Selection Support Methods ---===//
 // 
 //                     The LLVM Compiler Infrastructure
 //
@@ -7,6 +7,10 @@
 // 
 //===----------------------------------------------------------------------===//
 //
+// This file contains various methods of the class SparcV9InstrInfo, many of
+// which appear to build canned sequences of MachineInstrs, and are
+// used in instruction selection.
+//
 //===----------------------------------------------------------------------===//
 
 #include "llvm/Constants.h"
index dcc2e15181465c91ae715143e7106dc276f5713f..9a4aa167e926af1ba634a15ce65ef2dc37dcb6bd 100644 (file)
@@ -8,7 +8,8 @@
 //===----------------------------------------------------------------------===//
 //
 // This class contains information about individual instructions.
-// Most information is stored in the SparcV9MachineInstrDesc array above.
+// Also see the SparcV9MachineInstrDesc array, which can be found in
+// SparcV9TargetMachine.cpp.
 // Other information is computed on demand, and most such functions
 // default to member functions in base class TargetInstrInfo. 
 //
index 0460f3803dd7f899ef7bb1190763e731c8ced4a4..122a97ea7945b6dbe9096206a2f6958c79c919a5 100644 (file)
@@ -1,4 +1,4 @@
-//===-- SparcV9InstrSelection.cpp -------------------------------------------===//
+//===-- SparcV9InstrSelection.cpp -----------------------------------------===//
 // 
 //                     The LLVM Compiler Infrastructure
 //
index 1fca89f945279aa2b0bd29d4cf16d0021ac0fe25..a59045fe05db0b2fb05e6e9333a317502380329e 100644 (file)
@@ -1,4 +1,4 @@
-//===-- llvm/CodeGen/SparcV9InstrSelectionSupport.h ---------------*- C++ -*-===//
+//===-- SparcV9InstrSelectionSupport.h --------------------------*- C++ -*-===//
 // 
 //                     The LLVM Compiler Infrastructure
 //
@@ -7,12 +7,12 @@
 // 
 //===----------------------------------------------------------------------===//
 //
-// TODO: Need a description here.
+// More instruction selection support routines for the SparcV9 target.
 //
 //===----------------------------------------------------------------------===//
 
-#ifndef SPARC_INSTR_SELECTION_SUPPORT_h
-#define SPARC_INSTR_SELECTION_SUPPORT_h
+#ifndef SPARCV9INSTRSELECTIONSUPPORT_H
+#define SPARCV9INSTRSELECTIONSUPPORT_H
 
 #include "llvm/DerivedTypes.h"
 #include "SparcV9Internals.h"
index 8afad9805af10569f81435a9f8b7f4c777711354..edaa3d12d570ca302e9cc0ad508a6a145eea4200 100644 (file)
@@ -1,4 +1,4 @@
-//===-- SparcV9Internals.h ----------------------------------------*- C++ -*-===//
+//===-- SparcV9Internals.h --------------------------------------*- C++ -*-===//
 // 
 //                     The LLVM Compiler Infrastructure
 //
@@ -12,8 +12,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#ifndef SPARC_INTERNALS_H
-#define SPARC_INTERNALS_H
+#ifndef SPARCV9INTERNALS_H
+#define SPARCV9INTERNALS_H
 
 #include "llvm/CodeGen/MachineInstrBuilder.h"
 #include "llvm/Target/TargetMachine.h"
index 244b13c22be248488f7deed4aeddc35d63e90b23..f7888aaf778b895e1d6e8b1c1977ba9feaa9a151 100644 (file)
@@ -1,4 +1,4 @@
-//===- SparcV9JITInfo.h - SparcV9 implementation of the JIT interface -*-C++-*-===//
+//===- SparcV9JITInfo.h - SparcV9 Target JIT interface ----------*- C++ -*-===//
 // 
 //                     The LLVM Compiler Infrastructure
 //
@@ -7,12 +7,14 @@
 // 
 //===----------------------------------------------------------------------===//
 //
-// This file contains the SparcV9 implementation of the TargetJITInfo class.
+// This file contains the SparcV9 implementation of the TargetJITInfo class,
+// which makes target-specific hooks available to the target-independent
+// LLVM JIT compiler.
 //
 //===----------------------------------------------------------------------===//
 
-#ifndef SPARCJITINFO_H
-#define SPARCJITINFO_H
+#ifndef SPARCV9JITINFO_H
+#define SPARCV9JITINFO_H
 
 #include "llvm/Target/TargetJITInfo.h"
 
index 8bdf3ec42d4a249abbdfb69884043ceb75c00fb6..61ba0fab5ec4b3f958c9258bef9e539cce207f3e 100644 (file)
@@ -1,4 +1,4 @@
-//===-- PeepholeOpts.cpp --------------------------------------------------===//
+//===-- SparcV9PeepholeOpts.cpp -------------------------------------------===//
 // 
 //                     The LLVM Compiler Infrastructure
 //
index 2c265a9238d20a6274d638f5ec0aabd3028120ad..40f753b4a95df42f66336fd7a72ec2081653c371 100644 (file)
@@ -1,4 +1,4 @@
-//===- PreSelection.cpp - Specialize LLVM code for target machine ---------===//
+//===- SparcV9PreSelection.cpp - Specialize LLVM code for SparcV9 ---------===//
 // 
 //                     The LLVM Compiler Infrastructure
 //
@@ -7,10 +7,10 @@
 // 
 //===----------------------------------------------------------------------===//
 //
-// This file defines the PreSelection pass which specializes LLVM code for a
-// target machine, while remaining in legal portable LLVM form and
-// preserving type information and type safety.  This is meant to enable
-// dataflow optimizations on target-specific operations such as accesses to
+// This file defines the PreSelection pass which specializes LLVM code for
+// the SparcV9 instruction selector, while remaining in legal portable LLVM
+// form and preserving type information and type safety. This is meant to enable
+// dataflow optimizations on SparcV9-specific operations such as accesses to
 // constants, globals, and array indexing.
 //
 //===----------------------------------------------------------------------===//
@@ -34,7 +34,7 @@ using namespace llvm;
 namespace {
 
   //===--------------------------------------------------------------------===//
-  // PreSelection Pass - Specialize LLVM code for the current target machine.
+  // PreSelection Pass - Specialize LLVM code for the SparcV9 instr. selector.
   // 
   class PreSelection : public FunctionPass, public InstVisitor<PreSelection> {
     const TargetInstrInfo &instrInfo;
index 48874e7369b098437f48382b708d73aaa14faff6..9749ede275804e900150f248882766534b483e46 100644 (file)
@@ -1,4 +1,4 @@
-//===-- PrologEpilogCodeInserter.cpp - Insert Prolog & Epilog code for fn -===//
+//===-- SparcV9PrologEpilogCodeInserter.cpp - Insert Fn Prolog & Epilog ---===//
 // 
 //                     The LLVM Compiler Infrastructure
 //
index d0fe1174d10f93a4360b29dfebd78060d3988e40..0f83bb2037572d81eb98470f2d4351ad2246ab16 100644 (file)
@@ -1,4 +1,4 @@
-//===-- SparcV9RegClassInfo.cpp - Register class def'ns for SparcV9 -----------===//
+//===-- SparcV9RegClassInfo.cpp - Register class def'ns for SparcV9 -------===//
 // 
 //                     The LLVM Compiler Infrastructure
 //
@@ -7,7 +7,9 @@
 // 
 //===----------------------------------------------------------------------===//
 //
-//  This file defines the register classes used by the SparcV9 target description.
+// This file defines the methods used by the SparcV9 register allocator
+// to pick registers of various classes.  Most of this code should be
+// considered part of the register allocator.
 //
 //===----------------------------------------------------------------------===//
 
index 1c7b3de8289eba0765cea0074945fee065f7623c..e01c69f4570dca8d4c2f5a038434bd8314812d21 100644 (file)
@@ -1,4 +1,4 @@
-//===-- SparcV9RegClassInfo.h - Register class def'ns for SparcV9 ---*- C++ -*-===//
+//===-- SparcV9RegClassInfo.h - Register class def'ns for SparcV9 -*- C++ -*-=//
 // 
 //                     The LLVM Compiler Infrastructure
 //
@@ -7,7 +7,10 @@
 // 
 //===----------------------------------------------------------------------===//
 //
-// This file defines the register classes used by the SparcV9 target description.
+// This file defines the register classes used by the SparcV9 target. It
+// implicitly defines (using enums) the "class register numbers" used in
+// the SparcV9 target, which are converted using a formula in the TargetRegInfo
+// class to "unified register numbers".
 //
 //===----------------------------------------------------------------------===//
 
index 89aad0495f64c35f37a48679a72335c88f66f755..513437e7548e6ec695129c081c2c5ab24aa848c2 100644 (file)
@@ -1,4 +1,4 @@
-//===-- SparcV9RegInfo.cpp - SparcV9 Target Register Information --------------===//
+//===-- SparcV9RegInfo.cpp - SparcV9 Target Register Information ----------===//
 // 
 //                     The LLVM Compiler Infrastructure
 //
@@ -7,7 +7,7 @@
 // 
 //===----------------------------------------------------------------------===//
 //
-// This file contains implementation of SparcV9 specific helper methods
+// This file contains implementations of SparcV9 specific helper methods
 // used for register allocation.
 //
 //===----------------------------------------------------------------------===//
index 7b7da721a607a1d0b5ee39db9c6b461ba52c99c1..39d616419f1b327f4ae12117d68db949061a1c5d 100644 (file)
@@ -1,4 +1,4 @@
-//===-- UltraSparcV9SchedInfo.cpp -------------------------------------------===//
+//===-- SparcV9SchedInfo.cpp ----------------------------------------------===//
 // 
 //                     The LLVM Compiler Infrastructure
 //
@@ -7,7 +7,7 @@
 // 
 //===----------------------------------------------------------------------===//
 //
-// Describe the scheduling characteristics of the UltraSparcV9
+// Describe the scheduling characteristics of the UltraSparc IIi.
 //
 //===----------------------------------------------------------------------===//
 
index e11effc4b13aebf95782722a7630a313673bfb7d..c21defbd4df8cd87ad17d1e483c52b9d59ece593 100644 (file)
@@ -1,4 +1,4 @@
-//===- StackSlots.cpp  - Specialize LLVM code for target machine ----------===//
+//===- SparcV9StackSlots.cpp - Add empty stack slots to functions ---------===//
 // 
 //                     The LLVM Compiler Infrastructure
 //
index f15f9412f836e933b6f7fef85cc9417064021ceb..c5d815c987e751eccf98cf6e16b6f2d89d843ec1 100644 (file)
@@ -1,4 +1,4 @@
-//===-- SparcV9.cpp - General implementation file for the SparcV9 Target ------===//
+//===-- SparcV9TargetMachine.cpp - SparcV9 Target Machine Implementation --===//
 // 
 //                     The LLVM Compiler Infrastructure
 //
index 8f1d08838515ef766c4380a37f67b20f798bdc4d..747c0501a983721b8e9ba00727a37c2707c07919 100644 (file)
@@ -1,4 +1,4 @@
-//===-- SparcV9TargetMachine.h - Define TargetMachine for SparcV9 ---*- C++ -*-===//
+//===-- SparcV9TargetMachine.h - Define TargetMachine for SparcV9 -*- C++ -*-=//
 // 
 //                     The LLVM Compiler Infrastructure
 //
@@ -7,12 +7,12 @@
 // 
 //===----------------------------------------------------------------------===//
 // 
-// This file declares the top-level UltraSPARC target machine.
+// This file declares the top-level SparcV9 target machine.
 //
 //===----------------------------------------------------------------------===//
 
-#ifndef SPARC_TARGETMACHINE_H
-#define SPARC_TARGETMACHINE_H
+#ifndef SPARCV9TARGETMACHINE_H
+#define SPARCV9TARGETMACHINE_H
 
 #include "llvm/Target/TargetFrameInfo.h"
 #include "llvm/Target/TargetMachine.h"
index 56500ae8f0ce2bebdc3427ce909571c4a1d9f7ea..e9df4d2a06296bac9cbe4581c604f60204854b27 100644 (file)
@@ -1,4 +1,4 @@
-//===- SparcV9_F2.td - Format 2 instructions: SparcV9 V9 Target -------------===//
+//===- SparcV9_F2.td - Format 2 instructions: SparcV9 Target --------------===//
 // 
 //                     The LLVM Compiler Infrastructure
 //
index ae03fbac9b78faae6f08754dea8d591fdaac1236..4d03ff1b095338703530149d631e4aeca23ceb42 100644 (file)
@@ -1,4 +1,4 @@
-//===- SparcV9_F3.td - Format 3 Instructions: SparcV9 V9 Target -------------===//
+//===- SparcV9_F3.td - Format 3 Instructions: SparcV9 Target --------------===//
 // 
 //                     The LLVM Compiler Infrastructure
 //
index 64fc52a1c52b67012283aa59106c0a4c77c39524..12941e950e0df1b00e328bbfc33114e965caab79 100644 (file)
@@ -1,4 +1,4 @@
-//===- SparcV9_F4.td - Format 4 instructions: SparcV9 V9 Target -------------===//
+//===- SparcV9_F4.td - Format 4 instructions: SparcV9 Target --------------===//
 // 
 //                     The LLVM Compiler Infrastructure
 //
index 95ad48e1594a4c7cda24cbb325e41c06663bd9bf..3f3e96da0ada7561bed1f9213e149555921dd2bb 100644 (file)
@@ -1,4 +1,4 @@
-//===- SparcV9_Reg.td - SparcV9 V9 Register definitions ---------------------===//
+//===- SparcV9_Reg.td - SparcV9 Register definitions ----------------------===//
 // 
 //                     The LLVM Compiler Infrastructure
 //