Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
llvm-watermarker
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nagayama15
llvm-watermarker
Commits
b40c6c4f
Commit
b40c6c4f
authored
Jan 10, 2019
by
nagayama15
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ベンチマークプログラムのファイル名を変更
parent
fd351396
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
22 deletions
+28
-22
Makefile
Makefile
+1
-5
Makefile
example/Makefile
+3
-0
Makefile
example/zlib/Makefile
+24
-17
benchmark.cpp
example/zlib/benchmark.cpp
+0
-0
No files found.
Makefile
View file @
b40c6c4f
...
...
@@ -13,11 +13,7 @@ test:
${
MAKE
}
-C
example
test
benchmark
:
test
bin/example/zlib/test |
tee
bin/example/zlib/test.txt
bin/example/zlib/test-block-wm |
tee
bin/example/zlib/test-block-wm.txt
bin/example/zlib/test-inst-wm |
tee
bin/example/zlib/test-inst-wm.txt
bin/example/zlib/test-wm |
tee
bin/example/zlib/test-wm.txt
paste
-d
","
bin/example/zlib/test.txt bin/example/zlib/test-block-wm.txt bin/example/zlib/test-inst-wm.txt bin/example/zlib/test-wm.txt
>
bin/example/zlib/test.csv
${
MAKE
}
-C
example benchmark
clean
::
${
MAKE
}
-C
example clean
example/Makefile
View file @
b40c6c4f
...
...
@@ -14,5 +14,8 @@ test:
${
MAKE
}
-C
fizzbuzz-rs
test
${
MAKE
}
-C
numguess-rs
test
benchmark
:
${
MAKE
}
-C
zlib benchmark
clean
::
${
MAKE
}
-C
numguess-rs clean
example/zlib/Makefile
View file @
b40c6c4f
...
...
@@ -44,26 +44,33 @@ OBJS_WM := ${SRCS:zlib/%.c=${OBJ_DIR}/zlib-wm/%.o}
.PHONY
:
all test
all
:
\
${BIN_DIR}/
test
\
${BIN_DIR}/
test
-block-wm
\
${BIN_DIR}/
test
-inst-wm
\
${BIN_DIR}/
test
-wm
${BIN_DIR}/
benchmark
\
${BIN_DIR}/
benchmark
-block-wm
\
${BIN_DIR}/
benchmark
-inst-wm
\
${BIN_DIR}/
benchmark
-wm
test
:
\
${BIN_DIR}/test
\
${BIN_DIR}/test-block-wm
\
${BIN_DIR}/test-inst-wm
\
${BIN_DIR}/test-wm
${BIN_DIR}/benchmark
\
${BIN_DIR}/benchmark-block-wm
\
${BIN_DIR}/benchmark-inst-wm
\
${BIN_DIR}/benchmark-wm
benchmark
:
${
BIN_DIR
}
/benchmark |
tee
${
BIN_DIR
}
/benchmark.txt
${
BIN_DIR
}
/benchmark-block-wm |
tee
${
BIN_DIR
}
/benchmark-block-wm.txt
${
BIN_DIR
}
/benchmark-inst-wm |
tee
${
BIN_DIR
}
/benchmark-inst-wm.txt
${
BIN_DIR
}
/benchmark-wm |
tee
${
BIN_DIR
}
/benchmark-wm.txt
paste
-d
","
${
BIN_DIR
}
/benchmark.txt
${
BIN_DIR
}
/benchmark-block-wm.txt
${
BIN_DIR
}
/benchmark-inst-wm.txt
${
BIN_DIR
}
/benchmark-wm.txt
>
${
BIN_DIR
}
/benchmark.csv
${BIN_DIR}/libz.a
:
${OBJS}
${BIN_DIR}/libz-block-wm.a
:
${OBJS_BWM}
${BIN_DIR}/libz-inst-wm.a
:
${OBJS_IWM}
${BIN_DIR}/libz-wm.a
:
${OBJS_WM}
${BIN_DIR}/
test
:
${OBJ_DIR}/test
.o ${BIN_DIR}/libz.a
${BIN_DIR}/
test-block-wm
:
${OBJ_DIR}/test
.o ${BIN_DIR}/libz-block-wm.a
${BIN_DIR}/
test-inst-wm
:
${OBJ_DIR}/test
.o ${BIN_DIR}/libz-inst-wm.a
${BIN_DIR}/
test-wm
:
${OBJ_DIR}/test
.o ${BIN_DIR}/libz-wm.a
${BIN_DIR}/
benchmark
:
${OBJ_DIR}/benchmark
.o ${BIN_DIR}/libz.a
${BIN_DIR}/
benchmark-block-wm
:
${OBJ_DIR}/benchmark
.o ${BIN_DIR}/libz-block-wm.a
${BIN_DIR}/
benchmark-inst-wm
:
${OBJ_DIR}/benchmark
.o ${BIN_DIR}/libz-inst-wm.a
${BIN_DIR}/
benchmark-wm
:
${OBJ_DIR}/benchmark
.o ${BIN_DIR}/libz-wm.a
${OBJ_DIR}/zlib/%.o
:
zlib/%.c
@
mkdir
-p
${
@D
}
...
...
@@ -88,23 +95,23 @@ ${OBJ_DIR}/zlib-wm/%.o: zlib/%.c
opt
-load
=
${
ROOT
}
/bin/src/nykk.so
-inst-wm
-watermark
=
${
WATERMARK
}
-S
-o
${
@
:%.o
=%-inst-wm.ll
}
${
@
:.o
=-block-wm.ll
}
2> /dev/null
clang
${
CFLAGS
}
-o
$@
-c
${
@
:%.o
=%-inst-wm.ll
}
${OBJ_DIR}/
test.o
:
test
.cpp
${OBJ_DIR}/
benchmark.o
:
benchmark
.cpp
@
mkdir
-p
${
@D
}
${
CXX
}
${
CXXFLAGS
}
-o
$@
-c
$<
${BIN_DIR}/
test
:
${BIN_DIR}/
benchmark
:
@
mkdir
-p
${
@D
}
${
CXX
}
${
CXXFLAGS
}
-o
$@
$^
${
LDFLAGS
}
${BIN_DIR}/
test
-block-wm
:
${BIN_DIR}/
benchmark
-block-wm
:
@
mkdir
-p
${
@D
}
${
CXX
}
${
CXXFLAGS
}
-o
$@
$^
${
LDFLAGS
}
${BIN_DIR}/
test
-inst-wm
:
${BIN_DIR}/
benchmark
-inst-wm
:
@
mkdir
-p
${
@D
}
${
CXX
}
${
CXXFLAGS
}
-o
$@
$^
${
LDFLAGS
}
${BIN_DIR}/
test
-wm
:
${BIN_DIR}/
benchmark
-wm
:
@
mkdir
-p
${
@D
}
${
CXX
}
${
CXXFLAGS
}
-o
$@
$^
${
LDFLAGS
}
...
...
example/zlib/
test
.cpp
→
example/zlib/
benchmark
.cpp
View file @
b40c6c4f
File moved
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