LLVM  15.0.0git
Classes | Namespaces | Macros | Functions
OMPIRBuilder.h File Reference
#include "llvm/Frontend/OpenMP/OMPConstants.h"
#include "llvm/IR/DebugLoc.h"
#include "llvm/IR/IRBuilder.h"
#include "llvm/Support/Allocator.h"
#include <forward_list>
#include "llvm/Frontend/OpenMP/OMPKinds.def"
Include dependency graph for OMPIRBuilder.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  llvm::OpenMPIRBuilder
 An interface to create LLVM-IR for OpenMP directives. More...
 
struct  llvm::OpenMPIRBuilder::FinalizationInfo
 
struct  llvm::OpenMPIRBuilder::LocationDescription
 Description of a LLVM-IR insertion point (IP) and a debug/source location (filename, line, column, ...). More...
 
struct  llvm::OpenMPIRBuilder::ReductionInfo
 Information about an OpenMP reduction. More...
 
struct  llvm::OpenMPIRBuilder::OutlineInfo
 Helper that contains information about regions we need to outline during finalization. More...
 
struct  llvm::OpenMPIRBuilder::MapperAllocas
 
struct  llvm::OpenMPIRBuilder::AtomicOpValue
 a struct to pack relevant information while generating atomic Ops More...
 
class  llvm::CanonicalLoopInfo
 Class to represented the control flow structure of an OpenMP canonical loop. More...
 

Namespaces

 llvm
 This is an optimization pass for GlobalISel generic memory operations.
 

Macros

#define OMP_TYPE(VarName, InitValue)   Type *VarName = nullptr;
 } More...
 
#define OMP_ARRAY_TYPE(VarName, ElemTy, ArraySize)
 
#define OMP_FUNCTION_TYPE(VarName, IsVarArg, ReturnType, ...)
 
#define OMP_STRUCT_TYPE(VarName, StrName, ...)
 

Functions

void llvm::spliceBB (IRBuilderBase::InsertPoint IP, BasicBlock *New, bool CreateBranch)
 Move the instruction after an InsertPoint to the beginning of another BasicBlock. More...
 
void llvm::spliceBB (IRBuilder<> &Builder, BasicBlock *New, bool CreateBranch)
 Splice a BasicBlock at an IRBuilder's current insertion point. More...
 
BasicBlockllvm::splitBB (IRBuilderBase::InsertPoint IP, bool CreateBranch, llvm::Twine Name={})
 Split a BasicBlock at an InsertPoint, even if the block is degenerate (missing the terminator). More...
 
BasicBlockllvm::splitBB (IRBuilderBase &Builder, bool CreateBranch, llvm::Twine Name={})
 Split a BasicBlock at Builder's insertion point, even if the block is degenerate (missing the terminator). More...
 
BasicBlockllvm::splitBB (IRBuilder<> &Builder, bool CreateBranch, llvm::Twine Name)
 Split a BasicBlock at Builder's insertion point, even if the block is degenerate (missing the terminator). More...
 
BasicBlockllvm::splitBBWithSuffix (IRBuilderBase &Builder, bool CreateBranch, llvm::Twine Suffix=".split")
 Like splitBB, but reuses the current block's name for the new name. More...
 

Macro Definition Documentation

◆ OMP_ARRAY_TYPE

#define OMP_ARRAY_TYPE (   VarName,
  ElemTy,
  ArraySize 
)
Value:
ArrayType *VarName##Ty = nullptr; \
PointerType *VarName##PtrTy = nullptr;

Definition at line 1205 of file OMPIRBuilder.h.

◆ OMP_FUNCTION_TYPE

#define OMP_FUNCTION_TYPE (   VarName,
  IsVarArg,
  ReturnType,
  ... 
)
Value:
FunctionType *VarName = nullptr; \
PointerType *VarName##Ptr = nullptr;

Definition at line 1208 of file OMPIRBuilder.h.

◆ OMP_STRUCT_TYPE

#define OMP_STRUCT_TYPE (   VarName,
  StrName,
  ... 
)
Value:
StructType *VarName = nullptr; \
PointerType *VarName##Ptr = nullptr;

Definition at line 1211 of file OMPIRBuilder.h.

◆ OMP_TYPE

#define OMP_TYPE (   VarName,
  InitValue 
)    Type *VarName = nullptr;

}

Declarations for LLVM-IR types (simple, array, function and structure) are generated below. Their names are defined and used in OpenMPKinds.def. Here we provide the declarations, the initializeTypes function will provide the values.

{

Definition at line 1204 of file OMPIRBuilder.h.

FunctionType
Definition: ItaniumDemangle.h:765
llvm::tgtok::VarName
@ VarName
Definition: TGLexer.h:72
ArrayType
Definition: ItaniumDemangle.h:736