Skip to content

Commit

Permalink
Floating-point add, sub, and mul are now spelled fadd, fsub, and fmul,
Browse files Browse the repository at this point in the history
respectively.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97531 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
Dan Gohman committed Mar 2, 2010
1 parent fbbee8d commit a9445e1
Show file tree
Hide file tree
Showing 17 changed files with 100 additions and 100 deletions.
6 changes: 3 additions & 3 deletions docs/CodeGenerator.html
Original file line number Diff line number Diff line change
Expand Up @@ -1041,9 +1041,9 @@

<div class="doc_code">
<pre>
%t1 = add float %W, %X
%t2 = mul float %t1, %Y
%t3 = add float %t2, %Z
%t1 = fadd float %W, %X
%t2 = fmul float %t1, %Y
%t3 = fadd float %t2, %Z
</pre>
</div>

Expand Down
30 changes: 15 additions & 15 deletions docs/tutorial/LangImpl3.html
Original file line number Diff line number Diff line change
Expand Up @@ -554,12 +554,12 @@
Read function definition:
define double @foo(double %a, double %b) {
entry:
%multmp = mul double %a, %a
%multmp1 = mul double 2.000000e+00, %a
%multmp2 = mul double %multmp1, %b
%addtmp = add double %multmp, %multmp2
%multmp3 = mul double %b, %b
%addtmp4 = add double %addtmp, %multmp3
%multmp = fmul double %a, %a
%multmp1 = fmul double 2.000000e+00, %a
%multmp2 = fmul double %multmp1, %b
%addtmp = fadd double %multmp, %multmp2
%multmp3 = fmul double %b, %b
%addtmp4 = fadd double %addtmp, %multmp3
ret double %addtmp4
}
</pre>
Expand All @@ -576,7 +576,7 @@
entry:
%calltmp = call double @foo( double %a, double 4.000000e+00 )
%calltmp1 = call double @bar( double 3.133700e+04 )
%addtmp = add double %calltmp, %calltmp1
%addtmp = fadd double %calltmp, %calltmp1
ret double %addtmp
}
</pre>
Expand Down Expand Up @@ -612,26 +612,26 @@

define double @""() {
entry:
%addtmp = add double 4.000000e+00, 5.000000e+00
%addtmp = fadd double 4.000000e+00, 5.000000e+00
ret double %addtmp
}

define double @foo(double %a, double %b) {
entry:
%multmp = mul double %a, %a
%multmp1 = mul double 2.000000e+00, %a
%multmp2 = mul double %multmp1, %b
%addtmp = add double %multmp, %multmp2
%multmp3 = mul double %b, %b
%addtmp4 = add double %addtmp, %multmp3
%multmp = fmul double %a, %a
%multmp1 = fmul double 2.000000e+00, %a
%multmp2 = fmul double %multmp1, %b
%addtmp = fadd double %multmp, %multmp2
%multmp3 = fmul double %b, %b
%addtmp4 = fadd double %addtmp, %multmp3
ret double %addtmp4
}

define double @bar(double %a) {
entry:
%calltmp = call double @foo( double %a, double 4.000000e+00 )
%calltmp1 = call double @bar( double 3.133700e+04 )
%addtmp = add double %calltmp, %calltmp1
%addtmp = fadd double %calltmp, %calltmp1
ret double %addtmp
}

