Commit cc7ad5c7 authored by nagayama15's avatar nagayama15

オプションの指定方法を変更

parent 630a909b
...@@ -67,7 +67,7 @@ test/stage1-wm/%.o: test/stage1-wm/%-wm.ll ...@@ -67,7 +67,7 @@ test/stage1-wm/%.o: test/stage1-wm/%-wm.ll
clang -o $@ -c $< clang -o $@ -c $<
test/stage1-wm/%-wm.ll: test/stage1-wm/%.ll test/stage1-wm/%-wm.ll: test/stage1-wm/%.ll
opt -load ../../nykk.so -O2 -block-wm -watermark=${WATERMARK} -S -o $@ $< 2> ${@:%.ll=%-stderr.txt} opt -load=../../nykk.so -O2 -block-wm -watermark=${WATERMARK} -S -o $@ $< 2> ${@:%.ll=%-stderr.txt}
test/stage1-wm/%.ll: 8cc/%.c test/stage1-wm/%.ll: 8cc/%.c
@mkdir -p ${@D} @mkdir -p ${@D}
......
...@@ -23,11 +23,11 @@ ${BINS}: ${LLS} ${LLS_0} ${LLS_1} ${LLS_2} ...@@ -23,11 +23,11 @@ ${BINS}: ${LLS} ${LLS_0} ${LLS_1} ${LLS_2}
clang -emit-llvm -S -O2 -o $@ $< clang -emit-llvm -S -O2 -o $@ $<
%-0.ll: %.ll %-0.ll: %.ll
opt -load ../../nykk.so -block-wm -watermark=0 -S -o $@ $< opt -load=../../nykk.so -block-wm -watermark=0 -S -o $@ $<
%-1.ll: %.ll %-1.ll: %.ll
opt -load ../../nykk.so -block-wm -watermark=1 -S -o $@ $< opt -load=../../nykk.so -block-wm -watermark=1 -S -o $@ $<
%-2.ll: %.ll %-2.ll: %.ll
opt -load ../../nykk.so -block-wm -watermark=2 -S -o $@ $< opt -load=../../nykk.so -block-wm -watermark=2 -S -o $@ $<
%: %.ll %: %.ll
clang -o $@ $< clang -o $@ $<
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment