diff options
author | Dan Gohman <gohman@apple.com> | 2009-07-27 21:53:46 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-07-27 21:53:46 +0000 |
commit | dd8004dc73d091ccb3927dbbc3b41639a3738ae3 (patch) | |
tree | 635ee4ff5a89aefb2eb5ba8394207f65c8771bcf /lib/VMCore/AsmWriter.cpp | |
parent | 9a7e2ccf574368b60455f8c8975030475a1f3ce0 (diff) | |
download | llvm-dd8004dc73d091ccb3927dbbc3b41639a3738ae3.tar.gz llvm-dd8004dc73d091ccb3927dbbc3b41639a3738ae3.tar.bz2 llvm-dd8004dc73d091ccb3927dbbc3b41639a3738ae3.tar.xz |
Add a new keyword 'inbounds' for use with getelementptr. See the
LangRef.html changes for details.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77259 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/AsmWriter.cpp')
-rw-r--r-- | lib/VMCore/AsmWriter.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index 11d238eba2..8242d8155b 100644 --- a/lib/VMCore/AsmWriter.cpp +++ b/lib/VMCore/AsmWriter.cpp @@ -854,6 +854,9 @@ static void WriteOptimizationInfo(raw_ostream &Out, const User *U) { } else if (const SDivOperator *Div = dyn_cast<SDivOperator>(U)) { if (Div->isExact()) Out << " exact"; + } else if (const GEPOperator *GEP = dyn_cast<GEPOperator>(U)) { + if (GEP->isInBounds()) + Out << " inbounds"; } } |