diff options
author | Reid Spencer <reid@x10sys.com> | 2007-07-31 06:37:27 +0000 |
---|---|---|
committer | Reid Spencer <reid@x10sys.com> | 2007-07-31 06:37:27 +0000 |
commit | 24c6927c529611d803a4b0ed97b4d2828798fa6d (patch) | |
tree | 4daf0f1ac6f742ef2290f73bcfefae1bcdaca633 /lib/AsmParser | |
parent | 6af6fd6beeffaff4cf60746a9a2f381c856320f2 (diff) | |
download | external_llvm-24c6927c529611d803a4b0ed97b4d2828798fa6d.zip external_llvm-24c6927c529611d803a4b0ed97b4d2828798fa6d.tar.gz external_llvm-24c6927c529611d803a4b0ed97b4d2828798fa6d.tar.bz2 |
Allow the INREG parameter attribute to be added to functions. This permits the
function result to be passed in a register. This implements the GCC regparm
function attribute for llvm by translation to the InReg parameter attribute
and fixes test/CFrontend/2002-07-30-SubregSetAssertion.c
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40619 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AsmParser')
-rw-r--r-- | lib/AsmParser/llvmAsmParser.y | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/AsmParser/llvmAsmParser.y b/lib/AsmParser/llvmAsmParser.y index fd2713f..584eb8f 100644 --- a/lib/AsmParser/llvmAsmParser.y +++ b/lib/AsmParser/llvmAsmParser.y @@ -1245,6 +1245,7 @@ FuncAttr : NORETURN { $$ = ParamAttr::NoReturn; } | NOUNWIND { $$ = ParamAttr::NoUnwind; } | ZEROEXT { $$ = ParamAttr::ZExt; } | SIGNEXT { $$ = ParamAttr::SExt; } + | INREG { $$ = ParamAttr::InReg; } ; OptFuncAttrs : /* empty */ { $$ = ParamAttr::None; } |