/***************************************************************/ /*** Total Recall */ /*** an associative memory for compile states ***/ /***************************************************************/ #ifndef _TOTALRECALL_H #define _TOTALRECALL_H #include "psyco.h" /* return a unique constant if already defined */ source_known_t *find_sk(long v, long flags); /* publish a known constant */ void register_sk(source_known_t *sk); typedef struct knode_s *PsycoSet; /* registering a codebuffer uniquely for one po state. Returns true if a recursion was detected */ bool register_unique_codebuffer(CodeBufferObject *codebuf, PsycoSet memo); /* lookup a po's state in the codebuffer registry */ CodeBufferObject* find_unique_codebuffer(PsycoObject *po, PsycoSet *memo, bool by_identity); #endif /* _TOTALRECALL_H */