diff options
author | Chris Lattner <sabre@nondot.org> | 2008-09-23 21:18:08 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-09-23 21:18:08 +0000 |
commit | 013766707b2721cb2c4b73615c4478ae5b68057b (patch) | |
tree | 801fd8345b5168c068c7ac0d7ab01358d1cab6ff | |
parent | 086ec9976ff6cee083de618429c78473491d5713 (diff) | |
download | llvm-013766707b2721cb2c4b73615c4478ae5b68057b.tar.gz llvm-013766707b2721cb2c4b73615c4478ae5b68057b.tar.bz2 llvm-013766707b2721cb2c4b73615c4478ae5b68057b.tar.xz |
allow inreg on the result of a function
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56501 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/ParameterAttributes.h | 2 | ||||
-rw-r--r-- | lib/AsmParser/llvmAsmParser.y | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/ParameterAttributes.h b/include/llvm/ParameterAttributes.h index 919c460337..16f798ee2a 100644 --- a/include/llvm/ParameterAttributes.h +++ b/include/llvm/ParameterAttributes.h @@ -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; diff --git a/lib/AsmParser/llvmAsmParser.y b/lib/AsmParser/llvmAsmParser.y index edc84c1fa1..a298dde434 100644 --- a/lib/AsmParser/llvmAsmParser.y +++ b/lib/AsmParser/llvmAsmParser.y @@ -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; } |