Lines Matching defs:flang
9 // This is the entry point to the flang -fc1 functionality, which implements the
19 #include "flang/Frontend/CompilerInstance.h"
20 #include "flang/Frontend/CompilerInvocation.h"
21 #include "flang/Frontend/TextDiagnosticBuffer.h"
22 #include "flang/FrontendTool/Utils.h"
55 std::unique_ptr<CompilerInstance> flang(new CompilerInstance());
58 flang->createDiagnostics();
59 if (!flang->hasDiagnostics())
73 bool success = CompilerInvocation::createFromArgs(flang->getInvocation(),
82 if (flang->getFrontendOpts().printSupportedCPUs)
83 return printSupportedCPUs(flang->getInvocation().getTargetOpts().triple);
85 diagsBuffer->flushDiagnostics(flang->getDiagnostics());
91 success = executeCompilerInvocation(flang.get());
94 flang->clearOutputFiles(/*EraseFiles=*/false);