Lines Matching refs:CodeGen
966 LTOCodeGenerator CodeGen(Context); in main() local
969 CodeGen.setDiagnosticHandler(handleDiagnostics, nullptr); in main()
971 CodeGen.setCodePICModel(codegen::getExplicitRelocModel()); in main()
972 CodeGen.setFreestanding(EnableFreestanding); in main()
974 CodeGen.setDebugInfo(LTO_DEBUG_MODEL_DWARF); in main()
975 CodeGen.setTargetOptions(Options); in main()
976 CodeGen.setShouldRestoreGlobalsLinkage(RestoreGlobalsLinkage); in main()
1006 CodeGen.setModule(std::move(Module)); in main()
1007 } else if (!CodeGen.addModule(Module.get())) { in main()
1015 CodeGen.addMustPreserveSymbol(ExportedSymbols[i]); in main()
1019 CodeGen.addMustPreserveSymbol(KeptDSOSyms[i]); in main()
1022 CodeGen.setCpu(codegen::getMCPU().c_str()); in main()
1024 CodeGen.setOptLevel(OptLevel - '0'); in main()
1029 CodeGen.setAttr(attrs); in main()
1033 CodeGen.setFileType(FT.getValue()); in main()
1041 if (!CodeGen.writeMergedModules(ModuleFilename)) in main()
1045 if (!CodeGen.optimize(DisableVerify, DisableInline, DisableGVNLoadPRE, in main()
1056 if (!CodeGen.writeMergedModules(ModuleFilename)) in main()
1073 if (!CodeGen.compileOptimized(OSPtrs)) in main()
1087 if (!CodeGen.compile_to_file(&OutputName, DisableVerify, DisableInline, in main()