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
f91af3cd
Commit
f91af3cd
authored
Dec 28, 2018
by
nagayama15
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rustで書かれたFizzBuzzへの透かし埋め込みと結果の集計スクリプトを追加
parent
7a62cba8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
Makefile
example/fizzbuzz-rs/Makefile
+9
-2
aggregate.zsh
scripts/aggregate.zsh
+4
-0
No files found.
example/fizzbuzz-rs/Makefile
View file @
f91af3cd
...
@@ -6,9 +6,11 @@ LDFLAGS := \
...
@@ -6,9 +6,11 @@ LDFLAGS := \
-ldl
\
-ldl
\
-ljemalloc
-ljemalloc
all
:
${BIN_DIR}/fizzbuzz.out
#
${BIN_DIR}/fizzbuzz-wm.out
all
:
${BIN_DIR}/fizzbuzz.out ${BIN_DIR}/fizzbuzz-wm.out
${BIN_DIR}/fizzbuzz.out
:
${OBJ_DIR}/fizzbuzz.ll ${OBJ_DIR}/probestack.o
test
:
${BIN_DIR}/fizzbuzz.out ${BIN_DIR}/fizzbuzz-wm.out
${BIN_DIR}/%.out
:
${OBJ_DIR}/%.ll ${OBJ_DIR}/probestack.o
@
mkdir
-p
${
@D
}
@
mkdir
-p
${
@D
}
clang
-o
$@
$^
${
LDFLAGS
}
clang
-o
$@
$^
${
LDFLAGS
}
...
@@ -16,6 +18,11 @@ ${OBJ_DIR}/fizzbuzz.ll: fizzbuzz.rs
...
@@ -16,6 +18,11 @@ ${OBJ_DIR}/fizzbuzz.ll: fizzbuzz.rs
@
mkdir
-p
${
@D
}
@
mkdir
-p
${
@D
}
rustc
-O
-Clto
--emit
=
llvm-ir
-o
$@
$<
rustc
-O
-Clto
--emit
=
llvm-ir
-o
$@
$<
${OBJ_DIR}/fizzbuzz-wm.ll
:
${OBJ_DIR}/fizzbuzz.ll
@
mkdir
-p
${
@D
}
opt
-load
=
${
ROOT
}
/bin/src/nykk.so
-block-wm
-watermark
=
rust-project
-S
-o
${
@
:%-wm.ll
=%-block.ll
}
$<
2>
${
@
:%-wm.ll
=%-block-wm.txt
}
opt
-load
=
${
ROOT
}
/bin/src/nykk.so
-inst-wm
-watermark
=
rust-project
-S
-o
$@
${
@
:%-wm.ll
=%-block.ll
}
2>
${
@
:%-wm.ll
=%-inst-wm.txt
}
${OBJ_DIR}/probestack.o
:
probestack.s
${OBJ_DIR}/probestack.o
:
probestack.s
@
mkdir
-p
${
@D
}
@
mkdir
-p
${
@D
}
clang
-o
$@
-c
$<
clang
-o
$@
-c
$<
scripts/aggregate.zsh
View file @
f91af3cd
...
@@ -48,8 +48,12 @@ echo "==== 8cc block-wm ===="
...
@@ -48,8 +48,12 @@ echo "==== 8cc block-wm ===="
h1 obj/example/8cc/stage1-wm/
*
-block-wm
.txt
h1 obj/example/8cc/stage1-wm/
*
-block-wm
.txt
echo
"==== zlib block-wm ===="
echo
"==== zlib block-wm ===="
h1 obj/example/zlib/zlib-block-wm/
*
-block-wm
.txt
h1 obj/example/zlib/zlib-block-wm/
*
-block-wm
.txt
echo
"==== fizzbuzz-rs block-wm ===="
h1 obj/example/fizzbuzz-rs/
*
-block-wm
.txt
echo
"==== 8cc inst-wm ===="
echo
"==== 8cc inst-wm ===="
h2 obj/example/8cc/stage1-wm/
*
-inst-wm
.txt
h2 obj/example/8cc/stage1-wm/
*
-inst-wm
.txt
echo
"==== zlib inst-wm ===="
echo
"==== zlib inst-wm ===="
h2 obj/example/zlib/zlib-inst-wm/
*
-inst-wm
.txt
h2 obj/example/zlib/zlib-inst-wm/
*
-inst-wm
.txt
echo
"==== fizzbuzz-rs inst-wm ===="
h2 obj/example/fizzbuzz-rs/
*
-inst-wm
.txt
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