mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-10-06 14:57:41 +00:00
A few more polygen grammar updates.
- After GlobalAssign, emit addrspace before global/constant, to follow the new syntax. - Eliminate "type void", which is now invalid. - Fix invalid liblists like [, "foo"]. - Tweak whitespace in a few places. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61706 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2182f1f932
commit
8f56ebaf5c
@ -69,7 +69,7 @@ FPType ::= float | double | "ppc_fp128" | fp128 | "x86_fp80";
|
|||||||
LocalName ::= LOCALVAR | STRINGCONSTANT | PCTSTRINGCONSTANT ;
|
LocalName ::= LOCALVAR | STRINGCONSTANT | PCTSTRINGCONSTANT ;
|
||||||
OptLocalName ::= LocalName | _ ;
|
OptLocalName ::= LocalName | _ ;
|
||||||
|
|
||||||
OptAddrSpace ::= - addrspace "(" ^ EUINT64VAL ^ ")" | _ ;
|
OptAddrSpace ::= - addrspace ^ "(" ^ EUINT64VAL ^ ")" | _ ;
|
||||||
|
|
||||||
OptLocalAssign ::= LocalName "=" | _ ;
|
OptLocalAssign ::= LocalName "=" | _ ;
|
||||||
|
|
||||||
@ -261,13 +261,12 @@ Definition
|
|||||||
| declare FunctionProto
|
| declare FunctionProto
|
||||||
| - module asm AsmBlock
|
| - module asm AsmBlock
|
||||||
| OptLocalAssign type Types
|
| OptLocalAssign type Types
|
||||||
| OptLocalAssign type void
|
| OptGlobalAssign GVVisibilityStyle ThreadLocal OptAddrSpace OptAddrSpace
|
||||||
| OptGlobalAssign GVVisibilityStyle ThreadLocal GlobalType ConstVal
|
ConstVal GlobalVarAttributes
|
||||||
OptAddrSpace GlobalVarAttributes
|
| OptGlobalAssign GVInternalLinkage GVVisibilityStyle ThreadLocal OptAddrSpace
|
||||||
| OptGlobalAssign GVInternalLinkage GVVisibilityStyle ThreadLocal GlobalType
|
GlobalType ConstVal GlobalVarAttributes
|
||||||
ConstVal OptAddrSpace GlobalVarAttributes
|
| OptGlobalAssign GVExternalLinkage GVVisibilityStyle ThreadLocal OptAddrSpace
|
||||||
| OptGlobalAssign GVExternalLinkage GVVisibilityStyle ThreadLocal GlobalType
|
GlobalType Types GlobalVarAttributes
|
||||||
Types OptAddrSpace GlobalVarAttributes
|
|
||||||
| OptGlobalAssign GVVisibilityStyle alias AliasLinkage AliaseeRef
|
| OptGlobalAssign GVVisibilityStyle alias AliasLinkage AliaseeRef
|
||||||
| target TargetDefinition
|
| target TargetDefinition
|
||||||
| deplibs "=" LibrariesDefinition
|
| deplibs "=" LibrariesDefinition
|
||||||
@ -278,9 +277,9 @@ AsmBlock ::= STRINGCONSTANT ;
|
|||||||
TargetDefinition ::= triple "=" STRINGCONSTANT
|
TargetDefinition ::= triple "=" STRINGCONSTANT
|
||||||
| datalayout "=" STRINGCONSTANT ;
|
| datalayout "=" STRINGCONSTANT ;
|
||||||
|
|
||||||
LibrariesDefinition ::= "[" LibList "]";
|
LibrariesDefinition ::= "[" ( LibList | _ ) "]";
|
||||||
|
|
||||||
LibList ::= LibList ^ "," STRINGCONSTANT | STRINGCONSTANT | _ ;
|
LibList ::= LibList ^ "," STRINGCONSTANT | STRINGCONSTANT ;
|
||||||
|
|
||||||
ArgListH ::= ArgListH ^ "," Types OptParamAttrs OptLocalName
|
ArgListH ::= ArgListH ^ "," Types OptParamAttrs OptLocalName
|
||||||
| Types OptParamAttrs OptLocalName ;
|
| Types OptParamAttrs OptLocalName ;
|
||||||
@ -288,7 +287,7 @@ ArgListH ::= ArgListH ^ "," Types OptParamAttrs OptLocalName
|
|||||||
ArgList ::= ArgListH | ArgListH ^ "," "..." | "..." | _ ;
|
ArgList ::= ArgListH | ArgListH ^ "," "..." | "..." | _ ;
|
||||||
|
|
||||||
FunctionHeaderH ::= OptCallingConv OptRetAttrs ResultTypes
|
FunctionHeaderH ::= OptCallingConv OptRetAttrs ResultTypes
|
||||||
GlobalName "(" ^ ArgList ^ ")"
|
GlobalName ^ "(" ^ ArgList ^ ")"
|
||||||
OptFuncAttrs OptSection OptAlign OptGC ;
|
OptFuncAttrs OptSection OptAlign OptGC ;
|
||||||
|
|
||||||
BEGIN ::= ( begin | "{" ) ^ "\n";
|
BEGIN ::= ( begin | "{" ) ^ "\n";
|
||||||
|
Loading…
Reference in New Issue
Block a user