aboutsummaryrefslogtreecommitdiffstats
path: root/lib/AsmParser/llvmAsmParser.y
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2007-11-14 09:52:30 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2007-11-14 09:52:30 +0000
commit3b8a5f3a98a0dc78501f72d61b71821ca1be26e6 (patch)
tree8cebb7acc3eca8f9ae8a7a5a3a0554070941dc81 /lib/AsmParser/llvmAsmParser.y
parent5772c674c773e0c96f6e624000e35840ba56817a (diff)
downloadexternal_llvm-3b8a5f3a98a0dc78501f72d61b71821ca1be26e6.zip
external_llvm-3b8a5f3a98a0dc78501f72d61b71821ca1be26e6.tar.gz
external_llvm-3b8a5f3a98a0dc78501f72d61b71821ca1be26e6.tar.bz2
Add pure/const attributes. Documentation will follow.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44109 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AsmParser/llvmAsmParser.y')
-rw-r--r--lib/AsmParser/llvmAsmParser.y3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/AsmParser/llvmAsmParser.y b/lib/AsmParser/llvmAsmParser.y
index f1c385f..4c9bed0 100644
--- a/lib/AsmParser/llvmAsmParser.y
+++ b/lib/AsmParser/llvmAsmParser.y
@@ -1113,6 +1113,7 @@ Module *llvm::RunVMAsmParser(const char * AsmString, Module * M) {
// Function Attributes
%token SIGNEXT ZEROEXT NORETURN INREG SRET NOUNWIND NOALIAS BYVAL NEST
+%token CONST PURE
// Visibility Styles
%token DEFAULT HIDDEN PROTECTED
@@ -1256,6 +1257,8 @@ FuncAttr : NORETURN { $$ = ParamAttr::NoReturn; }
| NOUNWIND { $$ = ParamAttr::NoUnwind; }
| ZEROEXT { $$ = ParamAttr::ZExt; }
| SIGNEXT { $$ = ParamAttr::SExt; }
+ | PURE { $$ = ParamAttr::Pure; }
+ | CONST { $$ = ParamAttr::Const; }
;
OptFuncAttrs : /* empty */ { $$ = ParamAttr::None; }