Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
compiler
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
17
Issues
17
List
Boards
Labels
Service Desk
Milestones
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
clean-compiler-and-rts
compiler
Commits
909b0b60
Commit
909b0b60
authored
Feb 01, 2018
by
John van Groningen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
allow -generic_fusion argument, add bit to .comp directive indicating whether it was passed
parent
a0b1281e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
2 deletions
+9
-2
backendC/CleanCompilerSources/cocl.c
backendC/CleanCompilerSources/cocl.c
+3
-0
backendC/CleanCompilerSources/instructions.c
backendC/CleanCompilerSources/instructions.c
+4
-2
backendC/CleanCompilerSources/settings.c
backendC/CleanCompilerSources/settings.c
+1
-0
backendC/CleanCompilerSources/settings.h
backendC/CleanCompilerSources/settings.h
+1
-0
No files found.
backendC/CleanCompilerSources/cocl.c
View file @
909b0b60
...
...
@@ -128,6 +128,7 @@ Bool CallCompiler (int argc, char **argv)
DoTimeProfiling
=
False
;
DoReuseUniqueNodes
=
False
;
DoFusion
=
False
;
DoGenericFusion
=
False
;
DoDescriptors
=
False
;
ExportLocalLabels
=
False
;
AddStrictnessToExportedFunctionTypes
=
False
;
...
...
@@ -192,6 +193,8 @@ Bool CallCompiler (int argc, char **argv)
ExportLocalLabels
=
True
;
else
if
(
strcmp
(
argv_i
,
"-fusion"
)
==
0
)
DoFusion
=
True
;
else
if
(
strcmp
(
argv_i
,
"-generic_fusion"
)
==
0
)
DoGenericFusion
=
True
;
else
if
(
strcmp
(
argv_i
,
"-seft"
)
==
0
)
AddStrictnessToExportedFunctionTypes
=
True
;
else
if
(
strcmp
(
argv_i
,
"-dynamics"
)
==
0
)
...
...
backendC/CleanCompilerSources/instructions.c
View file @
909b0b60
...
...
@@ -55,9 +55,10 @@ static void error_in_function (char *m)
#define N_DoFusion 9
#define N_Do64BitArch 10
#define N_Dynamics 11
#define N_DoGenericFusion 12
#define MINIMUM_N_OPTIONS 9
#define N_OPTIONS 1
2
#define N_OPTIONS 1
3
static
void
ConvertOptionsToString
(
char
*
optstring
)
{
...
...
@@ -79,10 +80,11 @@ static void ConvertOptionsToString (char *optstring)
optstring
[
N_DoWarning
]
=
DoWarning
?
'1'
:
'0'
;
optstring
[
N_System
]
=
'0'
;
if
(
DoFusion
||
ObjectSizes
[
RealObj
]
!=
2
||
Dynamics
){
if
(
DoFusion
||
ObjectSizes
[
RealObj
]
!=
2
||
Dynamics
||
DoGenericFusion
){
optstring
[
N_DoFusion
]
=
DoFusion
?
'1'
:
'0'
;
optstring
[
N_Do64BitArch
]
=
ObjectSizes
[
RealObj
]
!=
2
?
'1'
:
'0'
;
optstring
[
N_Dynamics
]
=
Dynamics
?
'1'
:
'0'
;
optstring
[
N_DoGenericFusion
]
=
DoGenericFusion
?
'1'
:
'0'
;
optstring
[
N_OPTIONS
]
=
'\0'
;
}
else
optstring
[
MINIMUM_N_OPTIONS
]
=
'\0'
;
...
...
backendC/CleanCompilerSources/settings.c
View file @
909b0b60
...
...
@@ -31,6 +31,7 @@ Bool DoTimeProfiling=False;
Bool
DoReuseUniqueNodes
=
False
;
Bool
DoFusion
=
False
;
Bool
DoGenericFusion
=
False
;
Bool
OptimizeLazyTupleRecursion
=
False
;
Bool
OptimizeTailCallModuloCons
=
True
;
...
...
backendC/CleanCompilerSources/settings.h
View file @
909b0b60
...
...
@@ -29,6 +29,7 @@ extern Bool DoTimeProfiling;
extern
Bool
DoReuseUniqueNodes
;
extern
Bool
DoFusion
;
extern
Bool
DoGenericFusion
;
extern
Bool
OptimizeLazyTupleRecursion
;
extern
Bool
OptimizeTailCallModuloCons
;
extern
Bool
WriteModificationTimes
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment