diff options
author | Chris Lattner <sabre@nondot.org> | 2011-10-11 23:01:39 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2011-10-11 23:01:39 +0000 |
commit | 6509f50c69b26b88a77bcae6b9ba84c7e6122b73 (patch) | |
tree | 8af1e4ede74fafe91f8e5dc5c4b297d1b1693829 /include | |
parent | 6618a241f7ba2571a1a55b3733c4441d467baf42 (diff) | |
download | external_llvm-6509f50c69b26b88a77bcae6b9ba84c7e6122b73.zip external_llvm-6509f50c69b26b88a77bcae6b9ba84c7e6122b73.tar.gz external_llvm-6509f50c69b26b88a77bcae6b9ba84c7e6122b73.tar.bz2 |
improve some of the documentation around target data layout strings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141733 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Target/TargetData.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/Target/TargetData.h b/include/llvm/Target/TargetData.h index e34094d..26fd187 100644 --- a/include/llvm/Target/TargetData.h +++ b/include/llvm/Target/TargetData.h @@ -44,6 +44,7 @@ enum AlignTypeEnum { AGGREGATE_ALIGN = 'a', ///< Aggregate alignment STACK_ALIGN = 's' ///< Stack objects alignment }; + /// Target alignment element. /// /// Stores the alignment data associated with a given alignment type (pointer, @@ -64,6 +65,12 @@ struct TargetAlignElem { bool operator==(const TargetAlignElem &rhs) const; }; +/// TargetData - This class holds a parsed version of the target data layout +/// string in a module and provides methods for querying it. The target data +/// layout string is specified *by the target* - a frontend generating LLVM IR +/// is required to generate the right target data for the target being codegen'd +/// to. If some measure of portability is desired, an empty string may be +/// specified in the module. class TargetData : public ImmutablePass { private: bool LittleEndian; ///< Defaults to false |