diff options
author | Moritz Pflanzer <moritz.pflanzer@arm.com> | 2017-06-28 10:15:48 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-09-17 14:16:42 +0100 |
commit | d929b9c49a13eb9c05bb4fab608459669eeeeb9e (patch) | |
tree | ed0101971fe0d8c112f715d47a53aae306031d93 /arm_compute/core/CPP/CPPTypes.h | |
parent | 725788e33c163f95a6fdc054b6b78296ed7dfe50 (diff) | |
download | ComputeLibrary-d929b9c49a13eb9c05bb4fab608459669eeeeb9e.tar.gz |
COMPMID-417: Enable CPU target selection
Change-Id: I8d1b368c654b738117efb32cfacd5fda10c23203
Reviewed-on: http://mpd-gerrit.cambridge.arm.com/79046
Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com>
Diffstat (limited to 'arm_compute/core/CPP/CPPTypes.h')
-rw-r--r-- | arm_compute/core/CPP/CPPTypes.h | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/arm_compute/core/CPP/CPPTypes.h b/arm_compute/core/CPP/CPPTypes.h new file mode 100644 index 0000000000..4e156ea78e --- /dev/null +++ b/arm_compute/core/CPP/CPPTypes.h @@ -0,0 +1,51 @@ +/* + * Copyright (c) 2017 ARM Limited. + * + * SPDX-License-Identifier: MIT + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +#ifndef __ARM_COMPUTE_CPP_TYPES_H__ +#define __ARM_COMPUTE_CPP_TYPES_H__ + +namespace arm_compute +{ +/** Available CPU Targets */ +enum class CPUTarget +{ + ARCH_MASK = 0x0F00, + CPU_MODEL = 0x00FF, + INTRINSICS = 0x0100, + ARMV7 = 0x0200, + ARMV8 = 0x0300, + ARMV8_2 = 0x0400, + A7x = 0x0070, + A5x = 0x0050, + DOT = 0x1000, + + A53 = (ARMV8 | A7x | 0x3), + A55 = (ARMV8_2 | A5x | 0x5), + A55_DOT = (A55 | DOT), + A72 = (ARMV8 | A7x | 0x2), + A73 = (ARMV8 | A7x | 0x3), + A75 = (ARMV8_2 | A7x | 0x5), + A75_DOT = (A75 | DOT), +}; +} +#endif /* __ARM_COMPUTE_CPP_TYPES_H__ */ |