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 96470c3..71c78ec 100644
--- a/include/llvm/TargetTransformInfo.h
+++ b/include/llvm/TargetTransformInfo.h
@@ -156,6 +156,11 @@ public:
return 1;
}
+ /// Returns the number of pieces into which the provided type must be
+ /// split during legalization. Zero is returned when the answer is unknown.
+ virtual unsigned getNumberOfParts(Type *Tp) const {
+ return 0;
+ }
};
} // End llvm namespace