[llvm-commits] CVS: reopt/include/reopt/BinInterface/LLVMTrace.h analyze.h bitmath.h regmask.h sparc9.h sparcbin.h sparcdis.h sparcpriv.h

Brian Gaeke gaeke at cs.uiuc.edu
Fri Aug 22 19:55:37 PDT 2003


Changes in directory reopt/include/reopt/BinInterface:

LLVMTrace.h updated: 1.2 -> 1.3
analyze.h updated: 1.1 -> 1.2
bitmath.h updated: 1.11 -> 1.12
regmask.h updated: 1.3 -> 1.4
sparc9.h updated: 1.15 -> 1.16
sparcbin.h updated: 1.5 -> 1.6
sparcdis.h updated: 1.7 -> 1.8
sparcpriv.h updated: 1.3 -> 1.4

---
Log message:

llvm/Reoptimizer --> reopt,  LightWtProfiling/Trigger --> LightWtProfiling
Fix file header comments and include guards


---
Diffs of the changes:

Index: reopt/include/reopt/BinInterface/LLVMTrace.h
diff -u reopt/include/reopt/BinInterface/LLVMTrace.h:1.2 reopt/include/reopt/BinInterface/LLVMTrace.h:1.3
--- reopt/include/reopt/BinInterface/LLVMTrace.h:1.2	Sat May 31 21:31:48 2003
+++ reopt/include/reopt/BinInterface/LLVMTrace.h	Fri Aug 22 12:43:35 2003
@@ -1,8 +1,12 @@
-//===-- ------------llvm/Reoptimizer/LLVMTrace.h -----------------*- C++ -*--=//
+//===-- reopt/BinInterface/LLVMTrace.h ---------------------------*- C++ -*--=//
+//
 // Implements trace manipulation using bin interface
 //
 //===----------------------------------------------------------------------===//
 
+#ifndef REOPT_BININTERFACE_LLVMTRACE_H
+#define REOPT_BININTERFACE_LLVMTRACE_H
+
 #include<map>
 #include<vector>
 
@@ -83,3 +87,5 @@
   void moveInstrBefore(Instruction *I, unsigned int cid);
 
 };
+
+#endif // REOPT_BININTERFACE_LLVMTRACE_H


Index: reopt/include/reopt/BinInterface/analyze.h
diff -u reopt/include/reopt/BinInterface/analyze.h:1.1 reopt/include/reopt/BinInterface/analyze.h:1.2
--- reopt/include/reopt/BinInterface/analyze.h:1.1	Sat May 31 17:10:21 2003
+++ reopt/include/reopt/BinInterface/analyze.h	Fri Aug 22 12:43:35 2003
@@ -1,4 +1,4 @@
-//===--------llvm/Reoptimizer/BinInterface/analyze.h--------------*- C++ -*--=//
+//===-- reopt/BinInterface/analyze.h -----------------------------*- C++ -*--=//
 //
 //  Analysis API
 //
@@ -12,8 +12,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#ifndef __ANALYZE__
-#define __ANALYZE__
+#ifndef REOPT_BININTERFACE_ANALYZE_H
+#define REOPT_BININTERFACE_ANALYZE_H
 
 #include "sparcpriv.h"
 
@@ -66,5 +66,5 @@
 unsigned sparc_setbrdest(unsigned instr, signed reladdr);
 signed sparc_getbrdest(unsigned instr);
 
-#endif
+#endif // REOPT_BININTERFACE_ANALYZE_H
 


Index: reopt/include/reopt/BinInterface/bitmath.h
diff -u reopt/include/reopt/BinInterface/bitmath.h:1.11 reopt/include/reopt/BinInterface/bitmath.h:1.12
--- reopt/include/reopt/BinInterface/bitmath.h:1.11	Tue Jun 24 14:48:43 2003
+++ reopt/include/reopt/BinInterface/bitmath.h	Fri Aug 22 12:43:35 2003
@@ -1,4 +1,4 @@
-//===--------llvm/Reoptimizer/BinInterface/bitmath.h--------------*- C++ -*--=//
+//===-- reopt/BinInterface/bitmath.h -----------------------------*- C++ -*--=//
 //
 // High Performance Bit Utility Functions
 // Contains
