aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/TargetTransformInfo.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/TargetTransformInfo.h')
-rw-r--r--include/llvm/TargetTransformInfo.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/TargetTransformInfo.h b/include/llvm/TargetTransformInfo.h
index 6ee3b37..c65ef17 100644
--- a/include/llvm/TargetTransformInfo.h
+++ b/include/llvm/TargetTransformInfo.h
@@ -117,6 +117,11 @@ public:
virtual unsigned getJumpBufSize() const {
return 0;
}
+ /// shouldBuildLookupTables - Return true if switches should be turned into
+ /// lookup tables for the target.
+ virtual bool shouldBuildLookupTables() const {
+ return true;
+ }
};
/// VectorTargetTransformInfo - This interface is used by the vectorizers