Added code to get maximum number of registers available per work item.
Get name from format.