$PTOLEMY/src/domains/cgc/kerneldirectory. We follow the general framework for code generation defined in CG kernel directory.
In the CGC domain, the resource we have is the name space. We have to avoid name conflicts by guaranteeing unique names for different variables. The most complicated task is to determine the dimension, or buffer size, of each variable, and the method how to access them; static buffering, linear indexing, or modulo addressing.
We use the CGC domain to test new functionalities in code generation: buffer embedding for example. We have tested some simple demos to verify the design.