CTXPROF_FUNCTION_DATA

Declares the fields of FunctionData shared with LLVM.

Synopsis

Declared in <llvm/ProfileData/CtxInstrContextNode.h>

#define CTXPROF_FUNCTION_DATA(PTRDECL, CONTEXT_PTR, VOLATILE_PTRDECL, MUTEXDECL)

Description

The internal structure of FunctionData. This makes sure that changes to the fields of FunctionData either get automatically captured on the llvm side, or force a manual corresponding update. See CtxInstrProfiling.h for example expansions.

Parameters

NameDescription
PTRDECLMacro taking a type and field name for a pointer field.
CONTEXT_PTRExpansion that declares the context-pointer field.
VOLATILE_PTRDECLMacro taking a type and field name for a volatile pointer field.
MUTEXDECLMacro taking the name of a mutex field.