Expand Down
26 changes: 13 additions & 13 deletions docs/tutorial/LangImpl4.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
Read function definition:
define double @test(double %x) {
entry:
%addtmp = add double 3.000000e+00, %x
%addtmp = fadd double 3.000000e+00, %x
ret double %addtmp
}
</pre>
Expand All @@ -80,8 +80,8 @@
Read function definition:
define double @test(double %x) {
entry:
%addtmp = add double 2.000000e+00, 1.000000e+00
%addtmp1 = add double %addtmp, %x
%addtmp = fadd double 2.000000e+00, 1.000000e+00
%addtmp1 = fadd double %addtmp, %x
ret double %addtmp1
}
</pre>
Expand Down Expand Up @@ -113,9 +113,9 @@
ready> Read function definition:
define double @test(double %x) {
entry:
%addtmp = add double 3.000000e+00, %x
%addtmp1 = add double %x, 3.000000e+00
%multmp = mul double %addtmp, %addtmp1
%addtmp = fadd double 3.000000e+00, %x
%addtmp1 = fadd double %x, 3.000000e+00
%multmp = fmul double %addtmp, %addtmp1
ret double %multmp
}
</pre>
Expand Down Expand Up @@ -240,8 +240,8 @@
ready> Read function definition:
define double @test(double %x) {
entry:
%addtmp = add double %x, 3.000000e+00
%multmp = mul double %addtmp, %addtmp
%addtmp = fadd double %x, 3.000000e+00
%multmp = fmul double %addtmp, %addtmp
ret double %multmp
}
</pre>
Expand Down Expand Up @@ -363,8 +363,8 @@
Read function definition:
define double @testfunc(double %x, double %y) {
entry:
%multmp = mul double %y, 2.000000e+00
%addtmp = add double %multmp, %x
%multmp = fmul double %y, 2.000000e+00
%addtmp = fadd double %multmp, %x
ret double %addtmp
}

Expand Down Expand Up @@ -411,10 +411,10 @@
define double @foo(double %x) {
entry:
%calltmp = call double @sin( double %x )
%multmp = mul double %calltmp, %calltmp
%multmp = fmul double %calltmp, %calltmp
%calltmp2 = call double @cos( double %x )
%multmp4 = mul double %calltmp2, %calltmp2
%addtmp = add double %multmp, %multmp4
%multmp4 = fmul double %calltmp2, %calltmp2
%addtmp = fadd double %multmp, %multmp4
ret double %addtmp
}

Expand Down
2 changes: 1 addition & 1 deletion docs/tutorial/LangImpl5.html
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,7 @@
; body
%calltmp = call double @putchard( double 4.200000e+01 )
; increment
%nextvar = add double %i, 1.000000e+00
%nextvar = fadd double %i, 1.000000e+00

; termination test
%cmptmp = fcmp ult double %i, %n
Expand Down
18 changes: 9 additions & 9 deletions docs/tutorial/LangImpl7.html
Original file line number Diff line number Diff line change
Expand Up @@ -557,12 +557,12 @@

else: ; preds = %entry
<b>%x3 = load double* %x1</b>
%subtmp = sub double %x3, 1.000000e+00
%subtmp = fsub double %x3, 1.000000e+00
%calltmp = call double @fib( double %subtmp )
<b>%x4 = load double* %x1</b>
%subtmp5 = sub double %x4, 2.000000e+00
%subtmp5 = fsub double %x4, 2.000000e+00
%calltmp6 = call double @fib( double %subtmp5 )
%addtmp = add double %calltmp, %calltmp6
%addtmp = fadd double %calltmp, %calltmp6
br label %ifcont

ifcont: ; preds = %else, %then
Expand Down Expand Up @@ -595,11 +595,11 @@
br label %ifcont

else:
%subtmp = sub double <b>%x</b>, 1.000000e+00
%subtmp = fsub double <b>%x</b>, 1.000000e+00
%calltmp = call double @fib( double %subtmp )
%subtmp5 = sub double <b>%x</b>, 2.000000e+00
%subtmp5 = fsub double <b>%x</b>, 2.000000e+00
%calltmp6 = call double @fib( double %subtmp5 )
%addtmp = add double %calltmp, %calltmp6
%addtmp = fadd double %calltmp, %calltmp6
br label %ifcont

ifcont: ; preds = %else, %then
Expand All @@ -625,11 +625,11 @@
br i1 %ifcond, label %else, label %ifcont

