Lines Matching refs:builder
874 llvm::IRBuilder<> &builder, in generateStringPrint() argument
894 stringVar = builder.CreateAlloca(stringConstant->getType()); in generateStringPrint()
895 builder.CreateStore(stringConstant, stringVar); in generateStringPrint()
898 llvm::Value *cast = builder.CreatePointerCast(stringVar, in generateStringPrint()
899 builder.getInt8PtrTy()); in generateStringPrint()
900 builder.CreateCall(printFunct, cast); in generateStringPrint()
918 llvm::IRBuilder<> &builder, in generateIntegerPrint() argument
938 stringVar = builder.CreateAlloca(stringConstant->getType()); in generateIntegerPrint()
939 builder.CreateStore(stringConstant, stringVar); in generateIntegerPrint()
942 llvm::Value *cast = builder.CreateBitCast(stringVar, in generateIntegerPrint()
943 builder.getInt8PtrTy()); in generateIntegerPrint()
944 builder.CreateCall2(&printFunct, &toPrint, cast); in generateIntegerPrint()
970 llvm::IRBuilder<> &builder, in createFinallyBlock() argument
994 llvm::PointerType *exceptionStorageType = builder.getInt8PtrTy(); in createFinallyBlock()
1010 builder.SetInsertPoint(ret); in createFinallyBlock()
1017 builder, in createFinallyBlock()
1021 llvm::SwitchInst *theSwitch = builder.CreateSwitch(builder.CreateLoad( in createFinallyBlock()
1046 llvm::IRBuilder<> &builder, in createCatchBlock() argument
1057 builder.SetInsertPoint(ret); in createCatchBlock()
1067 builder, in createCatchBlock()
1070 builder.CreateStore(ourExceptionCaughtState, &exceptionCaughtFlag); in createCatchBlock()
1071 builder.CreateBr(&terminatorBlock); in createCatchBlock()
1098 llvm::IRBuilder<> &builder, in createCatchWrappedInvokeFunction() argument
1109 argTypes.push_back(builder.getInt32Ty()); in createCatchWrappedInvokeFunction()
1115 builder.getVoidTy(), in createCatchWrappedInvokeFunction()
1164 builder, in createCatchWrappedInvokeFunction()
1181 builder, in createCatchWrappedInvokeFunction()
1191 builder.SetInsertPoint(entryBlock); in createCatchWrappedInvokeFunction()
1195 builder.CreateInvoke(&toInvoke, in createCatchWrappedInvokeFunction()
1202 builder.SetInsertPoint(endBlock); in createCatchWrappedInvokeFunction()
1206 builder, in createCatchWrappedInvokeFunction()
1212 builder.CreateCall(deleteOurException, in createCatchWrappedInvokeFunction()
1213 builder.CreateLoad(exceptionStorage)); in createCatchWrappedInvokeFunction()
1214 builder.CreateRetVoid(); in createCatchWrappedInvokeFunction()
1218 builder.SetInsertPoint(normalBlock); in createCatchWrappedInvokeFunction()
1222 builder, in createCatchWrappedInvokeFunction()
1227 builder.CreateBr(finallyBlock); in createCatchWrappedInvokeFunction()
1231 builder.SetInsertPoint(unwindResumeBlock); in createCatchWrappedInvokeFunction()
1233 builder.CreateResume(builder.CreateLoad(caughtResultStorage)); in createCatchWrappedInvokeFunction()
1237 builder.SetInsertPoint(exceptionBlock); in createCatchWrappedInvokeFunction()
1242 builder.CreateLandingPad(ourCaughtResultType, in createCatchWrappedInvokeFunction()
1255 llvm::Value *unwindException = builder.CreateExtractValue(caughtResult, 0); in createCatchWrappedInvokeFunction()
1256 llvm::Value *retTypeInfoIndex = builder.CreateExtractValue(caughtResult, 1); in createCatchWrappedInvokeFunction()
1261 builder.CreateStore(caughtResult, caughtResultStorage); in createCatchWrappedInvokeFunction()
1262 builder.CreateStore(unwindException, exceptionStorage); in createCatchWrappedInvokeFunction()
1263 builder.CreateStore(ourExceptionThrownState, exceptionCaughtFlag); in createCatchWrappedInvokeFunction()
1269 builder.CreateLoad(builder.CreateStructGEP( in createCatchWrappedInvokeFunction()
1270 builder.CreatePointerCast(unwindException, in createCatchWrappedInvokeFunction()
1276 builder.CreateCondBr(builder.CreateICmpEQ(unwindExceptionClass, in createCatchWrappedInvokeFunction()
1277 llvm::ConstantInt::get(builder.getInt64Ty(), in createCatchWrappedInvokeFunction()
1284 builder.SetInsertPoint(externalExceptionBlock); in createCatchWrappedInvokeFunction()
1288 builder, in createCatchWrappedInvokeFunction()
1293 builder.CreateBr(finallyBlock); in createCatchWrappedInvokeFunction()
1297 builder.SetInsertPoint(exceptionRouteBlock); in createCatchWrappedInvokeFunction()
1303 llvm::Value *typeInfoThrown = builder.CreatePointerCast( in createCatchWrappedInvokeFunction()
1304 builder.CreateConstGEP1_64(unwindException, in createCatchWrappedInvokeFunction()
1312 typeInfoThrown = builder.CreateStructGEP(typeInfoThrown, 0); in createCatchWrappedInvokeFunction()
1315 builder.CreateStructGEP(typeInfoThrown, 0); in createCatchWrappedInvokeFunction()
1319 builder, in createCatchWrappedInvokeFunction()
1321 *(builder.CreateLoad(typeInfoThrownType)), in createCatchWrappedInvokeFunction()
1329 llvm::SwitchInst *switchToCatchBlock = builder.CreateSwitch(retTypeInfoIndex, in createCatchWrappedInvokeFunction()
1365 llvm::IRBuilder<> &builder, in createThrowExceptionFunction() argument
1373 unwindArgTypes.push_back(builder.getInt32Ty()); in createThrowExceptionFunction()
1378 builder.getVoidTy(), in createThrowExceptionFunction()
1404 builder.SetInsertPoint(nativeThrowBlock); in createThrowExceptionFunction()
1407 builder.CreateCall(&nativeThrowFunct, exceptionType); in createThrowExceptionFunction()
1408 builder.CreateUnreachable(); in createThrowExceptionFunction()
1412 builder.SetInsertPoint(entryBlock); in createThrowExceptionFunction()
1417 builder, in createThrowExceptionFunction()
1428 llvm::SwitchInst *theSwitch = builder.CreateSwitch(exceptionType, in createThrowExceptionFunction()
1438 builder.SetInsertPoint(generatedThrowBlock); in createThrowExceptionFunction()
1445 llvm::Value *exception = builder.CreateCall(createOurException, in createThrowExceptionFunction()
1449 builder.CreateCall(raiseOurException, exception); in createThrowExceptionFunction()
1450 builder.CreateUnreachable(); in createThrowExceptionFunction()
1460 llvm::IRBuilder<> &builder);
1483 llvm::IRBuilder<> &builder, in createUnwindExceptionTest() argument
1493 builder); in createUnwindExceptionTest()
1499 builder, in createUnwindExceptionTest()
1511 builder, in createUnwindExceptionTest()
1525 builder, in createUnwindExceptionTest()
1621 llvm::IRBuilder<> &builder) { in createStandardUtilityFunctions() argument
1639 TypeArray(builder.getInt32Ty())); in createStandardUtilityFunctions()
1642 builder.getInt8PtrTy(), in createStandardUtilityFunctions()
1643 builder.getInt32Ty() in createStandardUtilityFunctions()
1660 TypeArray(builder.getInt64Ty())); in createStandardUtilityFunctions()
1697 structVals.push_back(llvm::ConstantInt::get(builder.getInt32Ty(), i)); in createStandardUtilityFunctions()
1723 llvm::Type *retType = builder.getVoidTy(); in createStandardUtilityFunctions()
1726 argTypes.push_back(builder.getInt32Ty()); in createStandardUtilityFunctions()
1727 argTypes.push_back(builder.getInt8PtrTy()); in createStandardUtilityFunctions()
1742 retType = builder.getVoidTy(); in createStandardUtilityFunctions()
1745 argTypes.push_back(builder.getInt64Ty()); in createStandardUtilityFunctions()
1746 argTypes.push_back(builder.getInt8PtrTy()); in createStandardUtilityFunctions()
1761 retType = builder.getVoidTy(); in createStandardUtilityFunctions()
1764 argTypes.push_back(builder.getInt8PtrTy()); in createStandardUtilityFunctions()
1779 retType = builder.getVoidTy(); in createStandardUtilityFunctions()
1782 argTypes.push_back(builder.getInt32Ty()); in createStandardUtilityFunctions()
1797 retType = builder.getVoidTy(); in createStandardUtilityFunctions()
1800 argTypes.push_back(builder.getInt8PtrTy()); in createStandardUtilityFunctions()
1815 retType = builder.getInt8PtrTy(); in createStandardUtilityFunctions()
1818 argTypes.push_back(builder.getInt32Ty()); in createStandardUtilityFunctions()
1833 retType = builder.getInt32Ty(); in createStandardUtilityFunctions()
1836 argTypes.push_back(builder.getInt8PtrTy()); in createStandardUtilityFunctions()
1853 retType = builder.getInt32Ty(); in createStandardUtilityFunctions()
1856 argTypes.push_back(builder.getInt8PtrTy()); in createStandardUtilityFunctions()
1873 retType = builder.getInt32Ty(); in createStandardUtilityFunctions()
1876 argTypes.push_back(builder.getInt32Ty()); in createStandardUtilityFunctions()
1877 argTypes.push_back(builder.getInt32Ty()); in createStandardUtilityFunctions()
1878 argTypes.push_back(builder.getInt64Ty()); in createStandardUtilityFunctions()
1879 argTypes.push_back(builder.getInt8PtrTy()); in createStandardUtilityFunctions()
1880 argTypes.push_back(builder.getInt8PtrTy()); in createStandardUtilityFunctions()