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
d661b54b
Commit
d661b54b
authored
Nov 18, 2018
by
nagayama15
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
透かし埋め込みテストの追加
parent
3120244c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
4 deletions
+19
-4
Makefile
Makefile
+2
-1
.gitignore
example/.gitignore
+2
-0
Makefile
example/Makefile
+15
-3
No files found.
Makefile
View file @
d661b54b
...
...
@@ -19,8 +19,9 @@ LDFLAGS := \
all
:
nykk.so example
test
:
test
:
nykk.so
${
MAKE
}
-C
test
run
${
MAKE
}
-C
example
test
example
:
nykk.so
${
MAKE
}
-C
example
...
...
example/.gitignore
0 → 100644
View file @
d661b54b
*.txt
fizzbuzz*
example/Makefile
View file @
d661b54b
...
...
@@ -5,10 +5,19 @@ LLS := ${SRCS:.c=.ll}
LLS_0
:=
${
SRCS
:%.c
=%-0.ll
}
LLS_1
:=
${
SRCS
:%.c
=%-1.ll
}
LLS_2
:=
${
SRCS
:%.c
=%-2.ll
}
BINS
:=
${
LLS
:.ll
=
}
${
LLS_0
:.ll
=
}
${
LLS_1
:.ll
=
}
${
LLS_2
:.ll
=
}
.PHONY
:
all clean
.PHONY
:
all
test
clean
all
:
${LLS} ${LLS_0} ${LLS_1} ${LLS_2}
all
:
${BINS}
test
:
${BINS}
./fizzbuzz
>
fizzbuzz.txt
./fizzbuzz-0
>
fizzbuzz-0.txt
./fizzbuzz-1
>
fizzbuzz-1.txt
./fizzbuzz-2
>
fizzbuzz-2.txt
${BINS}
:
${LLS} ${LLS_0} ${LLS_1} ${LLS_2}
%.ll
:
%.c
clang
-emit-llvm
-S
-O2
-o
$@
$<
...
...
@@ -20,5 +29,8 @@ all: ${LLS} ${LLS_0} ${LLS_1} ${LLS_2}
%-2.ll
:
%.ll
opt-6.0
-load
../nykk.so
-block-wm
-watermark
=
2
-S
-o
$@
$<
%
:
%.ll
clang
-o
$@
$<
clean
:
${
RM
}
*
.ll
${
RM
}
${
BINS
}
*
.ll
*
.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