diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2005-08-27 19:09:02 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2005-08-27 19:09:02 +0000 |
commit | 0f9beca707b98ecfc7af252c5827958f7ede4c74 (patch) | |
tree | 125285e14c2bf2860d827028b3a4def17d699847 /include | |
parent | 8c4bde36a339b1c538002e819daff84caae4cbad (diff) |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Target/TargetLowering.h | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/include/llvm/Target/TargetLowering.h b/include/llvm/Target/TargetLowering.h index 590de20dc8..7c2839176f 100644 --- a/include/llvm/Target/TargetLowering.h +++ b/include/llvm/Target/TargetLowering.h @@ -210,12 +210,14 @@ public: /// @brief Get maximum # of store operations permitted for llvm.memmove unsigned getMaxStoresPerMemMove() const { return maxStoresPerMemMove; } - /// This function returns true if the target allows unaligned stores. This is - /// used in situations where an array copy/move/set is converted to a sequence - /// of store operations. It ensures that such replacements don't generate - /// code that causes an alignment error (trap) on the target machine. - /// @brief Determine if the target supports unaligned stores. - bool allowsUnalignedStores() const { return allowUnalignedStores; } + /// 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 + /// converted to a sequence of store operations. It's use helps to ensure that + /// such replacements don't generate code that causes an alignment error + /// (trap) on the target machine. + /// @brief Determine if the target supports unaligned memory accesses. + bool allowsUnalignedMemoryAccesses() const + { return allowUnalignedMemoryAccesses; } //===--------------------------------------------------------------------===// // TargetLowering Configuration Methods - These methods should be invoked by @@ -442,11 +444,11 @@ protected: /// @brief Specify maximum bytes of store instructions per memmove call. unsigned maxStoresPerMemMove; - /// This field specifies whether the target machine permits unaligned stores. - /// This is used to determine the size of store operations for copying - /// small arrays and other similar tasks. - /// @brief Indicate whether the target machine permits unaligned stores. - bool allowUnalignedStores; + /// This field specifies whether the target machine permits unaligned memory + /// accesses. This is used, for example, to determine the size of store + /// operations when copying small arrays and other similar tasks. + /// @brief Indicate whether the target permits unaligned memory accesses. + bool allowUnalignedMemoryAccesses; }; } // end llvm namespace |