Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
peephole
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Taddeüs Kroes
peephole
Commits
e96d6441
Commit
e96d6441
authored
13 years ago
by
Taddeus Kroes
Browse files
Options
Downloads
Patches
Plain Diff
Merged Makefile from report with root level.
parent
feb72343
No related branches found
No related tags found
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
Makefile
+7
-6
7 additions, 6 deletions
Makefile
report/Makefile
+0
-10
0 additions, 10 deletions
report/Makefile
report/report.tex
+7
-11
7 additions, 11 deletions
report/report.tex
report/rules.mk
+9
-0
9 additions, 0 deletions
report/rules.mk
tests/rules.mk
+1
-0
1 addition, 0 deletions
tests/rules.mk
with
24 additions
and
27 deletions
Makefile
+
7
−
6
View file @
e96d6441
BUILD
=
build/
BUILD
=
build/
CLEAN
=
*
.pyc src/
*
.pyc src/optimize/
*
.pyc
rm
-f
parser.out parsetab.py
CLEAN
=
*
.pyc src/
*
.pyc src/optimize/
*
.pyc parser.out parsetab.py
# Fix pdflatex search path
# Fix pdflatex search path
TGT_DIR
:=
TGT_DIR
:=
report
TGT_DOC
:=
# Default target is 'all'. The 'build' target is defined here so that all
# Default target is 'all'. The 'build' target is defined here so that all
# sub rules.mk can add prerequisites to the 'build' target.
# sub rules.mk can add prerequisites to the 'build' target.
all
:
all
:
build
:
build
:
d
:=
tests
/
d
:=
report
/
include
base.mk
include
base.mk
include
$(d)/rules.mk
include
$(d)/rules.mk
.PHONY
:
doc
d
:=
tests/
include
base.mk
include
$(d)/rules.mk
all
:
doc build
all
:
report
clean
:
clean
:
rm
-rf
$(
CLEAN
)
rm
-rf
$(
CLEAN
)
...
...
This diff is collapsed.
Click to expand it.
report/Makefile
deleted
100644 → 0
+
0
−
10
View file @
feb72343
RM
=
rm
-rf
all
:
report.pdf
%.pdf
:
%.tex
pdflatex
$^
pdflatex
$^
clean
:
$(
RM
)
*
.pdf
*
.aux
*
.log
*
.out
*
.toc
*
.snm
*
.nav
This diff is collapsed.
Click to expand it.
report/report.tex
+
7
−
11
View file @
e96d6441
\documentclass
[10pt,a4paper]
{
article
}
\documentclass
[10pt,a4paper]
{
article
}
\usepackage
[latin1]
{
inputenc
}
\usepackage
[latin1]
{
inputenc
}
\usepackage
{
amsmath
}
\usepackage
{
amsmath,amsfonts,amssymb,booktabs,graphicx,listings,subfigure
}
\usepackage
{
amsfonts
}
\usepackage
{
float,hyperref
}
\usepackage
{
amssymb
}
\usepackage
{
booktabs
}
\usepackage
{
graphicx
}
\usepackage
{
listings
}
\usepackage
{
subfigure
}
\usepackage
{
float
}
\usepackage
{
hyperref
}
\title
{
Peephole Optimizer
}
\title
{
Peephole Optimizer
}
\author
{
Jayke Meijer (6049885), Richard Torenvliet (6138861), Tadde
\"
us Kroes
\author
{
Jayke Meijer (6049885), Richard Torenvliet (6138861), Tadde
\"
us Kroes
(6054129)
}
(6054129)
}
\begin{document}
\begin{document}
\maketitle
\maketitle
\tableofcontents
\tableofcontents
\pagebreak
\pagebreak
\section
{
Introduction
}
\section
{
Introduction
}
...
@@ -81,7 +76,7 @@ These are optimizations that simply look for a certain statement or pattern of
...
@@ -81,7 +76,7 @@ These are optimizations that simply look for a certain statement or pattern of
statements, and optimize these. For example,
statements, and optimize these. For example,
\begin
{
verbatim
}
\begin
{
verbatim
}
mov
$
regA,
$
regB
mov
$
regA,
$
regB
instr
$
regA,
$
regA,...
instr
$
regA,
$
regA,...
\end
{
verbatim
}
\end
{
verbatim
}
can be optimized into
can be optimized into
\begin
{
verbatim
}
\begin
{
verbatim
}
...
@@ -184,7 +179,7 @@ more efficiently by shifting left a number of times. An example:
...
@@ -184,7 +179,7 @@ more efficiently by shifting left a number of times. An example:
optimization for any multiplication with a power of two.
optimization for any multiplication with a power of two.
There are a number of such cases, all of which are once again stated in
There are a number of such cases, all of which are once again stated in
appendix
\ref
{
opt
}
.
appendix
\ref
{
opt
}
.
\section
{
Implementation
}
\section
{
Implementation
}
...
@@ -372,4 +367,5 @@ mult $regA, $regB, 0 -> li $regA, 0
...
@@ -372,4 +367,5 @@ mult $regA, $regB, 0 -> li $regA, 0
mult
$
regA,
$
regB, 2 -> sll
$
regA,
$
regB, 1
mult
$
regA,
$
regB, 2 -> sll
$
regA,
$
regB, 1
\end{verbatim}
\end{verbatim}
\end{document}
\end{document}
This diff is collapsed.
Click to expand it.
report/rules.mk
0 → 100644
+
9
−
0
View file @
e96d6441
CLEAN
:=
$(
CLEAN
)
report/
*
.pdf report/
*
.aux report/
*
.log
\
report/
*
.out report/
*
.toc report/
*
.snm report/
*
.nav
report
:
report/report.pdf
report/%.pdf
:
report/%.tex
cd
report
;
\
pdflatex report.tex
;
\
pdflatex report.tex
This diff is collapsed.
Click to expand it.
tests/rules.mk
+
1
−
0
View file @
e96d6441
TESTS
=
$(
wildcard tests/test_
*
.py
)
TESTS
=
$(
wildcard tests/test_
*
.py
)
COVERAGE_OUTPUT_DIR
:=
coverage
COVERAGE_OUTPUT_DIR
:=
coverage
OMIT
:=
/usr/share/pyshared/
*
,test
*
,
*
__init__.py
OMIT
:=
/usr/share/pyshared/
*
,test
*
,
*
__init__.py
CLEAN
:=
$(
CLEAN
)
tests/
*
.pyc
ifeq
($(findstring python-coverage,$(wildcard /usr/bin/*)), python-coverage)
ifeq
($(findstring python-coverage,$(wildcard /usr/bin/*)), python-coverage)
COVERAGE
=
/usr/bin/python-coverage
COVERAGE
=
/usr/bin/python-coverage
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment