LLVM 19.0.0git
Functions
Collaboration diagram for Pass Managers:

Functions

LLVMPassManagerRef LLVMCreatePassManager (void)
 Constructs a new whole-module pass pipeline.
 
LLVMPassManagerRef LLVMCreateFunctionPassManagerForModule (LLVMModuleRef M)
 Constructs a new function-by-function pass pipeline over the module provider.
 
LLVMPassManagerRef LLVMCreateFunctionPassManager (LLVMModuleProviderRef MP)
 Deprecated: Use LLVMCreateFunctionPassManagerForModule instead.
 
LLVMBool LLVMRunPassManager (LLVMPassManagerRef PM, LLVMModuleRef M)
 Initializes, executes on the provided module, and finalizes all of the passes scheduled in the pass manager.
 
LLVMBool LLVMInitializeFunctionPassManager (LLVMPassManagerRef FPM)
 Initializes all of the function passes scheduled in the function pass manager.
 
LLVMBool LLVMRunFunctionPassManager (LLVMPassManagerRef FPM, LLVMValueRef F)
 Executes all of the function passes scheduled in the function pass manager on the provided function.
 
LLVMBool LLVMFinalizeFunctionPassManager (LLVMPassManagerRef FPM)
 Finalizes all of the function passes scheduled in the function pass manager.
 
void LLVMDisposePassManager (LLVMPassManagerRef PM)
 Frees the memory of a pass pipeline.
 

Detailed Description

Function Documentation

◆ LLVMCreateFunctionPassManager()

LLVMPassManagerRef LLVMCreateFunctionPassManager ( LLVMModuleProviderRef  MP)

Deprecated: Use LLVMCreateFunctionPassManagerForModule instead.

Definition at line 4323 of file Core.cpp.

References LLVMCreateFunctionPassManagerForModule(), and P.

◆ LLVMCreateFunctionPassManagerForModule()

LLVMPassManagerRef LLVMCreateFunctionPassManagerForModule ( LLVMModuleRef  M)

Constructs a new function-by-function pass pipeline over the module provider.

It does not take ownership of the module provider. This type of pipeline is suitable for code generation and JIT compilation tasks.

See also
llvm::FunctionPassManager::FunctionPassManager

Definition at line 4319 of file Core.cpp.

References llvm::unwrap(), and llvm::wrap().

Referenced by LLVMCreateFunctionPassManager().

◆ LLVMCreatePassManager()

LLVMPassManagerRef LLVMCreatePassManager ( void  )

Constructs a new whole-module pass pipeline.

This type of pipeline is suitable for link-time optimization and whole-module transformations.

See also
llvm::PassManager::PassManager

Definition at line 4315 of file Core.cpp.

References llvm::wrap().

◆ LLVMDisposePassManager()

void LLVMDisposePassManager ( LLVMPassManagerRef  PM)

Frees the memory of a pass pipeline.

For function pipelines, does not free the module provider.

See also
llvm::PassManagerBase::~PassManagerBase.

Definition at line 4344 of file Core.cpp.

References llvm::unwrap().

◆ LLVMFinalizeFunctionPassManager()

LLVMBool LLVMFinalizeFunctionPassManager ( LLVMPassManagerRef  FPM)

Finalizes all of the function passes scheduled in the function pass manager.

Returns 1 if any of the passes modified the module, 0 otherwise.

See also
llvm::FunctionPassManager::doFinalization

Definition at line 4340 of file Core.cpp.

◆ LLVMInitializeFunctionPassManager()

LLVMBool LLVMInitializeFunctionPassManager ( LLVMPassManagerRef  FPM)

Initializes all of the function passes scheduled in the function pass manager.

Returns 1 if any of the passes modified the module, 0 otherwise.

See also
llvm::FunctionPassManager::doInitialization

Definition at line 4332 of file Core.cpp.

◆ LLVMRunFunctionPassManager()

LLVMBool LLVMRunFunctionPassManager ( LLVMPassManagerRef  FPM,
LLVMValueRef  F 
)

Executes all of the function passes scheduled in the function pass manager on the provided function.

Returns 1 if any of the passes modified the function, false otherwise.

See also
llvm::FunctionPassManager::run(Function&)

Definition at line 4336 of file Core.cpp.

References F.

◆ LLVMRunPassManager()

LLVMBool LLVMRunPassManager ( LLVMPassManagerRef  PM,
LLVMModuleRef  M 
)

Initializes, executes on the provided module, and finalizes all of the passes scheduled in the pass manager.

Returns 1 if any of the passes modified the module, 0 otherwise.

See also
llvm::PassManager::run(Module&)

Definition at line 4328 of file Core.cpp.

References llvm::unwrap().