diff options
author | Dan Gohman <gohman@apple.com> | 2008-07-08 23:46:32 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-07-08 23:46:32 +0000 |
commit | 9c6e70eca9a49c146b26621cbcbb9464ceeac024 (patch) | |
tree | 8cd3c3d3f6d1463ea9590acdff3ce3f62bac3510 /include/llvm/CodeGen/SelectionDAG.h | |
parent | 0966f0f0e4902481b2d0e4d65813a5d32207192c (diff) |
Factor out the code for computing an alignment value, and make it
available to getAtomic in addition to just getLoad and getStore,
to prevent MachineMemOperands with 0 alignment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53261 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/SelectionDAG.h')
-rw-r--r-- | include/llvm/CodeGen/SelectionDAG.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/SelectionDAG.h b/include/llvm/CodeGen/SelectionDAG.h index d31bb4e54e..a2da43f83e 100644 --- a/include/llvm/CodeGen/SelectionDAG.h +++ b/include/llvm/CodeGen/SelectionDAG.h @@ -654,6 +654,8 @@ private: void *&InsertPos); void DeleteNodeNotInCSEMaps(SDNode *N); + + unsigned getMVTAlignment(MVT MemoryVT) const; // List of non-single value types. std::list<std::vector<MVT> > VTList; |