Lines Matching refs:flang
100 bool executeCompilerInvocation(CompilerInstance *flang) { in executeCompilerInvocation() argument
102 if (flang->getFrontendOpts().showHelp) { in executeCompilerInvocation()
112 if (flang->getFrontendOpts().showVersion) { in executeCompilerInvocation()
118 for (const std::string &path : flang->getFrontendOpts().plugins) { in executeCompilerInvocation()
122 unsigned diagID = flang->getDiagnostics().getCustomDiagID( in executeCompilerInvocation()
124 flang->getDiagnostics().Report(diagID) << path << error; in executeCompilerInvocation()
129 if (!flang->getFrontendOpts().llvmArgs.empty()) { in executeCompilerInvocation()
130 unsigned numArgs = flang->getFrontendOpts().llvmArgs.size(); in executeCompilerInvocation()
135 args[i + 1] = flang->getFrontendOpts().llvmArgs[i].c_str(); in executeCompilerInvocation()
142 if (!flang->getFrontendOpts().mlirArgs.empty()) { in executeCompilerInvocation()
145 unsigned numArgs = flang->getFrontendOpts().mlirArgs.size(); in executeCompilerInvocation()
150 args[i + 1] = flang->getFrontendOpts().mlirArgs[i].c_str(); in executeCompilerInvocation()
157 if (flang->getDiagnostics().hasErrorOccurred()) { in executeCompilerInvocation()
162 flang->getDiagnosticOpts().ShowColors = flang->getFrontendOpts().showColors; in executeCompilerInvocation()
165 std::unique_ptr<FrontendAction> act(createFrontendAction(*flang)); in executeCompilerInvocation()
169 bool success = flang->executeAction(*act); in executeCompilerInvocation()