Lines Matching refs:unwrap
147 LTOCodeGenerator *CG = unwrap(cg); in DEFINE_SIMPLE_CONVERSION_FUNCTIONS()
285 unwrap(cg)->getContext(), mem, length, Options, path); in lto_module_create_in_codegen_context()
289 void lto_module_dispose(lto_module_t mod) { delete unwrap(mod); } in lto_module_dispose()
292 return unwrap(mod)->getTargetTriple().c_str(); in lto_module_get_target_triple()
296 return unwrap(mod)->setTargetTriple(triple); in lto_module_set_target_triple()
300 return unwrap(mod)->getSymbolCount(); in lto_module_get_num_symbols()
304 return unwrap(mod)->getSymbolName(index); in lto_module_get_symbol_name()
309 return unwrap(mod)->getSymbolAttributes(index); in lto_module_get_symbol_attribute()
313 return unwrap(mod)->getLinkerOpts(); in lto_module_get_linkeropts()
319 unwrap(cg)->setDiagnosticHandler(diag_handler, ctxt); in lto_codegen_set_diagnostic_handler()
342 void lto_codegen_dispose(lto_code_gen_t cg) { delete unwrap(cg); } in lto_codegen_dispose()
345 return !unwrap(cg)->addModule(unwrap(mod)); in lto_codegen_add_module()
349 unwrap(cg)->setModule(std::unique_ptr<LTOModule>(unwrap(mod))); in lto_codegen_set_module()
353 unwrap(cg)->setDebugInfo(debug); in lto_codegen_set_debug_model()
360 unwrap(cg)->setCodePICModel(Reloc::Static); in lto_codegen_set_pic_model()
363 unwrap(cg)->setCodePICModel(Reloc::PIC_); in lto_codegen_set_pic_model()
366 unwrap(cg)->setCodePICModel(Reloc::DynamicNoPIC); in lto_codegen_set_pic_model()
369 unwrap(cg)->setCodePICModel(None); in lto_codegen_set_pic_model()
377 return unwrap(cg)->setCpu(cpu); in lto_codegen_set_cpu()
391 unwrap(cg)->addMustPreserveSymbol(symbol); in lto_codegen_add_must_preserve_symbol()
396 unwrap(cg)->parseCodeGenDebugOptions(); in maybeParseOptions()
404 return !unwrap(cg)->writeMergedModules(path); in lto_codegen_write_merged_modules()
409 LibLTOCodeGenerator *CG = unwrap(cg); in lto_codegen_compile()
421 return !unwrap(cg)->optimize(DisableVerify, DisableInline, DisableGVNLoadPRE, in lto_codegen_optimize()
427 LibLTOCodeGenerator *CG = unwrap(cg); in lto_codegen_compile_optimized()
437 return !unwrap(cg)->compile_to_file( in lto_codegen_compile_to_file()
443 unwrap(cg)->setCodeGenDebugOptions(opt); in lto_codegen_debug_options()
450 unwrap(cg)->setShouldInternalize(ShouldInternalize); in lto_codegen_set_should_internalize()
455 unwrap(cg)->setShouldEmbedUselists(ShouldEmbedUselists); in lto_codegen_set_should_embed_uselists()
468 void thinlto_codegen_dispose(thinlto_code_gen_t cg) { delete unwrap(cg); } in thinlto_codegen_dispose()
472 unwrap(cg)->addModule(Identifier, StringRef(Data, Length)); in thinlto_codegen_add_module()
475 void thinlto_codegen_process(thinlto_code_gen_t cg) { unwrap(cg)->run(); } in thinlto_codegen_process()
478 return unwrap(cg)->getProducedBinaries().size(); in thinlto_module_get_num_objects()
482 assert(index < unwrap(cg)->getProducedBinaries().size() && "Index overflow"); in thinlto_module_get_object()
483 auto &MemBuffer = unwrap(cg)->getProducedBinaries()[index]; in thinlto_module_get_object()
490 unwrap(cg)->disableCodeGen(disable); in thinlto_codegen_disable_codegen()
495 unwrap(cg)->setCodeGenOnly(CodeGenOnly); in thinlto_codegen_set_codegen_only()
509 return unwrap(mod)->isThinLTO(); in lto_module_is_thinlto()
514 unwrap(cg)->preserveSymbol(StringRef(Name, Length)); in thinlto_codegen_add_must_preserve_symbol()
519 unwrap(cg)->crossReferenceSymbol(StringRef(Name, Length)); in thinlto_codegen_add_cross_referenced_symbol()
523 return unwrap(cg)->setCpu(cpu); in thinlto_codegen_set_cpu()
528 return unwrap(cg)->setCacheDir(cache_dir); in thinlto_codegen_set_cache_dir()
533 return unwrap(cg)->setCachePruningInterval(interval); in thinlto_codegen_set_cache_pruning_interval()
538 return unwrap(cg)->setCacheEntryExpiration(expiration); in thinlto_codegen_set_cache_entry_expiration()
543 return unwrap(cg)->setMaxCacheSizeRelativeToAvailableSpace(Percentage); in thinlto_codegen_set_final_cache_size_relative_to_available_space()
548 return unwrap(cg)->setSaveTempsDir(save_temps_dir); in thinlto_codegen_set_savetemps_dir()
555 unwrap(cg)->setCodePICModel(Reloc::Static); in thinlto_codegen_set_pic_model()
558 unwrap(cg)->setCodePICModel(Reloc::PIC_); in thinlto_codegen_set_pic_model()
561 unwrap(cg)->setCodePICModel(Reloc::DynamicNoPIC); in thinlto_codegen_set_pic_model()
564 unwrap(cg)->setCodePICModel(None); in thinlto_codegen_set_pic_model()