diff options
| author | Sumanth Gundapaneni <sgundapa@codeaurora.org> | 2017-06-30 20:54:24 +0000 |
|---|---|---|
| committer | Sumanth Gundapaneni <sgundapa@codeaurora.org> | 2017-06-30 20:54:24 +0000 |
| commit | d2dd79bf849a73f59a2281beb6f472d95db19694 (patch) | |
| tree | 0787e5dccb70b80f2f82c401ed1359ec31d20502 /llvm/lib/Target/Hexagon/HexagonTargetTransformInfo.h | |
| parent | 03ab2e2b1c85ed25c386b5d4eef707949507b91a (diff) | |
| download | bcm5719-llvm-d2dd79bf849a73f59a2281beb6f472d95db19694.tar.gz bcm5719-llvm-d2dd79bf849a73f59a2281beb6f472d95db19694.zip | |
[Hexagon] Guard the generation of lookup table
The llvm flag "-hexagon-emit-lookup-tables" guards the generation
of lookup table generated from a switch statement.
Differential Revision: https://reviews.llvm.org/D34819
llvm-svn: 306877
Diffstat (limited to 'llvm/lib/Target/Hexagon/HexagonTargetTransformInfo.h')
| -rw-r--r-- | llvm/lib/Target/Hexagon/HexagonTargetTransformInfo.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/Hexagon/HexagonTargetTransformInfo.h b/llvm/lib/Target/Hexagon/HexagonTargetTransformInfo.h index f08a2731057..ab5a6e07d87 100644 --- a/llvm/lib/Target/Hexagon/HexagonTargetTransformInfo.h +++ b/llvm/lib/Target/Hexagon/HexagonTargetTransformInfo.h @@ -63,6 +63,9 @@ public: /// @} int getUserCost(const User *U, ArrayRef<const Value *> Operands); + + // Hexagon specific decision to generate a lookup table. + bool shouldBuildLookupTables() const; }; } // end namespace llvm |

