Rename maxStoresPerMemSet to maxStoresPerMemset, etc.
authorEvan Cheng <evan.cheng@apple.com>
Tue, 14 Feb 2006 08:38:30 +0000 (08:38 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Tue, 14 Feb 2006 08:38:30 +0000 (08:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26174 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/TargetLowering.h
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
lib/CodeGen/SelectionDAG/TargetLowering.cpp
lib/Target/X86/X86ISelLowering.cpp

index d69014d3c7224f6c452257d2fa6f5bba47f75bda..73244ce5dbd7597e5253237c1d1641ad2ab62407 100644 (file)
@@ -243,19 +243,19 @@ public:
   /// to replace a call to llvm.memset. The value is set by the target at the
   /// performance threshold for such a replacement.
   /// @brief Get maximum # of store operations permitted for llvm.memset
-  unsigned getMaxStoresPerMemSet() const { return maxStoresPerMemSet; }
+  unsigned getMaxStoresPerMemset() const { return maxStoresPerMemset; }
 
   /// This function returns the maximum number of store operations permitted
   /// to replace a call to llvm.memcpy. The value is set by the target at the
   /// performance threshold for such a replacement.
   /// @brief Get maximum # of store operations permitted for llvm.memcpy
-  unsigned getMaxStoresPerMemCpy() const { return maxStoresPerMemCpy; }
+  unsigned getMaxStoresPerMemcpy() const { return maxStoresPerMemcpy; }
 
   /// This function returns the maximum number of store operations permitted
   /// to replace a call to llvm.memmove. The value is set by the target at the
   /// performance threshold for such a replacement.
   /// @brief Get maximum # of store operations permitted for llvm.memmove
-  unsigned getMaxStoresPerMemMove() const { return maxStoresPerMemMove; }
+  unsigned getMaxStoresPerMemmove() const { return maxStoresPerMemmove; }
 
   /// This function returns true if the target allows unaligned memory accesses.
   /// This is used, for example, in situations where an array copy/move/set is 
@@ -567,7 +567,7 @@ protected:
   /// with 16-bit alignment would result in four 2-byte stores and one 1-byte
   /// store.  This only applies to setting a constant array of a constant size.
   /// @brief Specify maximum number of store instructions per memset call.
-  unsigned maxStoresPerMemSet;
+  unsigned maxStoresPerMemset;
 
   /// When lowering %llvm.memcpy this field specifies the maximum number of
   /// store operations that may be substituted for a call to memcpy. Targets
@@ -579,7 +579,7 @@ protected:
   /// and one 1-byte store. This only applies to copying a constant array of
   /// constant size.
   /// @brief Specify maximum bytes of store instructions per memcpy call.
-  unsigned maxStoresPerMemCpy;
+  unsigned maxStoresPerMemcpy;
 
   /// When lowering %llvm.memmove this field specifies the maximum number of
   /// store instructions that may be substituted for a call to memmove. Targets
@@ -590,7 +590,7 @@ protected:
   /// with 8-bit alignment would result in nine 1-byte stores.  This only
   /// applies to copying a constant array of constant size.
   /// @brief Specify maximum bytes of store instructions per memmove call.
-  unsigned maxStoresPerMemMove;
+  unsigned maxStoresPerMemmove;
 
   /// This field specifies whether the target machine permits unaligned memory
   /// accesses.  This is used, for example, to determine the size of store 
index f472c0ee4ecd60d45e3b8143979be5027ac0aa8c..721cdb2206aae9afd3ab6b054d3645e9dfbd3ead 100644 (file)
@@ -1626,7 +1626,7 @@ void SelectionDAGLowering::visitMemIntrinsic(CallInst &I, unsigned Op) {
     switch (Op) {
     default: ;  // Do nothing for now.
     case ISD::MEMSET: {
-      if (NumMemOps <= TLI.getMaxStoresPerMemSet()) {
+      if (NumMemOps <= TLI.getMaxStoresPerMemset()) {
         unsigned Offset = 0;
         for (unsigned i = 0; i < NumMemOps; i++) {
           MVT::ValueType VT = MemOps[i];
index 068f6a8f5d2c8f77c73693310530b7653c8ef33c..52ad4a55d205b888dbd1c3a3d81f437f884016d6 100644 (file)
@@ -30,7 +30,7 @@ TargetLowering::TargetLowering(TargetMachine &tm)
   ShiftAmountTy = SetCCResultTy = PointerTy = getValueType(TD.getIntPtrType());
   ShiftAmtHandling = Undefined;
   memset(RegClassForVT, 0,MVT::LAST_VALUETYPE*sizeof(TargetRegisterClass*));
-  maxStoresPerMemSet = maxStoresPerMemCpy = maxStoresPerMemMove = 8;
+  maxStoresPerMemset = maxStoresPerMemcpy = maxStoresPerMemmove = 8;
   allowUnalignedMemoryAccesses = false;
   UseUnderscoreSetJmpLongJmp = false;
   IntDivIsCheap = false;
index 73148e6fa03ce1c967a88ec89429e8cc387d2f5f..172b8a128e24a5432ebac27f78d0f6aeb5eeec45 100644 (file)
@@ -253,9 +253,9 @@ X86TargetLowering::X86TargetLowering(TargetMachine &TM)
 
   // FIXME: These should be based on subtarget info. Plus, the values should
   // be smaller when we are in optimizing for size mode.
-  maxStoresPerMemSet = 16; // For %llvm.memset -> sequence of stores
-  maxStoresPerMemCpy = 16; // For %llvm.memcpy -> sequence of stores
-  maxStoresPerMemMove = 16; // For %llvm.memmove -> sequence of stores
+  maxStoresPerMemset = 16; // For %llvm.memset -> sequence of stores
+  maxStoresPerMemcpy = 16; // For %llvm.memcpy -> sequence of stores
+  maxStoresPerMemmove = 16; // For %llvm.memmove -> sequence of stores
   allowUnalignedMemoryAccesses = true; // x86 supports it!
 }