class CodeGenFunction::OMPMapVars

Declaration

class CodeGenFunction::OMPMapVars { /* full declaration omitted */ };

Description

The class used to assign some variables some temporarily addresses.

Declared at: clang/lib/CodeGen/CodeGenFunction.h:987

Member Variables

private clang::CodeGen::CodeGenFunction::DeclMapTy SavedLocals
private clang::CodeGen::CodeGenFunction::DeclMapTy SavedTempAddresses

Method Overview

  • private OMPMapVars(const clang::CodeGen::CodeGenFunction::OMPMapVars &)
  • public OMPMapVars()
  • public bool apply(clang::CodeGen::CodeGenFunction & CGF)
  • private static void copyInto(const clang::CodeGen::CodeGenFunction::DeclMapTy & Src, clang::CodeGen::CodeGenFunction::DeclMapTy & Dest)
  • public void restore(clang::CodeGen::CodeGenFunction & CGF)
  • public bool setVarAddr(clang::CodeGen::CodeGenFunction & CGF, const clang::VarDecl * LocalVD, clang::CodeGen::Address TempAddr)
  • public ~OMPMapVars()

Methods

OMPMapVars(const clang::CodeGen::CodeGenFunction::
               OMPMapVars&)

Declared at: clang/lib/CodeGen/CodeGenFunction.h:990

Parameters

const clang::CodeGen::CodeGenFunction::OMPMapVars&

OMPMapVars()

Declared at: clang/lib/CodeGen/CodeGenFunction.h:994

bool apply(clang::CodeGen::CodeGenFunction& CGF)

Description

Applies new addresses to the list of the variables.

Declared at: clang/lib/CodeGen/CodeGenFunction.h:1030

Parameters

clang::CodeGen::CodeGenFunction& CGF

Returns

true if at least one variable is using new address, false otherwise.

static void copyInto(
    const clang::CodeGen::CodeGenFunction::
        DeclMapTy& Src,
    clang::CodeGen::CodeGenFunction::DeclMapTy&
        Dest)

Description

Copy all the entries in the source map over the corresponding entries in the destination, which must exist.

Declared at: clang/lib/CodeGen/CodeGenFunction.h:1047

Parameters

const clang::CodeGen::CodeGenFunction::DeclMapTy& Src
clang::CodeGen::CodeGenFunction::DeclMapTy& Dest

void restore(clang::CodeGen::CodeGenFunction& CGF)

Description

Restores original addresses of the variables.

Declared at: clang/lib/CodeGen/CodeGenFunction.h:1037

Parameters

clang::CodeGen::CodeGenFunction& CGF

bool setVarAddr(
    clang::CodeGen::CodeGenFunction& CGF,
    const clang::VarDecl* LocalVD,
    clang::CodeGen::Address TempAddr)

Description

Sets the address of the variable \p LocalVD to be \p TempAddr in function \p CGF.

Declared at: clang/lib/CodeGen/CodeGenFunction.h:1002

Parameters

clang::CodeGen::CodeGenFunction& CGF
const clang::VarDecl* LocalVD
clang::CodeGen::Address TempAddr

Returns

true if at least one variable was set already, false otherwise.

~OMPMapVars()

Declared at: clang/lib/CodeGen/CodeGenFunction.h:995