Chris Lattner e97603f1bd Emit an error if instructions or patterns are defined but can never match.
Currently we check that immediate values live on the RHS of commutative
operators.  Defining ORI like this, for example:

def ORI   : DForm_4<24, (ops GPRC:$dst, GPRC:$src1, u16imm:$src2),
                    "ori $dst, $src1, $src2",
                    [(set GPRC:$dst, (or immZExt16:$src2, GPRC:$src1))]>;

results in:

tblgen: In ORI: Instruction can never match: Immediate values must be on the RHS of commutative operators!


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23501 91177308-0d34-0410-b5e6-96231b3b80d8
2005-09-28 19:27:25 +00:00
..
2005-08-27 18:50:39 +00:00
2005-08-26 20:42:52 +00:00
2005-09-14 18:02:53 +00:00
2005-09-12 05:30:06 +00:00
2005-09-12 05:30:06 +00:00
2005-09-12 05:30:06 +00:00
2005-08-26 20:42:52 +00:00
2005-08-27 18:50:39 +00:00