@lower_constant(types.EnumMember)
def enum_constant(context, builder, ty, pyval):
 return context.get_constant_generic(builder, ty.dtype, pyval.value)

@ lower_constant ( types . EnumMember ) def enum_constant ( context , builder , ty , pyval ) : return context . get_constant_generic ( builder , ty . dtype , pyval . value )
return a llvm constant representing enum member *pyval* .