forked from OSchip/llvm-project
parent
2daa57894f
commit
16353d6583
|
@ -26,5 +26,8 @@ test:
|
|||
llvm-dis > upgrade.ll -f
|
||||
diff source.ll upgrade.ll > diff.out
|
||||
|
||||
valgrind:
|
||||
valgrind ../../Debug/bin/llvm-upgrade -o /dev/null -f $(TESTCASE)
|
||||
|
||||
$(PROJ_SRC_DIR)/UpgradeParser.h: $(PROJ_SRC_DIR)/UpgradeParser.y
|
||||
$(PROJ_SRC_DIR)/UpgradeParser.cpp: $(PROJ_SRC_DIR)/UpgradeParser.y
|
||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -280,8 +280,10 @@ Types : UpRTypes ;
|
|||
//
|
||||
PrimType : BOOL | SBYTE | UBYTE | SHORT | USHORT | INT | UINT ;
|
||||
PrimType : LONG | ULONG | FLOAT | DOUBLE | LABEL;
|
||||
UpRTypes : OPAQUE | PrimType | SymbolicValueRef {
|
||||
$$.newTy = $1; };
|
||||
UpRTypes : OPAQUE | PrimType
|
||||
| SymbolicValueRef {
|
||||
$$.newTy = $1; $$.oldTy = OpaqueTy;
|
||||
};
|
||||
|
||||
// Include derived types in the Types production.
|
||||
//
|
||||
|
@ -549,12 +551,13 @@ DefinitionList : DefinitionList Function {
|
|||
}
|
||||
| DefinitionList MODULE ASM_TOK AsmBlock {
|
||||
*O << "module asm " << " " << *$4 << "\n";
|
||||
$$ = 0;
|
||||
}
|
||||
| DefinitionList IMPLEMENTATION {
|
||||
*O << "implementation\n";
|
||||
$$ = 0;
|
||||
}
|
||||
| ConstPool {
|
||||
};
|
||||
| ConstPool;
|
||||
|
||||
// ConstPool - Constants with optional names assigned to them.
|
||||
ConstPool : ConstPool OptAssign TYPE TypesV {
|
||||
|
@ -690,9 +693,7 @@ ArgList : ArgListH {
|
|||
| DOTDOTDOT {
|
||||
$$ = $1;
|
||||
}
|
||||
| /* empty */ {
|
||||
$$ = new std::string();
|
||||
};
|
||||
| /* empty */ { $$ = new std::string(); };
|
||||
|
||||
FunctionHeaderH : OptCallingConv TypesV Name '(' ArgList ')'
|
||||
OptSection OptAlign {
|
||||
|
@ -760,10 +761,8 @@ FunctionProto
|
|||
// Rules to match Basic Blocks
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
OptSideEffect : /* empty */ {
|
||||
}
|
||||
| SIDEEFFECT {
|
||||
};
|
||||
OptSideEffect : /* empty */ { $$ = new std::string(); }
|
||||
| SIDEEFFECT;
|
||||
|
||||
ConstValueRef
|
||||
: ESINT64VAL { $$ = $1.cnst; }
|
||||
|
|
|
@ -280,8 +280,10 @@ Types : UpRTypes ;
|
|||
//
|
||||
PrimType : BOOL | SBYTE | UBYTE | SHORT | USHORT | INT | UINT ;
|
||||
PrimType : LONG | ULONG | FLOAT | DOUBLE | LABEL;
|
||||
UpRTypes : OPAQUE | PrimType | SymbolicValueRef {
|
||||
$$.newTy = $1; };
|
||||
UpRTypes : OPAQUE | PrimType
|
||||
| SymbolicValueRef {
|
||||
$$.newTy = $1; $$.oldTy = OpaqueTy;
|
||||
};
|
||||
|
||||
// Include derived types in the Types production.
|
||||
//
|
||||
|
@ -549,12 +551,13 @@ DefinitionList : DefinitionList Function {
|
|||
}
|
||||
| DefinitionList MODULE ASM_TOK AsmBlock {
|
||||
*O << "module asm " << " " << *$4 << "\n";
|
||||
$$ = 0;
|
||||
}
|
||||
| DefinitionList IMPLEMENTATION {
|
||||
*O << "implementation\n";
|
||||
$$ = 0;
|
||||
}
|
||||
| ConstPool {
|
||||
};
|
||||
| ConstPool;
|
||||
|
||||
// ConstPool - Constants with optional names assigned to them.
|
||||
ConstPool : ConstPool OptAssign TYPE TypesV {
|
||||
|
@ -690,9 +693,7 @@ ArgList : ArgListH {
|
|||
| DOTDOTDOT {
|
||||
$$ = $1;
|
||||
}
|
||||
| /* empty */ {
|
||||
$$ = new std::string();
|
||||
};
|
||||
| /* empty */ { $$ = new std::string(); };
|
||||
|
||||
FunctionHeaderH : OptCallingConv TypesV Name '(' ArgList ')'
|
||||
OptSection OptAlign {
|
||||
|
@ -760,10 +761,8 @@ FunctionProto
|
|||
// Rules to match Basic Blocks
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
OptSideEffect : /* empty */ {
|
||||
}
|
||||
| SIDEEFFECT {
|
||||
};
|
||||
OptSideEffect : /* empty */ { $$ = new std::string(); }
|
||||
| SIDEEFFECT;
|
||||
|
||||
ConstValueRef
|
||||
: ESINT64VAL { $$ = $1.cnst; }
|
||||
|
|
Loading…
Reference in New Issue