Each cell shape id has an associated cell shape tag. There is also a macro to write functions that are conditional on the cell shape.