@@ -13,8 +13,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#ifndef __BITMATH_H__
-#define __BITMATH_H__
+#ifndef REOPT_BININTERFACE_BITMATH_H
+#define REOPT_BININTERFACE_BITMATH_H
 
 #include "Support/DataTypes.h"
 
@@ -136,4 +136,4 @@
 static unsigned HIGHWORD(uint64_t value) { return (unsigned) (value >> 32); }
 static unsigned LOWWORD(uint64_t value)  { return (unsigned) value;         }
 
-#endif
+#endif // REOPT_BININTERFACE_BITMATH_H


Index: reopt/include/reopt/BinInterface/regmask.h
diff -u reopt/include/reopt/BinInterface/regmask.h:1.3 reopt/include/reopt/BinInterface/regmask.h:1.4
--- reopt/include/reopt/BinInterface/regmask.h:1.3	Mon Jun 30 16:58:33 2003
+++ reopt/include/reopt/BinInterface/regmask.h	Fri Aug 22 12:43:35 2003
@@ -1,12 +1,12 @@
-//===--------llvm/Reoptimizer/BinInterface/regmask.h--------------*- C++ -*--=//
+//===-- reopt/BinInterface/regmask.h -----------------------------*- C++ -*--=//
 //
 // Efficient bitfield based register tracker
 //                          Register Allocator
+//
 //===----------------------------------------------------------------------===//
 
-
-#ifndef __REGMASK_H__
-#define __REGMASK_H__
+#ifndef REOPT_BININTERFACE_REGMASK_H
+#define REOPT_BININTERFACE_REGMASK_H
 
 #include "bitmath.h"
 #include <vector>
@@ -158,5 +158,5 @@
       }
 };
 
-#endif
+#endif // REOPT_BININTERFACE_REGMASK_H
 


Index: reopt/include/reopt/BinInterface/sparc9.h
diff -u reopt/include/reopt/BinInterface/sparc9.h:1.15 reopt/include/reopt/BinInterface/sparc9.h:1.16
--- reopt/include/reopt/BinInterface/sparc9.h:1.15	Mon Jun 23 17:44:25 2003
+++ reopt/include/reopt/BinInterface/sparc9.h	Fri Aug 22 12:43:36 2003
@@ -1,9 +1,12 @@
-//===--------llvm/Reoptimizer/BinInterface/select.cpp-------------*- C++ -*--=//
+//===-- reopt/BinInterface/sparc9.h ------------------------------*- C++ -*--=//
 //
 // Portable SPARC v9 Machine Code Definition Header
 //
 //===----------------------------------------------------------------------===//
 
+#ifndef REOPT_BININTERFACE_SPARC9_H
+#define REOPT_BININTERFACE_SPARC9_H
+
 //*****************************************************************************
 //    Register Names
 //*****************************************************************************
@@ -538,3 +541,5 @@
    MK_FLD(INSTR_RS1, sreg)        |         \
    MK_FLD(INSTR_I, 1)             |         \
    MK_FLD(INSTR_SIMM13, imm))
+
+#endif // REOPT_BININTERFACE_SPARC9_H


Index: reopt/include/reopt/BinInterface/sparcbin.h
diff -u reopt/include/reopt/BinInterface/sparcbin.h:1.5 reopt/include/reopt/BinInterface/sparcbin.h:1.6
--- reopt/include/reopt/BinInterface/sparcbin.h:1.5	Mon Aug 18 09:27:59 2003
+++ reopt/include/reopt/BinInterface/sparcbin.h	Fri Aug 22 12:43:36 2003
@@ -1,4 +1,4 @@
-//===--------llvm/Reoptimizer/BinInterface/sparcbin.h-------------*- C++ -*--=//
+//===-- reopt/BinInterface/sparcbin.h ----------------------------*- C++ -*--=//
 //
 //  BinInterface: API for runtime manipulation of binary code
 //
