Skip to content
This repository was archived by the owner on Jan 24, 2024. It is now read-only.

Commit da2cdf7

Browse files
committed
Cleaned up cube.ll & -f flags for Makefile
1 parent 83f6d41 commit da2cdf7

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ clean :
1616
clang -o $@ -flto -S -O $^
1717

1818
%.bc : %.ll
19-
llvm-as $<
19+
llvm-as -f $^
2020

2121
%.s : %.bc
22-
llc $^
22+
llc -f $^
2323

2424
%.o : %.s
2525
as -o $@ $^

cube.ll

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32-n8:16:32"
2-
target triple = "i386-pc-linux-gnu"
3-
4-
define i32 @cube(i32 %x) nounwind readnone {
1+
define i32 @cube(i32 %x) {
52
%sqr = mul i32 %x, %x
63
%cube = mul i32 %x, %sqr
74
ret i32 %cube

0 commit comments

Comments
 (0)