class CGOpenMPRuntime::OffloadEntriesInfoManagerTy

Declaration

class CGOpenMPRuntime::OffloadEntriesInfoManagerTy { /* full declaration omitted */ };

Description

Entity that registers the offloading constants that were emitted so far.

Declared at: clang/lib/CodeGen/CGOpenMPRuntime.h:523

Member Variables

private clang::CodeGen::CodeGenModule& CGM
private unsigned int OffloadingEntriesNum = 0
Number of entries registered so far.
private clang::CodeGen::CGOpenMPRuntime:: OffloadEntriesInfoManagerTy:: OffloadEntriesTargetRegionTy OffloadEntriesTargetRegion
private clang::CodeGen::CGOpenMPRuntime:: OffloadEntriesInfoManagerTy:: OffloadEntriesDeviceGlobalVarTy OffloadEntriesDeviceGlobalVar

Method Overview

  • public OffloadEntriesInfoManagerTy(clang::CodeGen::CodeGenModule & CGM)
  • public void actOnDeviceGlobalVarEntriesInfo(const clang::CodeGen::CGOpenMPRuntime::OffloadEntriesInfoManagerTy::OffloadDeviceGlobalVarEntryInfoActTy & Action)
  • public void actOnTargetRegionEntriesInfo(const clang::CodeGen::CGOpenMPRuntime::OffloadEntriesInfoManagerTy::OffloadTargetRegionEntryInfoActTy & Action)
  • public bool empty() const
  • public bool hasDeviceGlobalVarEntryInfo(llvm::StringRef VarName) const
  • public bool hasTargetRegionEntryInfo(unsigned int DeviceID, unsigned int FileID, llvm::StringRef ParentName, unsigned int LineNum, bool IgnoreAddressId = false) const
  • public void initializeDeviceGlobalVarEntryInfo(llvm::StringRef Name, clang::CodeGen::CGOpenMPRuntime::OffloadEntriesInfoManagerTy::OMPTargetGlobalVarEntryKind Flags, unsigned int Order)
  • public void initializeTargetRegionEntryInfo(unsigned int DeviceID, unsigned int FileID, llvm::StringRef ParentName, unsigned int LineNum, unsigned int Order)
  • public void registerDeviceGlobalVarEntryInfo(llvm::StringRef VarName, llvm::Constant * Addr, clang::CharUnits VarSize, clang::CodeGen::CGOpenMPRuntime::OffloadEntriesInfoManagerTy::OMPTargetGlobalVarEntryKind Flags, llvm::GlobalValue::LinkageTypes Linkage)
  • public void registerTargetRegionEntryInfo(unsigned int DeviceID, unsigned int FileID, llvm::StringRef ParentName, unsigned int LineNum, llvm::Constant * Addr, llvm::Constant * ID, clang::CodeGen::CGOpenMPRuntime::OffloadEntriesInfoManagerTy::OMPTargetRegionEntryKind Flags)
  • public unsigned int size() const

Methods

OffloadEntriesInfoManagerTy(
    clang::CodeGen::CodeGenModule& CGM)

Declared at: clang/lib/CodeGen/CGOpenMPRuntime.h:583

Parameters

clang::CodeGen::CodeGenModule& CGM

void actOnDeviceGlobalVarEntriesInfo(
    const clang::CodeGen::CGOpenMPRuntime::
        OffloadEntriesInfoManagerTy::
            OffloadDeviceGlobalVarEntryInfoActTy&
                Action)

Declared at: clang/lib/CodeGen/CGOpenMPRuntime.h:708

Parameters

const clang::CodeGen::CGOpenMPRuntime:: OffloadEntriesInfoManagerTy:: OffloadDeviceGlobalVarEntryInfoActTy& Action

void actOnTargetRegionEntriesInfo(
    const clang::CodeGen::CGOpenMPRuntime::
        OffloadEntriesInfoManagerTy::
            OffloadTargetRegionEntryInfoActTy&
                Action)

Declared at: clang/lib/CodeGen/CGOpenMPRuntime.h:644

