[llvm-commits] CVS: llvm/lib/AsmParser/Lexer.l llvmAsmParser.y

Zhou Sheng zhousheng00 at gmail.com
Mon Jun 4 22:29:02 PDT 2007



Changes in directory llvm/lib/AsmParser:

Lexer.l updated: 1.112 -> 1.113
llvmAsmParser.y updated: 1.358 -> 1.359
---
Log message:

Commit first round work of PR1373: http://llvm.org/PR1373 . "noalias" is now fully supported in 
VMCore, BitCode, and Assembly. Documentation and test case paramattrs.ll
updated also.


---
Diffs of the changes:  (+7 -5)

 Lexer.l         |    1 +
 llvmAsmParser.y |   11 ++++++-----
 2 files changed, 7 insertions(+), 5 deletions(-)


Index: llvm/lib/AsmParser/Lexer.l
diff -u llvm/lib/AsmParser/Lexer.l:1.112 llvm/lib/AsmParser/Lexer.l:1.113
--- llvm/lib/AsmParser/Lexer.l:1.112	Tue May 22 14:07:45 2007
+++ llvm/lib/AsmParser/Lexer.l	Tue Jun  5 00:28:25 2007
@@ -229,6 +229,7 @@
 sret            { return SRET;  }
 nounwind        { return NOUNWIND; }
 noreturn        { return NORETURN; }
+noalias         { return NOALIAS; }
 
 void            { RET_TY(Type::VoidTy,  VOID);  }
 float           { RET_TY(Type::FloatTy, FLOAT); }


Index: llvm/lib/AsmParser/llvmAsmParser.y
diff -u llvm/lib/AsmParser/llvmAsmParser.y:1.358 llvm/lib/AsmParser/llvmAsmParser.y:1.359
--- llvm/lib/AsmParser/llvmAsmParser.y:1.358	Tue May 22 13:52:21 2007
+++ llvm/lib/AsmParser/llvmAsmParser.y	Tue Jun  5 00:28:25 2007
@@ -1101,7 +1101,7 @@
 %token <OtherOpVal> EXTRACTELEMENT INSERTELEMENT SHUFFLEVECTOR
 
 // Function Attributes
-%token NORETURN INREG SRET NOUNWIND
+%token NORETURN INREG SRET NOUNWIND NOALIAS
 
 // Visibility Styles
 %token DEFAULT HIDDEN PROTECTED
@@ -1224,10 +1224,11 @@
                   CHECK_FOR_ERROR
                  };
 
-ParamAttr     : ZEXT  { $$ = ParamAttr::ZExt;      }
-              | SEXT  { $$ = ParamAttr::SExt;      }
-              | INREG { $$ = ParamAttr::InReg;     }
-              | SRET  { $$ = ParamAttr::StructRet; }
+ParamAttr     : ZEXT    { $$ = ParamAttr::ZExt;      }
+              | SEXT    { $$ = ParamAttr::SExt;      }
+              | INREG   { $$ = ParamAttr::InReg;     }
+              | SRET    { $$ = ParamAttr::StructRet; }
+              | NOALIAS { $$ = ParamAttr::NoAlias;   }
               ;
 
 OptParamAttrs : /* empty */  { $$ = ParamAttr::None; }






More information about the llvm-commits mailing list