diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2008-11-24 03:41:24 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2008-11-24 03:41:24 +0000 |
commit | f5ffcbcd0bd533ace574d57631ee079df73ad35f (patch) | |
tree | e67e88180767e41b0eb30d276a2229a710905ecd /llvm/lib/AsmParser/llvmAsmParser.y | |
parent | e4b95698df99424e287b34c76da92add5a773392 (diff) | |
download | bcm5719-llvm-f5ffcbcd0bd533ace574d57631ee079df73ad35f.tar.gz bcm5719-llvm-f5ffcbcd0bd533ace574d57631ee079df73ad35f.zip |
Extend the 'noalias' attribute to function return values. This is intended to
indicate functions that allocate, such as operator new, or list::insert. The
actual definition is slightly less strict (for now).
No changes to the bitcode reader/writer, asm printer or verifier were needed.
llvm-svn: 59934
Diffstat (limited to 'llvm/lib/AsmParser/llvmAsmParser.y')
-rw-r--r-- | llvm/lib/AsmParser/llvmAsmParser.y | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/AsmParser/llvmAsmParser.y b/llvm/lib/AsmParser/llvmAsmParser.y index af8e3afee3f..8b54251c658 100644 --- a/llvm/lib/AsmParser/llvmAsmParser.y +++ b/llvm/lib/AsmParser/llvmAsmParser.y @@ -1284,9 +1284,10 @@ OptAttributes : /* empty */ { $$ = Attribute::None; } } ; -RetAttr : INREG { $$ = Attribute::InReg; } +RetAttr : INREG { $$ = Attribute::InReg; } | ZEROEXT { $$ = Attribute::ZExt; } | SIGNEXT { $$ = Attribute::SExt; } + | NOALIAS { $$ = Attribute::NoAlias; } ; OptRetAttrs : /* empty */ { $$ = Attribute::None; } |