[llvm-commits] CVS: llvm/include/llvm/Target/TargetData.h TargetMachine.h

Chris Lattner lattner at cs.uiuc.edu
Sat Apr 26 15:12:22 PDT 2003


Changes in directory llvm/include/llvm/Target:

TargetData.h updated: 1.16 -> 1.17
TargetMachine.h updated: 1.29 -> 1.30

---
Log message:

Remove two fields from TargetData which are target specific.


---
Diffs of the changes:

Index: llvm/include/llvm/Target/TargetData.h
diff -u llvm/include/llvm/Target/TargetData.h:1.16 llvm/include/llvm/Target/TargetData.h:1.17
--- llvm/include/llvm/Target/TargetData.h:1.16	Fri Apr 25 00:23:27 2003
+++ llvm/include/llvm/Target/TargetData.h	Sat Apr 26 15:10:54 2003
@@ -24,7 +24,6 @@
 
 class TargetData : public ImmutablePass {
   bool          LittleEndian;          // Defaults to false
-  unsigned char SubWordDataSize;       // Defaults to 1 byte (no rounding up)
   unsigned char ByteAlignment;         // Defaults to 1 bytes
   unsigned char ShortAlignment;        // Defaults to 2 bytes
   unsigned char IntAlignment;          // Defaults to 4 bytes
@@ -32,7 +31,6 @@
   unsigned char FloatAlignment;        // Defaults to 4 bytes
   unsigned char DoubleAlignment;       // Defaults to 8 bytes
   unsigned char PointerSize;           // Defaults to 8 bytes
-  unsigned char IntegerRegSize;        // Defaults to PointerSize = 8 bytes
   unsigned char PointerAlignment;      // Defaults to 8 bytes
   AnnotationID  AID;                   // AID for structure layout annotation
  
@@ -40,8 +38,6 @@
 public:
   TargetData(const std::string &TargetName = "",
              bool LittleEndian = false,
-             unsigned char SubWordDataSize = 1,
-             unsigned char IntRegSize = 8,
              unsigned char PtrSize = 8,
 	     unsigned char PtrAl = 8, unsigned char DoubleAl = 8,
 	     unsigned char FloatAl = 4, unsigned char LongAl = 8, 
@@ -55,7 +51,6 @@
   bool          isBigEndian()         const { return    !LittleEndian; }
 
   /// Target alignment constraints
-  unsigned char getSubWordDataSize()  const { return  SubWordDataSize; }
   unsigned char getByteAlignment()    const { return    ByteAlignment; }
   unsigned char getShortAlignment()   const { return   ShortAlignment; }
   unsigned char getIntAlignment()     const { return     IntAlignment; }
@@ -64,7 +59,6 @@
   unsigned char getDoubleAlignment()  const { return  DoubleAlignment; }
   unsigned char getPointerAlignment() const { return PointerAlignment; }
   unsigned char getPointerSize()      const { return      PointerSize; }
-  unsigned char getIntegerRegSize()   const { return   IntegerRegSize; }
   AnnotationID  getStructLayoutAID()  const { return AID; }
 
   // getTypeSize - Return the number of bytes neccesary to hold the specified


Index: llvm/include/llvm/Target/TargetMachine.h
diff -u llvm/include/llvm/Target/TargetMachine.h:1.29 llvm/include/llvm/Target/TargetMachine.h:1.30
--- llvm/include/llvm/Target/TargetMachine.h:1.29	Sun Jan 12 18:21:32 2003
+++ llvm/include/llvm/Target/TargetMachine.h	Sat Apr 26 15:10:54 2003
@@ -35,12 +35,11 @@
 protected:
   TargetMachine(const std::string &name, // Can only create subclasses...
 		bool LittleEndian = false,
-                unsigned char SubWordSize = 1, unsigned char IntRegSize = 8,
 		unsigned char PtrSize = 8, unsigned char PtrAl = 8,
 		unsigned char DoubleAl = 8, unsigned char FloatAl = 4,
 		unsigned char LongAl = 8, unsigned char IntAl = 4,
 		unsigned char ShortAl = 2, unsigned char ByteAl = 1)
-    : Name(name), DataLayout(name, LittleEndian, SubWordSize, IntRegSize,
+    : Name(name), DataLayout(name, LittleEndian,
 			     PtrSize, PtrAl, DoubleAl, FloatAl, LongAl,
                              IntAl, ShortAl, ByteAl) {}
 public:





More information about the llvm-commits mailing list