Use X macro for the enum class LayerType
authorLaurent Carlier <laurent.carlier@arm.com>
Thu, 16 Apr 2020 11:02:05 +0000 (12:02 +0100)
committerLaurent Carlier <laurent.carlier@arm.com>
Tue, 21 Apr 2020 13:50:41 +0000 (13:50 +0000)
commite886b518909880b370fddf43ff39296252d03909
tree9e229c55876044d4c566ba3d2d1cb3c5e7cb765e
parenta8837bfcf45136f178a9884b7c6f6449b3e6ed41
Use X macro for the enum class LayerType

In order to improve the maintability of the LayerType enum,
it is easier to use the X macro technique https://en.wikipedia.org/wiki/X_Macro
Thanks to that, the pre-processor can generate some code based on the
list provided by the LIST_OF_LAYER_TYPE macro

Signed-off-by: Laurent Carlier <laurent.carlier@arm.com>
Change-Id: I3a6049abfb1e964fe0bf32aa4e26bec4e29a77de
src/armnn/InternalTypes.cpp
src/armnn/InternalTypes.hpp