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