CTXPROF_FUNCTION_DATA

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.

Synopsis

Declared in <llvm/ProfileData/CtxInstrContextNode.h>

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

Description

The macro arguments (see CtxInstrProfiling.h for example):

PTRDECL is a macro taking 2 parameters: a type and the name of the field. The field is a pointer of that type;

VOLATILE_PTRDECL is the same as above, but for volatile pointers;

MUTEXDECL takes one parameter, the name of a field that is a mutex.