Lines Matching refs:builder

845 /// @param builder builder instance
853 llvm::IRBuilder<> &builder,
873 stringVar = builder.CreateAlloca(stringConstant->getType());
874 builder.CreateStore(stringConstant, stringVar);
877 llvm::Value *cast = builder.CreatePointerCast(stringVar,
878 builder.getInt8PtrTy());
879 builder.CreateCall(printFunct, cast);
887 /// @param builder builder instance
897 llvm::IRBuilder<> &builder,
917 stringVar = builder.CreateAlloca(stringConstant->getType());
918 builder.CreateStore(stringConstant, stringVar);
921 llvm::Value *cast = builder.CreateBitCast(stringVar,
922 builder.getInt8PtrTy());
923 builder.CreateCall(&printFunct, {&toPrint, cast});
937 /// @param builder builder instance
949 llvm::IRBuilder<> &builder,
973 llvm::PointerType *exceptionStorageType = builder.getInt8PtrTy();
989 builder.SetInsertPoint(ret);
996 builder,
1000 llvm::SwitchInst *theSwitch = builder.CreateSwitch(builder.CreateLoad(
1016 /// @param builder builder instance
1025 llvm::IRBuilder<> &builder,
1036 builder.SetInsertPoint(ret);
1046 builder,
1049 builder.CreateStore(ourExceptionCaughtState, &exceptionCaughtFlag);
1050 builder.CreateBr(&terminatorBlock);
1067 /// @param builder builder instance
1076 llvm::Module &module, llvm::IRBuilder<> &builder,
1085 argTypes.push_back(builder.getInt32Ty());
1091 builder.getVoidTy(),
1140 builder,
1157 builder,
1167 builder.SetInsertPoint(entryBlock);
1171 builder.CreateInvoke(&toInvoke,
1178 builder.SetInsertPoint(endBlock);
1182 builder,
1188 builder.CreateCall(deleteOurException,
1189 builder.CreateLoad(exceptionStorage));
1190 builder.CreateRetVoid();
1194 builder.SetInsertPoint(normalBlock);
1198 builder,
1203 builder.CreateBr(finallyBlock);
1207 builder.SetInsertPoint(unwindResumeBlock);
1209 builder.CreateResume(builder.CreateLoad(caughtResultStorage));
1213 builder.SetInsertPoint(exceptionBlock);
1219 builder.CreateLandingPad(ourCaughtResultType,
1231 llvm::Value *unwindException = builder.CreateExtractValue(caughtResult, 0);
1232 llvm::Value *retTypeInfoIndex = builder.CreateExtractValue(caughtResult, 1);
1237 builder.CreateStore(caughtResult, caughtResultStorage);
1238 builder.CreateStore(unwindException, exceptionStorage);
1239 builder.CreateStore(ourExceptionThrownState, exceptionCaughtFlag);
1245 builder.CreateLoad(builder.CreateStructGEP(
1247 builder.CreatePointerCast(unwindException,
1253 builder.CreateCondBr(builder.CreateICmpEQ(unwindExceptionClass,
1254 llvm::ConstantInt::get(builder.getInt64Ty(),
1261 builder.SetInsertPoint(externalExceptionBlock);
1265 builder,
1270 builder.CreateBr(finallyBlock);
1274 builder.SetInsertPoint(exceptionRouteBlock);
1280 llvm::Value *typeInfoThrown = builder.CreatePointerCast(
1281 builder.CreateConstGEP1_64(unwindException,
1289 typeInfoThrown = builder.CreateStructGEP(ourExceptionType, typeInfoThrown, 0);
1292 builder.CreateStructGEP(builder.getInt8PtrTy(), typeInfoThrown, 0);
1296 builder,
1298 *(builder.CreateLoad(typeInfoThrownType)),
1306 llvm::SwitchInst *switchToCatchBlock = builder.CreateSwitch(retTypeInfoIndex,
1331 /// @param builder builder instance
1341 createThrowExceptionFunction(llvm::Module &module, llvm::IRBuilder<> &builder,
1348 unwindArgTypes.push_back(builder.getInt32Ty());
1353 builder.getVoidTy(),
1379 builder.SetInsertPoint(nativeThrowBlock);
1382 builder.CreateCall(&nativeThrowFunct, exceptionType);
1383 builder.CreateUnreachable();
1387 builder.SetInsertPoint(entryBlock);
1392 builder,
1403 llvm::SwitchInst *theSwitch = builder.CreateSwitch(exceptionType,
1413 builder.SetInsertPoint(generatedThrowBlock);
1420 llvm::Value *exception = builder.CreateCall(createOurException,
1424 builder.CreateCall(raiseOurException, exception);
1425 builder.CreateUnreachable();
1435 llvm::IRBuilder<> &builder);
1451 /// @param builder builder instance
1458 createUnwindExceptionTest(llvm::Module &module, llvm::IRBuilder<> &builder,
1468 builder);
1474 builder,
1486 builder,
1500 builder,
1593 /// @param builder builder instance
1596 llvm::IRBuilder<> &builder) {
1614 TypeArray(builder.getInt32Ty()));
1617 builder.getInt8PtrTy(),
1618 builder.getInt32Ty()
1635 TypeArray(builder.getInt64Ty()));
1671 structVals.push_back(llvm::ConstantInt::get(builder.getInt32Ty(), i));
1696 llvm::Type *retType = builder.getVoidTy();
1699 argTypes.push_back(builder.getInt32Ty());
1700 argTypes.push_back(builder.getInt8PtrTy());
1715 retType = builder.getVoidTy();
1718 argTypes.push_back(builder.getInt64Ty());
1719 argTypes.push_back(builder.getInt8PtrTy());
1734 retType = builder.getVoidTy();
1737 argTypes.push_back(builder.getInt8PtrTy());
1752 retType = builder.getVoidTy();
1755 argTypes.push_back(builder.getInt32Ty());
1770 retType = builder.getVoidTy();
1773 argTypes.push_back(builder.getInt8PtrTy());
1788 retType = builder.getInt8PtrTy();
1791 argTypes.push_back(builder.getInt32Ty());
1806 retType = builder.getInt32Ty();
1809 argTypes.push_back(builder.getInt8PtrTy());
1826 retType = builder.getInt32Ty();
1829 argTypes.push_back(builder.getInt8PtrTy());
1846 retType = builder.getInt32Ty();
1849 argTypes.push_back(builder.getInt32Ty());
1850 argTypes.push_back(builder.getInt32Ty());
1851 argTypes.push_back(builder.getInt64Ty());
1852 argTypes.push_back(builder.getInt8PtrTy());
1853 argTypes.push_back(builder.getInt8PtrTy());