LLVM  6.0.0svn
Public Member Functions | Static Public Member Functions | List of all members
llvm::FunctionImportGlobalProcessing Class Reference

Class to handle necessary GlobalValue changes required by ThinLTO function importing, including linkage changes and any necessary renaming. More...

#include "llvm/Transforms/Utils/FunctionImportUtils.h"

Public Member Functions

 FunctionImportGlobalProcessing (Module &M, const ModuleSummaryIndex &Index, SetVector< GlobalValue *> *GlobalsToImport=nullptr)
 
bool run ()
 

Static Public Member Functions

static bool doImportAsDefinition (const GlobalValue *SGV, SetVector< GlobalValue *> *GlobalsToImport)
 Checks if we should import SGV as a definition, otherwise import as a declaration. More...
 

Detailed Description

Class to handle necessary GlobalValue changes required by ThinLTO function importing, including linkage changes and any necessary renaming.

Definition at line 26 of file FunctionImportUtils.h.

Constructor & Destructor Documentation

◆ FunctionImportGlobalProcessing()

llvm::FunctionImportGlobalProcessing::FunctionImportGlobalProcessing ( Module M,
const ModuleSummaryIndex Index,
SetVector< GlobalValue *> *  GlobalsToImport = nullptr 
)
inline

Member Function Documentation

◆ doImportAsDefinition()

bool FunctionImportGlobalProcessing::doImportAsDefinition ( const GlobalValue SGV,
SetVector< GlobalValue *> *  GlobalsToImport 
)
static

◆ run()

bool FunctionImportGlobalProcessing::run ( )

The documentation for this class was generated from the following files: