llvm.org GIT mirror llvm / 2214b81
Update html tutorial docs to match api changes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105933 91177308-0d34-0410-b5e6-96231b3b80d8 Eric Christopher 9 years ago
5 changed file(s) with 18 addition(s) and 18 deletion(s). Raw diff Collapse all Expand all
199199 if (L == 0 || R == 0) return 0;
200200
201201 switch (Op) {
202 case '+': return Builder.CreateAdd(L, R, "addtmp");
203 case '-': return Builder.CreateSub(L, R, "subtmp");
204 case '*': return Builder.CreateMul(L, R, "multmp");
202 case '+': return Builder.CreateFAdd(L, R, "addtmp");
203 case '-': return Builder.CreateFSub(L, R, "subtmp");
204 case '*': return Builder.CreateFMul(L, R, "multmp");
205205 case '<':
206206 L = Builder.CreateFCmpULT(L, R, "cmptmp");
207207 // Convert bool 0/1 to double 0.0 or 1.0
875875 if (L == 0 || R == 0) return 0;
876876
877877 switch (Op) {
878 case '+': return Builder.CreateAdd(L, R, "addtmp");
879 case '-': return Builder.CreateSub(L, R, "subtmp");
880 case '*': return Builder.CreateMul(L, R, "multmp");
878 case '+': return Builder.CreateFAdd(L, R, "addtmp");
879 case '-': return Builder.CreateFSub(L, R, "subtmp");
880 case '*': return Builder.CreateFMul(L, R, "multmp");
881881 case '<':
882882 L = Builder.CreateFCmpULT(L, R, "cmptmp");
883883 // Convert bool 0/1 to double 0.0 or 1.0
13761376 if (L == 0 || R == 0) return 0;
13771377
13781378 switch (Op) {
1379 case '+': return Builder.CreateAdd(L, R, "addtmp");
1380 case '-': return Builder.CreateSub(L, R, "subtmp");
1381 case '*': return Builder.CreateMul(L, R, "multmp");
1379 case '+': return Builder.CreateFAdd(L, R, "addtmp");
1380 case '-': return Builder.CreateFSub(L, R, "subtmp");
1381 case '*': return Builder.CreateFMul(L, R, "multmp");
13821382 case '<':
13831383 L = Builder.CreateFCmpULT(L, R, "cmptmp");
13841384 // Convert bool 0/1 to double 0.0 or 1.0
276276 if (L == 0 || R == 0) return 0;
277277
278278 switch (Op) {
279 case '+': return Builder.CreateAdd(L, R, "addtmp");
280 case '-': return Builder.CreateSub(L, R, "subtmp");
281 case '*': return Builder.CreateMul(L, R, "multmp");
279 case '+': return Builder.CreateFAdd(L, R, "addtmp");
280 case '-': return Builder.CreateFSub(L, R, "subtmp");
281 case '*': return Builder.CreateFMul(L, R, "multmp");
282282 case '<':
283283 L = Builder.CreateFCmpULT(L, R, "cmptmp");
284284 // Convert bool 0/1 to double 0.0 or 1.0
13911391 if (L == 0 || R == 0) return 0;
13921392
13931393 switch (Op) {
1394 case '+': return Builder.CreateAdd(L, R, "addtmp");
1395 case '-': return Builder.CreateSub(L, R, "subtmp");
1396 case '*': return Builder.CreateMul(L, R, "multmp");
1394 case '+': return Builder.CreateFAdd(L, R, "addtmp");
1395 case '-': return Builder.CreateFSub(L, R, "subtmp");
1396 case '*': return Builder.CreateFMul(L, R, "multmp");
13971397 case '<':
13981398 L = Builder.CreateFCmpULT(L, R, "cmptmp");
13991399 // Convert bool 0/1 to double 0.0 or 1.0
16711671 if (L == 0 || R == 0) return 0;
16721672
16731673 switch (Op) {
1674 case '+': return Builder.CreateAdd(L, R, "addtmp");
1675 case '-': return Builder.CreateSub(L, R, "subtmp");
1676 case '*': return Builder.CreateMul(L, R, "multmp");
1674 case '+': return Builder.CreateFAdd(L, R, "addtmp");
1675 case '-': return Builder.CreateFSub(L, R, "subtmp");
1676 case '*': return Builder.CreateFMul(L, R, "multmp");
16771677 case '<':
16781678 L = Builder.CreateFCmpULT(L, R, "cmptmp");
16791679 // Convert bool 0/1 to double 0.0 or 1.0