[llvm-commits] CVS: llvm/lib/AsmParser/llvmAsmParser.y
Christopher Lamb
christopher.lamb at gmail.com
Sun Apr 22 12:25:07 PDT 2007
Changes in directory llvm/lib/AsmParser:
llvmAsmParser.y updated: 1.346 -> 1.347
---
Log message:
PR400: http://llvm.org/PR400 work phase 1. Add attributed load/store instructions for volatile/align to LLVM.
---
Diffs of the changes: (+4 -4)
llvmAsmParser.y | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
Index: llvm/lib/AsmParser/llvmAsmParser.y
diff -u llvm/lib/AsmParser/llvmAsmParser.y:1.346 llvm/lib/AsmParser/llvmAsmParser.y:1.347
--- llvm/lib/AsmParser/llvmAsmParser.y:1.346 Sun Apr 22 00:46:44 2007
+++ llvm/lib/AsmParser/llvmAsmParser.y Sun Apr 22 14:24:39 2007
@@ -2940,7 +2940,7 @@
CHECK_FOR_ERROR
}
- | OptVolatile LOAD Types ValueRef {
+ | OptVolatile LOAD Types ValueRef OptCAlign {
if (!UpRefs.empty())
GEN_ERROR("Invalid upreference in type: " + (*$3)->getDescription());
if (!isa<PointerType>($3->get()))
@@ -2951,10 +2951,10 @@
(*$3)->getDescription());
Value* tmpVal = getVal(*$3, $4);
CHECK_FOR_ERROR
- $$ = new LoadInst(tmpVal, "", $1);
+ $$ = new LoadInst(tmpVal, "", $1, $5);
delete $3;
}
- | OptVolatile STORE ResolvedVal ',' Types ValueRef {
+ | OptVolatile STORE ResolvedVal ',' Types ValueRef OptCAlign {
if (!UpRefs.empty())
GEN_ERROR("Invalid upreference in type: " + (*$5)->getDescription());
const PointerType *PT = dyn_cast<PointerType>($5->get());
@@ -2968,7 +2968,7 @@
Value* tmpVal = getVal(*$5, $6);
CHECK_FOR_ERROR
- $$ = new StoreInst($3, tmpVal, $1);
+ $$ = new StoreInst($3, tmpVal, $1, $7);
delete $5;
}
| GETELEMENTPTR Types ValueRef IndexList {
More information about the llvm-commits
mailing list