codegen.py: add optional end-of-line comments
codegen.py: add optional end-of-line comments

Change-Id: Id45f45b2ebe9122ddb8841d121ba3d4e5f0c8773
(cherry picked from commit 20af10483bcda45833a68457a55345e38b8cb534)

intelxed/xed,intelxed/xed,intelxed/xed,intelxed/xed