summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Hexagon/HexagonTargetTransformInfo.h
diff options
context:
space:
mode:
authorSumanth Gundapaneni <sgundapa@codeaurora.org>2017-06-30 20:54:24 +0000
committerSumanth Gundapaneni <sgundapa@codeaurora.org>2017-06-30 20:54:24 +0000
commitd2dd79bf849a73f59a2281beb6f472d95db19694 (patch)
tree0787e5dccb70b80f2f82c401ed1359ec31d20502 /llvm/lib/Target/Hexagon/HexagonTargetTransformInfo.h
parent03ab2e2b1c85ed25c386b5d4eef707949507b91a (diff)
downloadbcm5719-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.h3
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
OpenPOWER on IntegriCloud