diff options
author | Eric Christopher <echristo@gmail.com> | 2015-01-26 19:19:04 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2015-01-26 19:19:04 +0000 |
commit | afb6a4fe7f248d8903e07062811d58f7a96ba6b1 (patch) | |
tree | 515568380e9a039a2e69a76ade63cef4405256f5 /include | |
parent | 48e872230d2a67639b365876958c87bb4637d681 (diff) |
Add a FIXME about preferred alignment to DataLayout.
Essentially DataLayout is global and affects the layout of ABI
level objects. Preferred alignment could change on a per function
basis as we change CPU features.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227118 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/IR/DataLayout.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/IR/DataLayout.h b/include/llvm/IR/DataLayout.h index a9e75955ce7..9479ba487c2 100644 --- a/include/llvm/IR/DataLayout.h +++ b/include/llvm/IR/DataLayout.h @@ -53,6 +53,11 @@ enum AlignTypeEnum { AGGREGATE_ALIGN = 'a' }; +// FIXME: Currently the DataLayout string carries a "preferred alignment" +// for types. As the DataLayout is module/global, this should likely be +// sunk down to an FTTI element that is queried rather than a global +// preference. + /// \brief Layout alignment element. /// /// Stores the alignment data associated with a given alignment type (integer, |