File tree Expand file tree Collapse file tree 5 files changed +1983
-1958
lines changed Expand file tree Collapse file tree 5 files changed +1983
-1958
lines changed Original file line number Diff line number Diff line change @@ -2213,10 +2213,10 @@ public void WriteAssembly (string path)
2213
2213
if ( hasEntryPoint ) {
2214
2214
var text = @"{
2215
2215
""runtimeOptions"": {
2216
- ""tfm"": ""netcoreapp2.1 "",
2216
+ ""tfm"": ""net6.0 "",
2217
2217
""framework"": {
2218
2218
""name"": ""Microsoft.NETCore.App"",
2219
- ""version"": ""2.1 .0""
2219
+ ""version"": ""6.0 .0""
2220
2220
}
2221
2221
}
2222
2222
}
Original file line number Diff line number Diff line change @@ -122,6 +122,7 @@ public enum ParameterAttributes
122
122
NoAlias = 1 << 10 ,
123
123
Align8 = 1 << 11 ,
124
124
Byval = 1 << 12 ,
125
+ NoUndef = 1 << 13 ,
125
126
}
126
127
127
128
public class FunctionDeclaration
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ namespace Iril.IR
40
40
%token FCMP OEQ OGT OGE OLT OLE ONE ORD UEQ UNE UNO
41
41
%token PHI SELECT CALL TAIL VA_ARG ASM SIDEEFFECT
42
42
%token LANDINGPAD CATCH CATCHPAD CLEANUPPAD
43
+ %token NOUNDEF
43
44
44
45
%start module
45
46
@@ -532,10 +533,18 @@ parameter
532
533
{
533
534
$$ = new Parameter (LocalSymbol.None, (LType)$1);
534
535
}
536
+ | type LOCAL_SYMBOL
537
+ {
538
+ $$ = new Parameter ((LocalSymbol)$2, (LType)$1);
539
+ }
535
540
| type parameter_attributes
536
541
{
537
542
$$ = new Parameter (LocalSymbol.None, (LType)$1);
538
543
}
544
+ | type parameter_attributes LOCAL_SYMBOL
545
+ {
546
+ $$ = new Parameter ((LocalSymbol)$3, (LType)$1);
547
+ }
539
548
| METADATA
540
549
{
541
550
$$ = new Parameter (LocalSymbol.None, IntegerType.I32);
@@ -557,6 +566,7 @@ parameter_attributes
557
566
parameter_attribute
558
567
: NONNULL { $$ = ParameterAttributes.NonNull; }
559
568
| NOCAPTURE { $$ = ParameterAttributes.NoCapture; }
569
+ | NOUNDEF { $$ = ParameterAttributes.NoUndef; }
560
570
| READONLY { $$ = ParameterAttributes.ReadOnly; }
561
571
| WRITEONLY { $$ = ParameterAttributes.WriteOnly; }
562
572
| READNONE { $$ = ParameterAttributes.ReadNone; }
Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ class MultiCharToken
65
65
{ Symbol . Intern ( "phi" ) , Token . PHI } ,
66
66
{ Symbol . Intern ( "ret" ) , Token . RET } ,
67
67
{ Symbol . Intern ( "nocapture" ) , Token . NOCAPTURE } ,
68
+ { Symbol . Intern ( "noundef" ) , Token . NOUNDEF } ,
68
69
{ Symbol . Intern ( "writeonly" ) , Token . WRITEONLY } ,
69
70
{ Symbol . Intern ( "readonly" ) , Token . READONLY } ,
70
71
{ Symbol . Intern ( "attributes" ) , Token . ATTRIBUTES } ,
You can’t perform that action at this time.
0 commit comments