diff options
author | Krzysztof Parzyszek <kparzysz@codeaurora.org> | 2018-12-05 21:38:35 +0000 |
---|---|---|
committer | Krzysztof Parzyszek <kparzysz@codeaurora.org> | 2018-12-05 21:38:35 +0000 |
commit | 88c0bc1f44013083118191b34d34d116f26c0b97 (patch) | |
tree | e3bcd381f1c57b70ca4e171da3b190919b78d872 /lib/Basic/Targets/Hexagon.cpp | |
parent | 3b68f54078805e85b8c4a7843bce6834dfdc07cf (diff) |
[Hexagon] Add support for Hexagon V66
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@348415 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Basic/Targets/Hexagon.cpp')
-rw-r--r-- | lib/Basic/Targets/Hexagon.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Basic/Targets/Hexagon.cpp b/lib/Basic/Targets/Hexagon.cpp index c0ce959312..94e1388e38 100644 --- a/lib/Basic/Targets/Hexagon.cpp +++ b/lib/Basic/Targets/Hexagon.cpp @@ -48,6 +48,9 @@ void HexagonTargetInfo::getTargetDefines(const LangOptions &Opts, } else if (CPU == "hexagonv65") { Builder.defineMacro("__HEXAGON_V65__"); Builder.defineMacro("__HEXAGON_ARCH__", "65"); + } else if (CPU == "hexagonv66") { + Builder.defineMacro("__HEXAGON_V66__"); + Builder.defineMacro("__HEXAGON_ARCH__", "66"); } if (hasFeature("hvx-length64b")) { @@ -145,7 +148,7 @@ struct CPUSuffix { static constexpr CPUSuffix Suffixes[] = { {{"hexagonv5"}, {"5"}}, {{"hexagonv55"}, {"55"}}, {{"hexagonv60"}, {"60"}}, {{"hexagonv62"}, {"62"}}, - {{"hexagonv65"}, {"65"}}, + {{"hexagonv65"}, {"65"}}, {{"hexagonv66"}, {"66"}}, }; const char *HexagonTargetInfo::getHexagonCPUSuffix(StringRef Name) { |