else:
%subtmp = sub double %x, 1.000000e+00
%subtmp = fsub double %x, 1.000000e+00
%calltmp = call double @fib( double %subtmp )
%subtmp5 = sub double %x, 2.000000e+00
%subtmp5 = fsub double %x, 2.000000e+00
%calltmp6 = call double @fib( double %subtmp5 )
%addtmp = add double %calltmp, %calltmp6
%addtmp = fadd double %calltmp, %calltmp6
ret double %addtmp

ifcont:
Expand Down
32 changes: 16 additions & 16 deletions docs/tutorial/OCamlLangImpl3.html
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@
Read top-level expression:
define double @""() {
entry:
%addtmp = add double 4.000000e+00, 5.000000e+00
%addtmp = fadd double 4.000000e+00, 5.000000e+00
ret double %addtmp
}
</pre>
Expand All @@ -503,12 +503,12 @@
Read function definition:
define double @foo(double %a, double %b) {
entry:
%multmp = mul double %a, %a
%multmp1 = mul double 2.000000e+00, %a
%multmp2 = mul double %multmp1, %b
%addtmp = add double %multmp, %multmp2
%multmp3 = mul double %b, %b
%addtmp4 = add double %addtmp, %multmp3
%multmp = fmul double %a, %a
%multmp1 = fmul double 2.000000e+00, %a
%multmp2 = fmul double %multmp1, %b
%addtmp = fadd double %multmp, %multmp2
%multmp3 = fmul double %b, %b
%addtmp4 = fadd double %addtmp, %multmp3
ret double %addtmp4
}
</pre>
Expand All @@ -525,7 +525,7 @@
entry:
%calltmp = call double @foo( double %a, double 4.000000e+00 )
%calltmp1 = call double @bar( double 3.133700e+04 )
%addtmp = add double %calltmp, %calltmp1
%addtmp = fadd double %calltmp, %calltmp1
ret double %addtmp
}
</pre>
Expand Down Expand Up @@ -561,26 +561,26 @@

define double @""() {
entry:
%addtmp = add double 4.000000e+00, 5.000000e+00
%addtmp = fadd double 4.000000e+00, 5.000000e+00
ret double %addtmp
}

define double @foo(double %a, double %b) {
entry:
%multmp = mul double %a, %a
%multmp1 = mul double 2.000000e+00, %a
%multmp2 = mul double %multmp1, %b
%addtmp = add double %multmp, %multmp2
%multmp3 = mul double %b, %b
%addtmp4 = add double %addtmp, %multmp3
%multmp = fmul double %a, %a
%multmp1 = fmul double 2.000000e+00, %a
%multmp2 = fmul double %multmp1, %b
%addtmp = fadd double %multmp, %multmp2
%multmp3 = fmul double %b, %b
%addtmp4 = fadd double %addtmp, %multmp3
ret double %addtmp4
}

define double @bar(double %a) {
entry:
%calltmp = call double @foo( double %a, double 4.000000e+00 )
%calltmp1 = call double @bar( double 3.133700e+04 )
%addtmp = add double %calltmp, %calltmp1
%addtmp = fadd double %calltmp, %calltmp1
ret double %addtmp
}

Expand Down
26 changes: 13 additions & 13 deletions docs/tutorial/OCamlLangImpl4.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@
Read function definition:
define double @test(double %x) {
entry:
%addtmp = add double 1.000000e+00, 2.000000e+00
%addtmp1 = add double %addtmp, %x
%addtmp = fadd double 1.000000e+00, 2.000000e+00
%addtmp1 = fadd double %addtmp, %x
ret double %addtmp1
}
</pre>
Expand Down Expand Up @@ -104,7 +104,7 @@
Read function definition:
define double @test(double %x) {
entry:
%addtmp = add double 3.000000e+00, %x
%addtmp = fadd double 3.000000e+00, %x
ret double %addtmp
}
</pre>
Expand All @@ -127,9 +127,9 @@
ready&gt; Read function definition:
define double @test(double %x) {
entry:
%addtmp = add double 3.000000e+00, %x
%addtmp1 = add double %x, 3.000000e+00
%multmp = mul double %addtmp, %addtmp1
%addtmp = fadd double 3.000000e+00, %x
%addtmp1 = fadd double %x, 3.000000e+00
%multmp = fmul double %addtmp, %addtmp1
ret double %multmp
}
</pre>
Expand Down Expand Up @@ -267,8 +267,8 @@
ready&gt; Read function definition:
define double @test(double %x) {
entry:
%addtmp = add double %x, 3.000000e+00
%multmp = mul double %addtmp, %addtmp
%addtmp = fadd double %x, 3.000000e+00
%multmp = fmul double %addtmp, %addtmp
ret double %multmp
}
</pre>
Expand Down Expand Up @@ -388,8 +388,8 @@
Read function definition:
define double @testfunc(double %x, double %y) {
entry:
%multmp = mul double %y, 2.000000e+00
%addtmp = add double %multmp, %x
%multmp = fmul double %y, 2.000000e+00
%addtmp = fadd double %multmp, %x
ret double %addtmp
}

