Added codegen rules for void type and for pointer params and returnType.