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

Chris Lattner sabre at nondot.org
Fri Oct 6 15:46:48 PDT 2006



Changes in directory llvm/include/llvm/Target:

TargetLowering.h updated: 1.79 -> 1.80
---
Log message:

Add support for targets to declare that they use a GOT


---
Diffs of the changes:  (+11 -0)

 TargetLowering.h |   11 +++++++++++
 1 files changed, 11 insertions(+)


Index: llvm/include/llvm/Target/TargetLowering.h
diff -u llvm/include/llvm/Target/TargetLowering.h:1.79 llvm/include/llvm/Target/TargetLowering.h:1.80
--- llvm/include/llvm/Target/TargetLowering.h:1.79	Tue Oct  3 19:50:21 2006
+++ llvm/include/llvm/Target/TargetLowering.h	Fri Oct  6 17:46:34 2006
@@ -85,6 +85,10 @@
   MVT::ValueType getShiftAmountTy() const { return ShiftAmountTy; }
   OutOfRangeShiftAmount getShiftAmountFlavor() const {return ShiftAmtHandling; }
 
+  /// usesGlobalOffsetTable - Return true if this target uses a GOT for PIC
+  /// codegen.
+  bool usesGlobalOffsetTable() const { return UsesGlobalOffsetTable; }
+  
   /// isSetCCExpensive - Return true if the setcc operation is expensive for
   /// this target.
   bool isSetCCExpensive() const { return SetCCIsExpensive; }
@@ -469,6 +473,9 @@
   //
 
 protected:
+  /// setUsesGlobalOffsetTable - Specify that this target does or doesn't use a
+  /// GOT for PC-relative code.
+  void setUsesGlobalOffsetTable(bool V) { UsesGlobalOffsetTable = V; }
 
   /// setShiftAmountType - Describe the type that should be used for shift
   /// amounts.  This type defaults to the pointer type.
@@ -731,6 +738,10 @@
   ///
   MVT::ValueType PointerTy;
 
+  /// UsesGlobalOffsetTable - True if this target uses a GOT for PIC codegen.
+  ///
+  bool UsesGlobalOffsetTable;
+  
   /// ShiftAmountTy - The type to use for shift amounts, usually i8 or whatever
   /// PointerTy is.
   MVT::ValueType ShiftAmountTy;






More information about the llvm-commits mailing list