diff options
author | Bob Wilson <bob.wilson@apple.com> | 2009-08-12 22:30:59 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@apple.com> | 2009-08-12 22:30:59 +0000 |
commit | 36e3e668be0c4914660575d7cea800b0d51a4116 (patch) | |
tree | 862ddfc10790f87566af81a841be00a951ed0fe8 /include/llvm/Target | |
parent | a9ad04191cb56c42944b17980b8b2bb2afe11ab2 (diff) | |
download | llvm-36e3e668be0c4914660575d7cea800b0d51a4116.tar.gz llvm-36e3e668be0c4914660575d7cea800b0d51a4116.tar.bz2 llvm-36e3e668be0c4914660575d7cea800b0d51a4116.tar.xz |
Add a new "SDTCisVec" SDTypeConstraint. This complements the vAny type.
There have been a few times where I've wanted this but ended up leaving the
operand type unconstrained. It is easy to add this now and should help
catch errors in the future.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78849 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target')
-rw-r--r-- | include/llvm/Target/TargetSelectionDAG.td | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/llvm/Target/TargetSelectionDAG.td b/include/llvm/Target/TargetSelectionDAG.td index 9a9125e578..700c64c8ca 100644 --- a/include/llvm/Target/TargetSelectionDAG.td +++ b/include/llvm/Target/TargetSelectionDAG.td @@ -30,12 +30,15 @@ class SDTCisVT<int OpNum, ValueType vt> : SDTypeConstraint<OpNum> { class SDTCisPtrTy<int OpNum> : SDTypeConstraint<OpNum>; -// SDTCisInt - The specified operand is has integer type. +// SDTCisInt - The specified operand has integer type. class SDTCisInt<int OpNum> : SDTypeConstraint<OpNum>; -// SDTCisFP - The specified operand is has floating point type. +// SDTCisFP - The specified operand has floating-point type. class SDTCisFP<int OpNum> : SDTypeConstraint<OpNum>; +// SDTCisVec - The specified operand has a vector type. +class SDTCisVec<int OpNum> : SDTypeConstraint<OpNum>; + // SDTCisSameAs - The two specified operands have identical types. class SDTCisSameAs<int OpNum, int OtherOp> : SDTypeConstraint<OpNum> { int OtherOperandNum = OtherOp; |