Lines Matching refs:unwrap
147 LTOCodeGenerator *CG = unwrap(cg);
285 unwrap(cg)->getContext(), mem, length, Options, path);
289 void lto_module_dispose(lto_module_t mod) { delete unwrap(mod); }
292 return unwrap(mod)->getTargetTriple().c_str();
296 return unwrap(mod)->setTargetTriple(triple);
300 return unwrap(mod)->getSymbolCount();
304 return unwrap(mod)->getSymbolName(index);
309 return unwrap(mod)->getSymbolAttributes(index);
313 return unwrap(mod)->getLinkerOpts();
319 unwrap(cg)->setDiagnosticHandler(diag_handler, ctxt);
342 void lto_codegen_dispose(lto_code_gen_t cg) { delete unwrap(cg); }
345 return !unwrap(cg)->addModule(unwrap(mod));
349 unwrap(cg)->setModule(std::unique_ptr<LTOModule>(unwrap(mod)));
353 unwrap(cg)->setDebugInfo(debug);
360 unwrap(cg)->setCodePICModel(Reloc::Static);
363 unwrap(cg)->setCodePICModel(Reloc::PIC_);
366 unwrap(cg)->setCodePICModel(Reloc::DynamicNoPIC);
369 unwrap(cg)->setCodePICModel(None);
377 return unwrap(cg)->setCpu(cpu);
391 unwrap(cg)->addMustPreserveSymbol(symbol);
396 unwrap(cg)->parseCodeGenDebugOptions();
404 return !unwrap(cg)->writeMergedModules(path);
409 LibLTOCodeGenerator *CG = unwrap(cg);
421 return !unwrap(cg)->optimize(DisableVerify, DisableInline, DisableGVNLoadPRE,
427 LibLTOCodeGenerator *CG = unwrap(cg);
437 return !unwrap(cg)->compile_to_file(
443 unwrap(cg)->setCodeGenDebugOptions(opt);
450 unwrap(cg)->setShouldInternalize(ShouldInternalize);
455 unwrap(cg)->setShouldEmbedUselists(ShouldEmbedUselists);
468 void thinlto_codegen_dispose(thinlto_code_gen_t cg) { delete unwrap(cg); }
472 unwrap(cg)->addModule(Identifier, StringRef(Data, Length));
475 void thinlto_codegen_process(thinlto_code_gen_t cg) { unwrap(cg)->run(); }
478 return unwrap(cg)->getProducedBinaries().size();
482 assert(index < unwrap(cg)->getProducedBinaries().size() && "Index overflow");
483 auto &MemBuffer = unwrap(cg)->getProducedBinaries()[index];
490 unwrap
495 unwrap(cg)->setCodeGenOnly(CodeGenOnly);
509 return unwrap(mod)->isThinLTO();
514 unwrap(cg)->preserveSymbol(StringRef(Name, Length));
519 unwrap(cg)->crossReferenceSymbol(StringRef(Name, Length));
523 return unwrap(cg)->setCpu(cpu);
528 return unwrap(cg)->setCacheDir(cache_dir);
533 return unwrap(cg)->setCachePruningInterval(interval);
538 return unwrap(cg)->setCacheEntryExpiration(expiration);
543 return unwrap(cg)->setMaxCacheSizeRelativeToAvailableSpace(Percentage);
548 return unwrap(cg)->setSaveTempsDir(save_temps_dir);
555 unwrap(cg)->setCodePICModel(Reloc::Static);
558 unwrap(cg)->setCodePICModel(Reloc::PIC_);
561 unwrap(cg)->setCodePICModel(Reloc::DynamicNoPIC);
564 unwrap(cg)->setCodePICModel(None);