LLVM  14.0.0git
Public Types | Public Member Functions | Public Attributes | List of all members
llvm::OpenMPIRBuilder::OutlineInfo Struct Reference

Helper that contains information about regions we need to outline during finalization. More...

#include "llvm/Frontend/OpenMP/OMPIRBuilder.h"

Collaboration diagram for llvm::OpenMPIRBuilder::OutlineInfo:
Collaboration graph
[legend]

Public Types

using PostOutlineCBTy = std::function< void(Function &)>
 

Public Member Functions

void collectBlocks (SmallPtrSetImpl< BasicBlock * > &BlockSet, SmallVectorImpl< BasicBlock * > &BlockVector)
 Collect all blocks in between EntryBB and ExitBB in both the given vector and set. More...
 
FunctiongetFunction () const
 Return the function that contains the region to be outlined. More...
 

Public Attributes

PostOutlineCBTy PostOutlineCB
 
BasicBlockEntryBB
 
BasicBlockExitBB
 

Detailed Description

Helper that contains information about regions we need to outline during finalization.

Definition at line 721 of file OMPIRBuilder.h.

Member Typedef Documentation

◆ PostOutlineCBTy

Definition at line 722 of file OMPIRBuilder.h.

Member Function Documentation

◆ collectBlocks()

void OpenMPIRBuilder::OutlineInfo::collectBlocks ( SmallPtrSetImpl< BasicBlock * > &  BlockSet,
SmallVectorImpl< BasicBlock * > &  BlockVector 
)

Collect all blocks in between EntryBB and ExitBB in both the given vector and set.

Definition at line 2896 of file OMPIRBuilder.cpp.

References BB, llvm::SmallPtrSetImpl< PtrType >::insert(), llvm::SmallVectorImpl< T >::pop_back_val(), and llvm::successors().

Referenced by llvm::OpenMPIRBuilder::createParallel().

◆ getFunction()

Function* llvm::OpenMPIRBuilder::OutlineInfo::getFunction ( ) const
inline

Return the function that contains the region to be outlined.

Definition at line 732 of file OMPIRBuilder.h.

References EntryBB, and llvm::BasicBlock::getParent().

Member Data Documentation

◆ EntryBB

BasicBlock* llvm::OpenMPIRBuilder::OutlineInfo::EntryBB

Definition at line 724 of file OMPIRBuilder.h.

Referenced by llvm::OpenMPIRBuilder::createParallel(), and getFunction().

◆ ExitBB

BasicBlock * llvm::OpenMPIRBuilder::OutlineInfo::ExitBB

Definition at line 724 of file OMPIRBuilder.h.

Referenced by llvm::OpenMPIRBuilder::createParallel().

◆ PostOutlineCB

PostOutlineCBTy llvm::OpenMPIRBuilder::OutlineInfo::PostOutlineCB

Definition at line 723 of file OMPIRBuilder.h.

Referenced by llvm::OpenMPIRBuilder::createParallel().


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