Expand Down Expand Up @@ -436,10 +436,10 @@
define double @foo(double %x) {
entry:
%calltmp = call double @sin( double %x )
%multmp = mul double %calltmp, %calltmp
%multmp = fmul double %calltmp, %calltmp
%calltmp2 = call double @cos( double %x )
%multmp4 = mul double %calltmp2, %calltmp2
%addtmp = add double %multmp, %multmp4
%multmp4 = fmul double %calltmp2, %calltmp2
%addtmp = fadd double %multmp, %multmp4
ret double %addtmp
}

Expand Down
2 changes: 1 addition & 1 deletion docs/tutorial/OCamlLangImpl5.html
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@
; body
%calltmp = call double @putchard( double 4.200000e+01 )
; increment
%nextvar = add double %i, 1.000000e+00
%nextvar = fadd double %i, 1.000000e+00

; termination test
%cmptmp = fcmp ult double %i, %n
Expand Down
18 changes: 9 additions & 9 deletions docs/tutorial/OCamlLangImpl7.html
Original file line number Diff line number Diff line change
Expand Up @@ -581,12 +581,12 @@

else: ; preds = %entry
<b>%x3 = load double* %x1</b>
%subtmp = sub double %x3, 1.000000e+00
%subtmp = fsub double %x3, 1.000000e+00
%calltmp = call double @fib( double %subtmp )
<b>%x4 = load double* %x1</b>
%subtmp5 = sub double %x4, 2.000000e+00
%subtmp5 = fsub double %x4, 2.000000e+00
%calltmp6 = call double @fib( double %subtmp5 )
%addtmp = add double %calltmp, %calltmp6
%addtmp = fadd double %calltmp, %calltmp6
br label %ifcont

ifcont: ; preds = %else, %then
Expand Down Expand Up @@ -619,11 +619,11 @@
br label %ifcont

else:
%subtmp = sub double <b>%x</b>, 1.000000e+00
%subtmp = fsub double <b>%x</b>, 1.000000e+00
%calltmp = call double @fib( double %subtmp )
%subtmp5 = sub double <b>%x</b>, 2.000000e+00
%subtmp5 = fsub double <b>%x</b>, 2.000000e+00
%calltmp6 = call double @fib( double %subtmp5 )
%addtmp = add double %calltmp, %calltmp6
%addtmp = fadd double %calltmp, %calltmp6
br label %ifcont

ifcont: ; preds = %else, %then
Expand All @@ -649,11 +649,11 @@
br i1 %ifcond, label %else, label %ifcont

else:
%subtmp = sub double %x, 1.000000e+00
%subtmp = fsub double %x, 1.000000e+00
%calltmp = call double @fib( double %subtmp )
%subtmp5 = sub double %x, 2.000000e+00
%subtmp5 = fsub double %x, 2.000000e+00
%calltmp6 = call double @fib( double %subtmp5 )
%addtmp = add double %calltmp, %calltmp6
%addtmp = fadd double %calltmp, %calltmp6
ret double %addtmp

ifcont:
Expand Down
Loading

0 comments on commit a9445e1

Please sign in to comment.