mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-14 15:39:00 +00:00
Change the names of member variables per Chris' instructions, and document
them more clearly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23118 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8c4bde36a3
commit
0f9beca707
@ -210,12 +210,14 @@ public:
|
|||||||
/// @brief Get maximum # of store operations permitted for llvm.memmove
|
/// @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 stores. This is
|
/// This function returns true if the target allows unaligned memory accesses.
|
||||||
/// used in situations where an array copy/move/set is converted to a sequence
|
/// This is used, for example, in situations where an array copy/move/set is
|
||||||
/// of store operations. It ensures that such replacements don't generate
|
/// converted to a sequence of store operations. It's use helps to ensure that
|
||||||
/// code that causes an alignment error (trap) on the target machine.
|
/// such replacements don't generate code that causes an alignment error
|
||||||
/// @brief Determine if the target supports unaligned stores.
|
/// (trap) on the target machine.
|
||||||
bool allowsUnalignedStores() const { return allowUnalignedStores; }
|
/// @brief Determine if the target supports unaligned memory accesses.
|
||||||
|
bool allowsUnalignedMemoryAccesses() const
|
||||||
|
{ return allowUnalignedMemoryAccesses; }
|
||||||
|
|
||||||
//===--------------------------------------------------------------------===//
|
//===--------------------------------------------------------------------===//
|
||||||
// TargetLowering Configuration Methods - These methods should be invoked by
|
// TargetLowering Configuration Methods - These methods should be invoked by
|
||||||
@ -442,11 +444,11 @@ protected:
|
|||||||
/// @brief Specify maximum bytes of store instructions per memmove call.
|
/// @brief Specify maximum bytes of store instructions per memmove call.
|
||||||
unsigned maxStoresPerMemMove;
|
unsigned maxStoresPerMemMove;
|
||||||
|
|
||||||
/// This field specifies whether the target machine permits unaligned stores.
|
/// This field specifies whether the target machine permits unaligned memory
|
||||||
/// This is used to determine the size of store operations for copying
|
/// accesses. This is used, for example, to determine the size of store
|
||||||
/// small arrays and other similar tasks.
|
/// operations when copying small arrays and other similar tasks.
|
||||||
/// @brief Indicate whether the target machine permits unaligned stores.
|
/// @brief Indicate whether the target permits unaligned memory accesses.
|
||||||
bool allowUnalignedStores;
|
bool allowUnalignedMemoryAccesses;
|
||||||
};
|
};
|
||||||
} // end llvm namespace
|
} // end llvm namespace
|
||||||
|
|
||||||
|
@ -27,8 +27,8 @@ TargetLowering::TargetLowering(TargetMachine &tm)
|
|||||||
ShiftAmountTy = SetCCResultTy = PointerTy = getValueType(TD.getIntPtrType());
|
ShiftAmountTy = SetCCResultTy = PointerTy = getValueType(TD.getIntPtrType());
|
||||||
ShiftAmtHandling = Undefined;
|
ShiftAmtHandling = Undefined;
|
||||||
memset(RegClassForVT, 0,MVT::LAST_VALUETYPE*sizeof(TargetRegisterClass*));
|
memset(RegClassForVT, 0,MVT::LAST_VALUETYPE*sizeof(TargetRegisterClass*));
|
||||||
maxStoresPerMemSet = maxStoresPerMemCpy = maxStoresPerMemMove = 0;
|
maxStoresPerMemSet = maxStoresPerMemCpy = maxStoresPerMemMove = 8;
|
||||||
allowUnalignedStores = false;
|
allowUnalignedMemoryAccesses = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
TargetLowering::~TargetLowering() {}
|
TargetLowering::~TargetLowering() {}
|
||||||
|
Loading…
Reference in New Issue
Block a user