diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Attributes.h | 16 | ||||
-rw-r--r-- | include/llvm/Function.h | 2 | ||||
-rw-r--r-- | include/llvm/Instructions.h | 8 | ||||
-rw-r--r-- | include/llvm/Support/CallSite.h | 4 |
4 files changed, 15 insertions, 15 deletions
diff --git a/include/llvm/Attributes.h b/include/llvm/Attributes.h index 5adbb49..0975d1a 100644 --- a/include/llvm/Attributes.h +++ b/include/llvm/Attributes.h @@ -53,7 +53,7 @@ public: /// an exception might pass by. /// uwtable + nounwind = Needs an entry because the ABI says so. - enum AttrVal { + enum AttrKind { // IR-Level Attributes None, ///< No attributes have been set AddressSafety, ///< Address safety checking is on. @@ -100,11 +100,11 @@ public: /// \brief Return a uniquified Attribute object. This takes the uniquified /// value from the Builder and wraps it in the Attribute class. - static Attribute get(LLVMContext &Context, ArrayRef<AttrVal> Vals); + static Attribute get(LLVMContext &Context, ArrayRef<AttrKind> Vals); static Attribute get(LLVMContext &Context, AttrBuilder &B); /// \brief Return true if the attribute is present. - bool hasAttribute(AttrVal Val) const; + bool hasAttribute(AttrKind Val) const; /// \brief Return true if attributes exist bool hasAttributes() const; @@ -165,10 +165,10 @@ public: void clear() { Bits = 0; } /// addAttribute - Add an attribute to the builder. - AttrBuilder &addAttribute(Attribute::AttrVal Val); + AttrBuilder &addAttribute(Attribute::AttrKind Val); /// removeAttribute - Remove an attribute from the builder. - AttrBuilder &removeAttribute(Attribute::AttrVal Val); + AttrBuilder &removeAttribute(Attribute::AttrKind Val); /// addAttribute - Add the attributes from A to the builder. AttrBuilder &addAttributes(const Attribute &A); @@ -177,7 +177,7 @@ public: AttrBuilder &removeAttributes(const Attribute &A); /// contains - Return true if the builder has the specified attribute. - bool hasAttribute(Attribute::AttrVal A) const; + bool hasAttribute(Attribute::AttrKind A) const; /// hasAttributes - Return true if the builder has IR-level attributes. bool hasAttributes() const; @@ -252,7 +252,7 @@ struct AttributeWithIndex { ///< Index ~0U is used for function attributes. static AttributeWithIndex get(LLVMContext &C, unsigned Idx, - ArrayRef<Attribute::AttrVal> Attrs) { + ArrayRef<Attribute::AttrKind> Attrs) { return get(Idx, Attribute::get(C, Attrs)); } static AttributeWithIndex get(unsigned Idx, Attribute Attrs) { @@ -343,7 +343,7 @@ public: /// \brief Return true if the specified attribute is set for at least one /// parameter or for the return value. - bool hasAttrSomewhere(Attribute::AttrVal Attr) const; + bool hasAttrSomewhere(Attribute::AttrKind Attr) const; unsigned getNumAttrs() const; Attribute &getAttributesAtIndex(unsigned i) const; diff --git a/include/llvm/Function.h b/include/llvm/Function.h index f665db2..98be4a9 100644 --- a/include/llvm/Function.h +++ b/include/llvm/Function.h @@ -176,7 +176,7 @@ public: /// addFnAttr - Add function attributes to this function. /// - void addFnAttr(Attribute::AttrVal N) { + void addFnAttr(Attribute::AttrKind N) { // Function Attribute are stored at ~0 index addAttribute(AttributeSet::FunctionIndex, Attribute::get(getContext(), N)); } diff --git a/include/llvm/Instructions.h b/include/llvm/Instructions.h index b8ce3a3..e5faf6e 100644 --- a/include/llvm/Instructions.h +++ b/include/llvm/Instructions.h @@ -1278,10 +1278,10 @@ public: void removeAttribute(unsigned i, Attribute attr); /// \brief Determine whether this call has the given attribute. - bool hasFnAttr(Attribute::AttrVal A) const; + bool hasFnAttr(Attribute::AttrKind A) const; /// \brief Determine whether the call or the callee has the given attributes. - bool paramHasAttr(unsigned i, Attribute::AttrVal A) const; + bool paramHasAttr(unsigned i, Attribute::AttrKind A) const; /// \brief Extract the alignment for a call or parameter (0=unknown). unsigned getParamAlignment(unsigned i) const { @@ -3034,10 +3034,10 @@ public: void removeAttribute(unsigned i, Attribute attr); /// \brief Determine whether this call has the NoAlias attribute. - bool hasFnAttr(Attribute::AttrVal A) const; + bool hasFnAttr(Attribute::AttrKind A) const; /// \brief Determine whether the call or the callee has the given attributes. - bool paramHasAttr(unsigned i, Attribute::AttrVal A) const; + bool paramHasAttr(unsigned i, Attribute::AttrKind A) const; /// \brief Extract the alignment for a call or parameter (0=unknown). unsigned getParamAlignment(unsigned i) const { diff --git a/include/llvm/Support/CallSite.h b/include/llvm/Support/CallSite.h index f05cee0..4d03140 100644 --- a/include/llvm/Support/CallSite.h +++ b/include/llvm/Support/CallSite.h @@ -185,12 +185,12 @@ public: } /// \brief Return true if this function has the given attribute. - bool hasFnAttr(Attribute::AttrVal A) const { + bool hasFnAttr(Attribute::AttrKind A) const { CALLSITE_DELEGATE_GETTER(hasFnAttr(A)); } /// \brief Return true if the call or the callee has the given attribute. - bool paramHasAttr(unsigned i, Attribute::AttrVal A) const { + bool paramHasAttr(unsigned i, Attribute::AttrKind A) const { CALLSITE_DELEGATE_GETTER(paramHasAttr(i, A)); } |