allow inreg on the result of a function

llvm-svn: 56501
This commit is contained in:
Chris Lattner 2008-09-23 21:18:08 +00:00
parent 92559af851
commit 7f0a77f11d
2 changed files with 2 additions and 1 deletions

View File

@ -48,7 +48,7 @@ const Attributes Alignment = 0xffff<<16; ///< Alignment of parameter (16 bits)
// 0 = unknown, else in clear (not log)
/// @brief Attributes that only apply to function parameters.
const Attributes ParameterOnly = ByVal | InReg | Nest | StructRet;
const Attributes ParameterOnly = ByVal | Nest | StructRet;
/// @brief Attributes that only apply to function return values.
const Attributes ReturnOnly = NoReturn | NoUnwind | ReadNone | ReadOnly;

View File

@ -1282,6 +1282,7 @@ OptParamAttrs : /* empty */ { $$ = ParamAttr::None; }
FuncAttr : NORETURN { $$ = ParamAttr::NoReturn; }
| NOUNWIND { $$ = ParamAttr::NoUnwind; }
| INREG { $$ = ParamAttr::InReg; }
| ZEROEXT { $$ = ParamAttr::ZExt; }
| SIGNEXT { $$ = ParamAttr::SExt; }
| READNONE { $$ = ParamAttr::ReadNone; }