GCC Middle and Back End API Reference
genhooks.c File Reference
#include "bconfig.h"
#include "system.h"
#include "hashtab.h"
#include "errors.h"
#include "target.def"
#include "c-family/c-target.def"
#include "common/common-target.def"
Include dependency graph for genhooks.c:

Data Structures

struct  hook_desc
struct  s_hook

Macros

#define HOOK_VECTOR_1(NAME, FRAGMENT)   { 0, 0, #NAME, 0, 0, HOOK_TYPE },
#define DEFHOOKPOD(NAME, DOC, TYPE, INIT)   { DOC, #TYPE, HOOK_PREFIX #NAME, 0, #INIT, HOOK_TYPE },
#define DEFHOOK(NAME, DOC, TYPE, PARAMS, INIT)   { DOC, #TYPE, HOOK_PREFIX #NAME, #PARAMS, #INIT, HOOK_TYPE },
#define DEFHOOK_UNDOC(NAME, DOC, TYPE, PARAMS, INIT)   { "*", #TYPE, HOOK_PREFIX #NAME, #PARAMS, #INIT, HOOK_TYPE },

Functions

static void emit_findices ()
static char * upstrdup ()
static hashval_t s_hook_hash ()
static int s_hook_eq_p ()

Variables

static struct hook_desc hook_array []

Macro Definition Documentation

#define DEFHOOK (   NAME,
  DOC,
  TYPE,
  PARAMS,
  INIT 
)    { DOC, #TYPE, HOOK_PREFIX #NAME, #PARAMS, #INIT, HOOK_TYPE },
#define DEFHOOK_UNDOC (   NAME,
  DOC,
  TYPE,
  PARAMS,
  INIT 
)    { "*", #TYPE, HOOK_PREFIX #NAME, #PARAMS, #INIT, HOOK_TYPE },
#define DEFHOOKPOD (   NAME,
  DOC,
  TYPE,
  INIT 
)    { DOC, #TYPE, HOOK_PREFIX #NAME, 0, #INIT, HOOK_TYPE },
#define HOOK_VECTOR_1 (   NAME,
  FRAGMENT 
)    { 0, 0, #NAME, 0, 0, HOOK_TYPE },

Function Documentation

static void emit_findices ( )
static

For each in the first paragraph of the documentation string DOC, print an directive. HOOK_NAME is the name of the hook this bit of documentation pertains to.

static int s_hook_eq_p ( )
static
static hashval_t s_hook_hash ( )
static
static char* upstrdup ( )
static

Return an upper-case copy of IN.


Variable Documentation

struct hook_desc hook_array[]
static