]> granicus.if.org Git - llvm/commit
[IR] Add additional addParamAttr/removeParamAttr to AttributeList API
authorReid Kleckner <rnk@google.com>
Wed, 31 May 2017 19:23:09 +0000 (19:23 +0000)
committerReid Kleckner <rnk@google.com>
Wed, 31 May 2017 19:23:09 +0000 (19:23 +0000)
commit1e9afac22cac7385bbc1b0357046b18d89044ac0
tree0f1b5d2e4608802b9407922365afa8ad44d87388
parentc469be384cbd573c05d7456be95eb9ddbfc3c1b4
[IR] Add additional addParamAttr/removeParamAttr to AttributeList API

Summary:
Fairly straightforward patch to fill in some of the holes in the
attributes API with respect to accessing parameter/argument attributes.
The patch aims to step further towards encapsulating the
idx+FirstArgIndex pattern to access these attributes to within the
AttributeList.

Patch by Daniel Neilson!

Reviewers: rnk, chandlerc, pete, javed.absar, reames

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D33355

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@304329 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/Attributes.h
include/llvm/IR/Function.h
include/llvm/IR/Instructions.h
lib/IR/Attributes.cpp
lib/IR/Function.cpp
lib/IR/Instructions.cpp
lib/Transforms/InstCombine/InstCombineCalls.cpp
lib/Transforms/Scalar/CorrelatedValuePropagation.cpp