Lines Matching full:builder
895 /// @param builder builder instance
903 llvm::IRBuilder<> &builder,
923 stringVar = builder.CreateAlloca(stringConstant->getType());
924 builder.CreateStore(stringConstant, stringVar);
927 llvm::Value *cast = builder.CreatePointerCast(stringVar,
928 builder.getInt8PtrTy());
929 builder.CreateCall(printFunct, cast);
937 /// @param builder builder instance
947 llvm::IRBuilder<> &builder,
967 stringVar = builder.CreateAlloca(stringConstant->getType());
968 builder.CreateStore(stringConstant, stringVar);
971 llvm::Value *cast = builder.CreateBitCast(stringVar,
972 builder.getInt8PtrTy());
973 builder.CreateCall2(&printFunct, &toPrint, cast);
987 /// @param builder builder instance
999 llvm::IRBuilder<> &builder,
1023 llvm::PointerType *exceptionStorageType = builder.getInt8PtrTy();
1039 builder.SetInsertPoint(ret);
1046 builder,
1050 llvm::SwitchInst *theSwitch = builder.CreateSwitch(builder.CreateLoad(
1066 /// @param builder builder instance
1075 llvm::IRBuilder<> &builder,
1086 builder.SetInsertPoint(ret);
1096 builder,
1099 builder.CreateStore(ourExceptionCaughtState, &exceptionCaughtFlag);
1100 builder.CreateBr(&terminatorBlock);
1117 /// @param builder builder instance
1127 llvm::IRBuilder<> &builder,
1138 argTypes.push_back(builder.getInt32Ty());
1144 builder.getVoidTy(),
1193 builder,
1210 builder,
1220 builder.SetInsertPoint(entryBlock);
1224 builder.CreateInvoke(&toInvoke,
1231 builder.SetInsertPoint(endBlock);
1235 builder,
1241 builder.CreateCall(deleteOurException,
1242 builder.CreateLoad(exceptionStorage));
1243 builder.CreateRetVoid();
1247 builder.SetInsertPoint(normalBlock);
1251 builder,
1256 builder.CreateBr(finallyBlock);
1260 builder.SetInsertPoint(unwindResumeBlock);
1262 builder.CreateResume(builder.CreateLoad(caughtResultStorage));
1266 builder.SetInsertPoint(exceptionBlock);
1271 builder.CreateLandingPad(ourCaughtResultType,
1284 llvm::Value *unwindException = builder.CreateExtractValue(caughtResult, 0);
1285 llvm::Value *retTypeInfoIndex = builder.CreateExtractValue(caughtResult, 1);
1290 builder.CreateStore(caughtResult, caughtResultStorage);
1291 builder.CreateStore(unwindException, exceptionStorage);
1292 builder.CreateStore(ourExceptionThrownState, exceptionCaughtFlag);
1298 builder.CreateLoad(builder.CreateStructGEP(
1299 builder.CreatePointerCast(unwindException,
1305 builder.CreateCondBr(builder.CreateICmpEQ(unwindExceptionClass,
1306 llvm::ConstantInt::get(builder.getInt64Ty(),
1313 builder.SetInsertPoint(externalExceptionBlock);
1317 builder,
1322 builder.CreateBr(finallyBlock);
1326 builder.SetInsertPoint(exceptionRouteBlock);
1332 llvm::Value *typeInfoThrown = builder.CreatePointerCast(
1333 builder.CreateConstGEP1_64(unwindException,
1341 typeInfoThrown = builder.CreateStructGEP(typeInfoThrown, 0);
1344 builder.CreateStructGEP(typeInfoThrown, 0);
1348 builder,
1350 *(builder.CreateLoad(typeInfoThrownType)),
1358 llvm::SwitchInst *switchToCatchBlock = builder.CreateSwitch(retTypeInfoIndex,
1383 /// @param builder builder instance
1394 llvm::IRBuilder<> &builder,
1402 unwindArgTypes.push_back(builder.getInt32Ty());
1407 builder.getVoidTy(),
1433 builder.SetInsertPoint(nativeThrowBlock);
1436 builder.CreateCall(&nativeThrowFunct, exceptionType);
1437 builder.CreateUnreachable();
1441 builder.SetInsertPoint(entryBlock);
1446 builder,
1457 llvm::SwitchInst *theSwitch = builder.CreateSwitch(exceptionType,
1467 builder.SetInsertPoint(generatedThrowBlock);
1474 llvm::Value *exception = builder.CreateCall(createOurException,
1478 builder.CreateCall(raiseOurException, exception);
1479 builder.CreateUnreachable();
1489 llvm::IRBuilder<> &builder);
1505 /// @param builder builder instance
1512 llvm::IRBuilder<> &builder,
1522 builder);
1528 builder,
1540 builder,
1554 builder,
1647 /// @param builder builder instance
1650 llvm::IRBuilder<> &builder) {
1668 TypeArray(builder.getInt32Ty()));
1671 builder.getInt8PtrTy(),
1672 builder.getInt32Ty()
1689 TypeArray(builder.getInt64Ty()));
1725 structVals.push_back(llvm::ConstantInt::get(builder.getInt32Ty(), i));
1750 llvm::Type *retType = builder.getVoidTy();
1753 argTypes.push_back(builder.getInt32Ty());
1754 argTypes.push_back(builder.getInt8PtrTy());
1769 retType = builder.getVoidTy();
1772 argTypes.push_back(builder.getInt64Ty());
1773 argTypes.push_back(builder.getInt8PtrTy());
1788 retType = builder.getVoidTy();
1791 argTypes.push_back(builder.getInt8PtrTy());
1806 retType = builder.getVoidTy();
1809 argTypes.push_back(builder.getInt32Ty());
1824 retType = builder.getVoidTy();
1827 argTypes.push_back(builder.getInt8PtrTy());
1842 retType = builder.getInt8PtrTy();
1845 argTypes.push_back(builder.getInt32Ty());
1860 retType = builder.getInt32Ty();
1863 argTypes.push_back(builder.getInt8PtrTy());
1880 retType = builder.getInt32Ty();
1883 argTypes.push_back(builder.getInt8PtrTy());
1900 retType = builder.getInt32Ty();
1903 argTypes.push_back(builder.getInt32Ty());
1904 argTypes.push_back(builder.getInt32Ty());
1905 argTypes.push_back(builder.getInt64Ty());
1906 argTypes.push_back(builder.getInt8PtrTy());
1907 argTypes.push_back(builder.getInt8PtrTy());