class FunctionImporter

Declaration

class FunctionImporter { /* full declaration omitted */ };

Description

The function importer is automatically importing function from other modules based on the provided summary informations.

Declared at: llvm/include/llvm/Transforms/IPO/FunctionImport.h:33

Member Variables

private const llvm::ModuleSummaryIndex& Index
The summaries index used to trigger importing.
private llvm::FunctionImporter::ModuleLoaderTy ModuleLoader
Factory function to load a Module for a given identifier
private bool ClearDSOLocalOnDeclarations
See the comment of ClearDSOLocalOnDeclarations in Utils/FunctionImportUtils.h.

Method Overview

  • public FunctionImporter(const llvm::ModuleSummaryIndex & Index, llvm::FunctionImporter::ModuleLoaderTy ModuleLoader, bool ClearDSOLocalOnDeclarations)
  • public Expected<bool> importFunctions(llvm::Module & M, const llvm::FunctionImporter::ImportMapTy & ImportList)

Methods

FunctionImporter(
    const llvm::ModuleSummaryIndex& Index,
    llvm::FunctionImporter::ModuleLoaderTy
        ModuleLoader,
    bool ClearDSOLocalOnDeclarations)

Description

Create a Function Importer.

Declared at: llvm/include/llvm/Transforms/IPO/FunctionImport.h:108

Parameters

const llvm::ModuleSummaryIndex& Index
llvm::FunctionImporter::ModuleLoaderTy ModuleLoader
bool ClearDSOLocalOnDeclarations

Expected<bool> importFunctions(
    llvm::Module& M,
    const llvm::FunctionImporter::ImportMapTy&
        ImportList)

Description

Import functions in Module \p M based on the supplied import list.

Declared at: llvm/include/llvm/Transforms/IPO/FunctionImport.h:114

Parameters

llvm::Module& M
const llvm::FunctionImporter::ImportMapTy& ImportList