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
7a62cba8
Commit
7a62cba8
authored
Dec 28, 2018
by
nagayama15
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ログ出力の形式を修正
parent
2b182eff
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
aggregate.zsh
scripts/aggregate.zsh
+9
-5
BlockWatermarkPass.cpp
src/nykk/pass/BlockWatermarkPass.cpp
+0
-2
InstructionWatermarkPass.cpp
src/nykk/pass/InstructionWatermarkPass.cpp
+0
-2
No files found.
scripts/aggregate.zsh
View file @
7a62cba8
#!/bin/zsh
g1
()
{
FILE
=
$(
basename
${
1
/-block-wm.txt/.c
})
FUNCS
=
$(
tail
-n
+2
$1
|
wc
-l
)
BLOCKS
=
$(
tail
-n
+2
$1
|
awk
'{a+=$2} END {print a}'
)
BITS
=
$(
tail
-n
+2
$1
|
awk
'{a+=$3} END {print a}'
)
FUNCS
=
$(
cat
$1
|
wc
-l
)
BLOCKS
=
$(
awk
'{a+=$2} END {print a}'
$1
)
BITS
=
$(
awk
'{a+=$3} END {print a}'
$1
)
echo
"
$FILE
,
$FUNCS
,
$BLOCKS
,
$BITS
"
}
...
...
@@ -24,8 +24,8 @@ h1() {
g2
()
{
FILE
=
$(
basename
${
1
/-inst-wm.txt/.c
})
INSTS
=
$(
tail
-n
+2
$1
|
awk
'{a+=$2} END {print a}'
)
BITS
=
$(
tail
-n
+2
$1
|
awk
'{a+=$3} END {print a}'
)
INSTS
=
$(
awk
'{a+=$2} END {print a}'
$1
)
BITS
=
$(
awk
'{a+=$3} END {print a}'
$1
)
echo
"
$FILE
,
$INSTS
,
$BITS
"
}
...
...
@@ -44,8 +44,12 @@ h2() {
echo
"
$R
"
|
awk
'{f++; a+=$2; b+=$3} END {print "files: " f ", insts: " a ", bits: " b}'
}
echo
"==== 8cc block-wm ===="
h1 obj/example/8cc/stage1-wm/
*
-block-wm
.txt
echo
"==== zlib block-wm ===="
h1 obj/example/zlib/zlib-block-wm/
*
-block-wm
.txt
echo
"==== 8cc inst-wm ===="
h2 obj/example/8cc/stage1-wm/
*
-inst-wm
.txt
echo
"==== zlib inst-wm ===="
h2 obj/example/zlib/zlib-inst-wm/
*
-inst-wm
.txt
src/nykk/pass/BlockWatermarkPass.cpp
View file @
7a62cba8
...
...
@@ -93,8 +93,6 @@ namespace
bit_stream_
=
nykk
::
CircularBitStream
::
from_string
(
nykk
::
pass
::
watermark_opt
);
perm_table_
=
nykk
::
create_permutation_table
(
partition_opt
.
getValue
().
value
);
llvm
::
errs
()
<<
"func"
<<
", "
<<
"blocks"
<<
", "
<<
"bits"
<<
"
\n
"
;
return
false
;
}
...
...
src/nykk/pass/InstructionWatermarkPass.cpp
View file @
7a62cba8
...
...
@@ -49,8 +49,6 @@ namespace
module_name_
=
function
.
getParent
()
->
getName
();
bit_stream_
=
nykk
::
CircularBitStream
::
from_string
(
nykk
::
pass
::
watermark_opt
);
llvm
::
errs
()
<<
"func"
<<
", "
<<
"insts"
<<
", "
<<
"bits"
<<
"
\n
"
;
return
false
;
}
...
...
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