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
e498fa81
Commit
e498fa81
authored
Jan 22, 2019
by
nagayama15
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ベンチマークプログラムのフラグ指定を修正
parent
a4fc481d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
Makefile
example/zlib/Makefile
+5
-2
No files found.
example/zlib/Makefile
View file @
e498fa81
...
@@ -72,7 +72,7 @@ $${BIN_DIR}/$1/libz-wm.a: $${SRCS:zlib/%.c=$${OBJ_DIR}/$1/%-wm.o}
...
@@ -72,7 +72,7 @@ $${BIN_DIR}/$1/libz-wm.a: $${SRCS:zlib/%.c=$${OBJ_DIR}/$1/%-wm.o}
$${BIN_DIR}/$1/benchmark-%
:
$${OBJ_DIR}/benchmark.o $${BIN_DIR}/$1/libz-%.a
$${BIN_DIR}/$1/benchmark-%
:
$${OBJ_DIR}/benchmark.o $${BIN_DIR}/$1/libz-%.a
@
mkdir
-p
$$
{
@D
}
@
mkdir
-p
$$
{
@D
}
$$
{
CXX
}
$$
{
CXXFLAGS
}
-o
$$
@
$$
^
$$
{
LDFLAGS
}
$$
{
CXX
}
-o
$$
@
$$
^
$$
{
LDFLAGS
}
$${OBJ_DIR}/$1/%-block-wm.ll
:
$${OBJ_DIR}/%.ll
$${OBJ_DIR}/$1/%-block-wm.ll
:
$${OBJ_DIR}/%.ll
@
mkdir
-p
$$
{
@D
}
@
mkdir
-p
$$
{
@D
}
...
@@ -84,6 +84,9 @@ $${OBJ_DIR}/$1/%-inst-wm.ll: $${OBJ_DIR}/%.ll
...
@@ -84,6 +84,9 @@ $${OBJ_DIR}/$1/%-inst-wm.ll: $${OBJ_DIR}/%.ll
$${OBJ_DIR}/$1/%-wm.ll
:
$${OBJ_DIR}/$1/%-block-wm.ll
$${OBJ_DIR}/$1/%-wm.ll
:
$${OBJ_DIR}/$1/%-block-wm.ll
opt
-load
=
$$
{
ROOT
}
/bin/
$$
{
BUILD_TYPE
}
/src/nykk.so
-inst-wm
-watermark
=
"
$1
"
-S
-o
$$
@
$$
< 2> /dev/null
opt
-load
=
$$
{
ROOT
}
/bin/
$$
{
BUILD_TYPE
}
/src/nykk.so
-inst-wm
-watermark
=
"
$1
"
-S
-o
$$
@
$$
< 2> /dev/null
$${OBJ_DIR}/$1/%.o
:
$${OBJ_DIR}/$1/%.ll
clang
-o
$$
@
-c
$$
<
endef
endef
.PRECIOUS
:
${SRCS:zlib/%.c=${OBJ_DIR}/%.ll}
.PRECIOUS
:
${SRCS:zlib/%.c=${OBJ_DIR}/%.ll}
...
@@ -111,7 +114,7 @@ ${OBJ_DIR}/benchmark.o: benchmark.cpp
...
@@ -111,7 +114,7 @@ ${OBJ_DIR}/benchmark.o: benchmark.cpp
@
mkdir
-p
${
@D
}
@
mkdir
-p
${
@D
}
${
AR
}
rcs
$@
$^
${
AR
}
rcs
$@
$^
%.o
:
%.ll
${OBJ_DIR}/%.o
:
${OBJ_DIR}/
%.ll
clang
${
CFLAGS
}
-o
$@
-c
$<
clang
${
CFLAGS
}
-o
$@
-c
$<
$(eval
$(call
watermark,zlib-watermark))
$(eval
$(call
watermark,zlib-watermark))
...
...
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