Parameters

const clang::CodeGen::CGOpenMPRuntime:: OffloadEntriesInfoManagerTy:: OffloadTargetRegionEntryInfoActTy& Action

bool empty() const

Description

Return true if a there are no entries defined.

Declared at: clang/lib/CodeGen/CGOpenMPRuntime.h:580

bool hasDeviceGlobalVarEntryInfo(
    llvm::StringRef VarName) const

Description

Checks if the variable with the given name has been registered already.

Declared at: clang/lib/CodeGen/CGOpenMPRuntime.h:701

Parameters

llvm::StringRef VarName

bool hasTargetRegionEntryInfo(
    unsigned int DeviceID,
    unsigned int FileID,
    llvm::StringRef ParentName,
    unsigned int LineNum,
    bool IgnoreAddressId = false) const

Description

Return true if a target region entry with the provided information exists.

Declared at: clang/lib/CodeGen/CGOpenMPRuntime.h:637

Parameters

unsigned int DeviceID
unsigned int FileID
llvm::StringRef ParentName
unsigned int LineNum
bool IgnoreAddressId = false

void initializeDeviceGlobalVarEntryInfo(
    llvm::StringRef Name,
    clang::CodeGen::CGOpenMPRuntime::
        OffloadEntriesInfoManagerTy::
            OMPTargetGlobalVarEntryKind Flags,
    unsigned int Order)

Description

Initialize device global variable entry.

Declared at: clang/lib/CodeGen/CGOpenMPRuntime.h:690

Parameters

llvm::StringRef Name
clang::CodeGen::CGOpenMPRuntime:: OffloadEntriesInfoManagerTy:: OMPTargetGlobalVarEntryKind Flags
unsigned int Order

void initializeTargetRegionEntryInfo(
    unsigned int DeviceID,
    unsigned int FileID,
    llvm::StringRef ParentName,
    unsigned int LineNum,
    unsigned int Order)

Description

Initialize target region entry.

Declared at: clang/lib/CodeGen/CGOpenMPRuntime.h:627

Parameters

unsigned int DeviceID
unsigned int FileID
llvm::StringRef ParentName
unsigned int LineNum
unsigned int Order

void registerDeviceGlobalVarEntryInfo(
    llvm::StringRef VarName,
    llvm::Constant* Addr,
    clang::CharUnits VarSize,
    clang::CodeGen::CGOpenMPRuntime::
        OffloadEntriesInfoManagerTy::
            OMPTargetGlobalVarEntryKind Flags,
    llvm::GlobalValue::LinkageTypes Linkage)

Description

Register device global variable entry.

Declared at: clang/lib/CodeGen/CGOpenMPRuntime.h:696

Parameters

llvm::StringRef VarName
llvm::Constant* Addr
clang::CharUnits VarSize
clang::CodeGen::CGOpenMPRuntime:: OffloadEntriesInfoManagerTy:: OMPTargetGlobalVarEntryKind Flags
llvm::GlobalValue::LinkageTypes Linkage

void registerTargetRegionEntryInfo(
    unsigned int DeviceID,
    unsigned int FileID,
    llvm::StringRef ParentName,
    unsigned int LineNum,
    llvm::Constant* Addr,
    llvm::Constant* ID,
    clang::CodeGen::CGOpenMPRuntime::
        OffloadEntriesInfoManagerTy::
            OMPTargetRegionEntryKind Flags)

Description

Register target region entry.

Declared at: clang/lib/CodeGen/CGOpenMPRuntime.h:631

Parameters

unsigned int DeviceID
unsigned int FileID
llvm::StringRef ParentName
unsigned int LineNum
llvm::Constant* Addr
llvm::Constant* ID
clang::CodeGen::CGOpenMPRuntime:: OffloadEntriesInfoManagerTy:: OMPTargetRegionEntryKind Flags

unsigned int size() const

Description

Return number of entries defined so far.

Declared at: clang/lib/CodeGen/CGOpenMPRuntime.h:582