@@ -8,12 +8,12 @@
 //
 //===----------------------------------------------------------------------===//
 
-#ifndef __BININTERFACE_H__
-#define __BININTERFACE_H__
+#ifndef REOPT_BININTERFACE_SPARCBIN_H
+#define REOPT_BININTERFACE_SPARCBIN_H
 
-#include "llvm/Reoptimizer/VirtualMem.h"
-#include "llvm/Reoptimizer/TraceCache.h"
-#include "llvm/Reoptimizer/InstrUtils.h"
+#include "reopt/VirtualMem.h"
+#include "reopt/TraceCache.h"
+#include "reopt/InstrUtils.h"
 #include "analyze.h"
 #include "sparcpriv.h"
 #include <map>
@@ -274,6 +274,5 @@
       BinInterface(unsigned heapsize, VirtualMem *vmem, TraceCache *trc);
       ~BinInterface();
 };
-#endif
-
+#endif // REOPT_BININTERFACE_SPARCBIN_H
 


Index: reopt/include/reopt/BinInterface/sparcdis.h
diff -u reopt/include/reopt/BinInterface/sparcdis.h:1.7 reopt/include/reopt/BinInterface/sparcdis.h:1.8
--- reopt/include/reopt/BinInterface/sparcdis.h:1.7	Sat May 31 17:18:49 2003
+++ reopt/include/reopt/BinInterface/sparcdis.h	Fri Aug 22 12:43:36 2003
@@ -1,4 +1,4 @@
-//===--------llvm/Reoptimizer/BinInterface/sparcdis.h-------------*- C++ -*--=//
+//===-- reopt/BinInterface/sparcdis.h ----------------------------*- C++ -*--=//
 //
 //  Disassembler API Header
 //
@@ -14,10 +14,12 @@
 // Todo:
 //   * On the instructions that don't read from RD
 //     do not print the label field (we get l-1 when we print)
+//
 //===----------------------------------------------------------------------===//
 
-#ifndef __SPARCDIS__
-#define __SPARCDIS__
+#ifndef REOPT_BININTERFACE_SPARCDIS_H
+#define REOPT_BININTERFACE_SPARCDIS_H
+
 // Conventional Disassembly.  Prints instruction (no newline)
 void sparc_print(unsigned instr);
 
@@ -27,7 +29,4 @@
 //  instead of printing rxx for rs1, it will print l__labelrs1__
 void sparc_print_pseudo(unsigned instr, int labelrs1, int labelrs2, int labelrd, int labelccf);
 
-
-#endif
-
-
+#endif // REOPT_BININTERFACE_SPARCDIS_H


Index: reopt/include/reopt/BinInterface/sparcpriv.h
diff -u reopt/include/reopt/BinInterface/sparcpriv.h:1.3 reopt/include/reopt/BinInterface/sparcpriv.h:1.4
--- reopt/include/reopt/BinInterface/sparcpriv.h:1.3	Wed Jun  4 04:41:52 2003
+++ reopt/include/reopt/BinInterface/sparcpriv.h	Fri Aug 22 12:43:36 2003
@@ -1,11 +1,11 @@
-//===--------llvm/Reoptimizer/BinInterface/sparcpriv.h------------*- C++ -*--=//
+//===-- reopt/BinInterface/sparcpriv.h ---------------------------*- C++ -*--=//
 //
 // BinInterface private structures and constants
 //
 //===----------------------------------------------------------------------===//
 
-#ifndef __SPARC_PRIV_H__
-#define __SPARC_PRIV_H__
+#ifndef REOPT_BININTERFACE_SPARCPRIV_H
+#define REOPT_BININTERFACE_SPARCPRIV_H
 
 #include <vector>
 using std::vector;
@@ -112,6 +112,4 @@
   };
 };
 
-#endif
-
-
+#endif // REOPT_BININTERFACE_SPARCPRIV_H





More information about the llvm-commits mailing list