aboutsummaryrefslogtreecommitdiff
path: root/llvm/utils/TableGen/CodeGenDAGPatterns.h
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2014-01-28 04:49:01 +0000
committerCraig Topper <craig.topper@gmail.com>2014-01-28 04:49:01 +0000
commit74169dcf4540f361a1312d93cfaa29fd0b4929e0 (patch)
tree4e687b77ac949830638fd667908b9878e0ce3e54 /llvm/utils/TableGen/CodeGenDAGPatterns.h
parent31377c5492f0e172bc1cb35c2a21a2d0470520cc (diff)
downloadllvm-74169dcf4540f361a1312d93cfaa29fd0b4929e0.zip
llvm-74169dcf4540f361a1312d93cfaa29fd0b4929e0.tar.gz
llvm-74169dcf4540f361a1312d93cfaa29fd0b4929e0.tar.bz2
Improve handling of EnforceSmallerThan. Remove all types that are smaller from the larger set not just the smallest type from the smaller set. Ensure 'smaller' vectors have the same or fewer total bits. Similar for 'larger' vectors.
llvm-svn: 200287
Diffstat (limited to 'llvm/utils/TableGen/CodeGenDAGPatterns.h')
-rw-r--r--llvm/utils/TableGen/CodeGenDAGPatterns.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/utils/TableGen/CodeGenDAGPatterns.h b/llvm/utils/TableGen/CodeGenDAGPatterns.h
index 6fbdd4f..0533bb8b 100644
--- a/llvm/utils/TableGen/CodeGenDAGPatterns.h
+++ b/llvm/utils/TableGen/CodeGenDAGPatterns.h
@@ -96,6 +96,10 @@ namespace EEVT {
/// a floating point value type.
bool hasFloatingPointTypes() const;
+ /// hasScalarTypes - Return true if this TypeSet contains a scalar value
+ /// type.
+ bool hasScalarTypes() const;
+
/// hasVectorTypes - Return true if this TypeSet contains a vector value
/// type.
bool hasVectorTypes() const;