summaryrefslogtreecommitdiffstats
path: root/llvm/docs/tutorial/LangImpl6.html
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2010-06-14 06:09:39 +0000
committerEric Christopher <echristo@apple.com>2010-06-14 06:09:39 +0000
commit4f475d07ba60a58f835b1bf138ef5da594bef47c (patch)
tree7a4a52d79caff684a3baf3ee1b8b3178b86f036b /llvm/docs/tutorial/LangImpl6.html
parent95f5652e2d14b1d2a32c25c6791598dee12d901c (diff)
downloadbcm5719-llvm-4f475d07ba60a58f835b1bf138ef5da594bef47c.tar.gz
bcm5719-llvm-4f475d07ba60a58f835b1bf138ef5da594bef47c.zip
Update html tutorial docs to match api changes.
llvm-svn: 105933
Diffstat (limited to 'llvm/docs/tutorial/LangImpl6.html')
-rw-r--r--llvm/docs/tutorial/LangImpl6.html12
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/docs/tutorial/LangImpl6.html b/llvm/docs/tutorial/LangImpl6.html
index 5fae906c3b3..0925c801b50 100644
--- a/llvm/docs/tutorial/LangImpl6.html
+++ b/llvm/docs/tutorial/LangImpl6.html
@@ -277,9 +277,9 @@ Value *BinaryExprAST::Codegen() {
if (L == 0 || R == 0) return 0;
switch (Op) {
- case '+': return Builder.CreateAdd(L, R, "addtmp");
- case '-': return Builder.CreateSub(L, R, "subtmp");
- case '*': return Builder.CreateMul(L, R, "multmp");
+ case '+': return Builder.CreateFAdd(L, R, "addtmp");
+ case '-': return Builder.CreateFSub(L, R, "subtmp");
+ case '*': return Builder.CreateFMul(L, R, "multmp");
case '&lt;':
L = Builder.CreateFCmpULT(L, R, "cmptmp");
// Convert bool 0/1 to double 0.0 or 1.0
@@ -1392,9 +1392,9 @@ Value *BinaryExprAST::Codegen() {
if (L == 0 || R == 0) return 0;
switch (Op) {
- case '+': return Builder.CreateAdd(L, R, "addtmp");
- case '-': return Builder.CreateSub(L, R, "subtmp");
- case '*': return Builder.CreateMul(L, R, "multmp");
+ case '+': return Builder.CreateFAdd(L, R, "addtmp");
+ case '-': return Builder.CreateFSub(L, R, "subtmp");
+ case '*': return Builder.CreateFMul(L, R, "multmp");
case '&lt;':
L = Builder.CreateFCmpULT(L, R, "cmptmp");
// Convert bool 0/1 to double 0.0 or 1.0
OpenPOWER on IntegriCloud