Lines Matching refs:opts

29 namespace opts {  namespace
110 if (opts::Instrument) in MachORewriteInstance()
165 if (opts::PrintSections) { in readSpecialSections()
285 if (!opts::Instrument) in discoverFileObjects()
336 if (opts::PrintDisasm) in disassembleFunctions()
359 if (opts::PrintCFG) in postProcessFunctions()
366 if (opts::Instrument) { in runOptimizationPasses()
368 Manager.registerPass(std::make_unique<Instrumentation>(opts::NeverPrint)); in runOptimizationPasses()
371 Manager.registerPass(std::make_unique<ShortenInstructions>(opts::NeverPrint)); in runOptimizationPasses()
373 Manager.registerPass(std::make_unique<RemoveNops>(opts::NeverPrint)); in runOptimizationPasses()
375 Manager.registerPass(std::make_unique<NormalizeCFG>(opts::PrintNormalized)); in runOptimizationPasses()
378 std::make_unique<ReorderBasicBlocks>(opts::PrintReordered)); in runOptimizationPasses()
380 std::make_unique<FixupBranches>(opts::PrintAfterBranchFixup)); in runOptimizationPasses()
383 std::make_unique<FinalizeFunctions>(opts::PrintFinalized)); in runOptimizationPasses()
389 if (!opts::Instrument) in mapInstrumentationSection()
425 if (opts::Instrument) { in mapCodeSections()
484 opts::OutputFilename + ".bolt.o", EC, sys::fs::OF_None); in emitAndLink()
487 if (opts::KeepTmp) in emitAndLink()
545 if (!opts::Instrument) in writeInstrumentationSection()
564 Out = std::make_unique<ToolOutputFile>(opts::OutputFilename, EC, in rewriteFile()
575 if (!opts::Instrument && (Function.getImageSize() > Function.getMaxSize())) in rewriteFile()
577 if (opts::Verbosity >= 2) in rewriteFile()
601 EC = sys::fs::setPermissions(opts::OutputFilename, in rewriteFile()
609 if (!opts::AlignText.getNumOccurrences()) in adjustCommandLineOptions()
610 opts::AlignText = BC->PageAlign; in adjustCommandLineOptions()
611 if (opts::Instrument.getNumOccurrences()) in adjustCommandLineOptions()
612 opts::ForcePatch = true; in adjustCommandLineOptions()
613 opts::JumpTables = JTS_MOVE; in adjustCommandLineOptions()
614 opts::InstrumentCalls = false; in adjustCommandLineOptions()
615 opts::RuntimeInstrumentationLib = "libbolt_rt_instr_osx.a"; in adjustCommandLineOptions()