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
3120244c
Commit
3120244c
authored
Nov 18, 2018
by
nagayama15
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
透かしのテストを追加
parent
43b1abf5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
2 deletions
+30
-2
Makefile
Makefile
+6
-2
Makefile
example/Makefile
+24
-0
No files found.
Makefile
View file @
3120244c
...
@@ -15,13 +15,16 @@ LDFLAGS := \
...
@@ -15,13 +15,16 @@ LDFLAGS := \
$(
shell
llvm-config-6.0
--ldflags
)
\
$(
shell
llvm-config-6.0
--ldflags
)
\
$(
shell
llvm-config-6.0
--libs
)
$(
shell
llvm-config-6.0
--libs
)
.PHONY
:
all test clean
.PHONY
:
all test
example
clean
all
:
nykk.so
all
:
nykk.so
example
test
:
test
:
${
MAKE
}
-C
test
run
${
MAKE
}
-C
test
run
example
:
nykk.so
${
MAKE
}
-C
example
nykk.so
:
\
nykk.so
:
\
src/nykk/pass/TestPass.o
\
src/nykk/pass/TestPass.o
\
src/nykk/pass/BlockCounterPass.o
\
src/nykk/pass/BlockCounterPass.o
\
...
@@ -36,4 +39,5 @@ src/nykk/pass/BlockWatermarkPass.o: \
...
@@ -36,4 +39,5 @@ src/nykk/pass/BlockWatermarkPass.o: \
clean
:
clean
:
${
MAKE
}
-C
test
clean
${
MAKE
}
-C
test
clean
${
MAKE
}
-C
example clean
${
RM
}
*
.so src/
*
/
*
.o src/
*
/
*
/
*
.o
${
RM
}
*
.so src/
*
/
*
.o src/
*
/
*
/
*
.o
example/Makefile
0 → 100644
View file @
3120244c
SRCS
:=
\
fizzbuzz.c
LLS
:=
${
SRCS
:.c
=.ll
}
LLS_0
:=
${
SRCS
:%.c
=%-0.ll
}
LLS_1
:=
${
SRCS
:%.c
=%-1.ll
}
LLS_2
:=
${
SRCS
:%.c
=%-2.ll
}
.PHONY
:
all clean
all
:
${LLS} ${LLS_0} ${LLS_1} ${LLS_2}
%.ll
:
%.c
clang
-emit-llvm
-S
-O2
-o
$@
$<
%-0.ll
:
%.ll
opt-6.0
-load
../nykk.so
-block-wm
-watermark
=
0
-S
-o
$@
$<
%-1.ll
:
%.ll
opt-6.0
-load
../nykk.so
-block-wm
-watermark
=
1
-S
-o
$@
$<
%-2.ll
:
%.ll
opt-6.0
-load
../nykk.so
-block-wm
-watermark
=
2
-S
-o
$@
$<
clean
:
${
RM
}
*
.ll
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