projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d97bf1
)
add helper
author
Chris Lattner
<sabre@nondot.org>
Mon, 18 Jun 2007 21:50:49 +0000
(21:50 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Mon, 18 Jun 2007 21:50:49 +0000
(21:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37631
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/ParameterAttributes.h
patch
|
blob
|
history
diff --git
a/include/llvm/ParameterAttributes.h
b/include/llvm/ParameterAttributes.h
index dcfe09514117ffb0200c82b00bde4a52ae56a9de..c2d60786c259ff08446b0e228364fb6d4d73ff96 100644
(file)
--- a/
include/llvm/ParameterAttributes.h
+++ b/
include/llvm/ParameterAttributes.h
@@
-47,6
+47,13
@@
enum Attributes {
struct ParamAttrsWithIndex {
uint16_t attrs; ///< The attributes that are set, |'d together
uint16_t index; ///< Index of the parameter for which the attributes apply
+
+ static ParamAttrsWithIndex get(uint16_t idx, uint16_t attrs) {
+ ParamAttrsWithIndex P;
+ P.index = idx;
+ P.attrs = attrs;
+ return P;
+ }
};
/// @brief A vector of attribute/index pairs.