optim.h
来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· C头文件 代码 · 共 103 行
H
103 行
/* * structure to hold trees for optimization */typedef struct slt { field type; field flags; short lineno; struct slt *next, *prev; struct slt *nullslot; expptr expr; int label; int *ctlinfo;};typedef struct slt *Slotp;extern Slotp firstslot, lastslot; /* first, last slots in buffer */extern int numslots; /* number of slots */Slotp newslot(), optbuff(), optinsert();struct Ctlframe *cpframe();/*** Structures for cse analysis*/typedef struct IDblock *idptr;typedef struct VALUEnode *valuen;typedef struct IDlist *idlptr;typedef struct DUPlist *duplptr;typedef struct NODElist *nodelptr;struct IDblock{ expptr idaddr; valuen initval, assgnval; nodelptr headnodelist; struct IDblock *next;}; struct VALUEnode{ expptr opp; expptr *parent; int n_dups; unsigned is_dead : 1; valuen lc,rc,rs; idlptr headdeplist; duplptr headduplist; struct VALUEnode *next;};struct IDlist{ idptr idp; struct IDlist *next;};struct DUPlist{ expptr *parent; struct DUPlist *next;};struct NODElist{ valuen nodep; struct NODElist *next;};/* * structure to hold information on basic blocks */typedef struct bblock { Slotp first, last; idptr headid; valuen headnode, tailnode; struct bblock *next, *prev;};typedef struct bblock *Bblockp;extern Bblockp firstblock; /* first block in buffer */extern Bblockp lastblock; /* last block in buffer *//* data structure for optloop and regalloc routines */typedef struct regnode { field vstg; field vtype; int memno; int memoffset; unsigned isarrayarg : 1; } REGNODE;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?