diff options
| author | Bill Wendling <isanbard@gmail.com> | 2012-10-04 06:52:09 +0000 |
|---|---|---|
| committer | Bill Wendling <isanbard@gmail.com> | 2012-10-04 06:52:09 +0000 |
| commit | d777398ee4244a5f7877c72794c8abc8696ba81a (patch) | |
| tree | bf515397ae9673dc52f24b6019a49ae02d8c1c97 /llvm/include | |
| parent | d0935f7069ad367568b4b6f9034221b51fa4bdd6 (diff) | |
| download | bcm5719-llvm-d777398ee4244a5f7877c72794c8abc8696ba81a.tar.gz bcm5719-llvm-d777398ee4244a5f7877c72794c8abc8696ba81a.zip | |
Add method to query for 'NoAlias' attribute on call/invoke instructions.
llvm-svn: 165208
Diffstat (limited to 'llvm/include')
| -rw-r--r-- | llvm/include/llvm/Instructions.h | 2 | ||||
| -rw-r--r-- | llvm/include/llvm/Support/CallSite.h | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/llvm/include/llvm/Instructions.h b/llvm/include/llvm/Instructions.h index a607c84c5bc..711bced70ff 100644 --- a/llvm/include/llvm/Instructions.h +++ b/llvm/include/llvm/Instructions.h @@ -1279,6 +1279,7 @@ public: bool paramHasStructRetAttr(unsigned i) const; bool paramHasNestAttr(unsigned i) const; bool paramHasByValAttr(unsigned i) const; + bool paramHasNoAliasAttr(unsigned i) const; /// @brief Determine whether the call or the callee has the given attribute. bool paramHasAttr(unsigned i, Attributes attr) const; @@ -3049,6 +3050,7 @@ public: bool paramHasStructRetAttr(unsigned i) const; bool paramHasNestAttr(unsigned i) const; bool paramHasByValAttr(unsigned i) const; + bool paramHasNoAliasAttr(unsigned i) const; /// @brief Determine whether the call or the callee has the given attribute. bool paramHasAttr(unsigned i, Attributes attr) const; diff --git a/llvm/include/llvm/Support/CallSite.h b/llvm/include/llvm/Support/CallSite.h index 3e1a2f58227..98c48d9aaaf 100644 --- a/llvm/include/llvm/Support/CallSite.h +++ b/llvm/include/llvm/Support/CallSite.h @@ -208,6 +208,9 @@ public: bool paramHasByValAttr(unsigned i) const { CALLSITE_DELEGATE_GETTER(paramHasByValAttr(i)); } + bool paramHasNoAliasAttr(unsigned i) const { + CALLSITE_DELEGATE_GETTER(paramHasNoAliasAttr(i)); + } /// paramHasAttr - whether the call or the callee has the given attribute. bool paramHasAttr(uint16_t i, Attributes attr) const { |

