From d777398ee4244a5f7877c72794c8abc8696ba81a Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Thu, 4 Oct 2012 06:52:09 +0000 Subject: Add method to query for 'NoAlias' attribute on call/invoke instructions. llvm-svn: 165208 --- llvm/include/llvm/Instructions.h | 2 ++ llvm/include/llvm/Support/CallSite.h | 3 +++ 2 files changed, 5 insertions(+) (limited to 'llvm/include') 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 { -- cgit v1.2.3