commit | 331b9af31da4402db1d08bf38bf4ef653f60d981 | [log] [tgz] |
---|---|---|
author | Reid Kleckner <rnk@google.com> | Fri Apr 28 18:37:16 2017 +0000 |
committer | Reid Kleckner <rnk@google.com> | Fri Apr 28 18:37:16 2017 +0000 |
tree | 31ea65fa54c978120f289bc5f985b78aba4e6f27 | |
parent | 4e397d9e3388bdc86fc06a5f246dbc94e3f9c473 [diff] |
Use Argument::hasAttribute and AttributeList::ReturnIndex more This eliminates many extra 'Idx' induction variables in loops over arguments in CodeGen/ and Target/. It also reduces the number of places where we assume that ReturnIndex is 0 and that we should add one to argument numbers to get the corresponding attribute list index. NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301666 91177308-0d34-0410-b5e6-96231b3b80d8