From: Christian Konig Date: Thu, 21 Feb 2013 15:16:49 +0000 (+0000) Subject: R600/SI: add constant for inline zero operand X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=eabf8333d65b95bf0c3a2cb897570881723e38cd;p=platform%2Fupstream%2Fllvm.git R600/SI: add constant for inline zero operand Signed-off-by: Christian König Reviewed-by: Tom Stellard Reviewed-by: Michel Dänzer llvm-svn: 175747 --- diff --git a/llvm/lib/Target/R600/SIInstrInfo.td b/llvm/lib/Target/R600/SIInstrInfo.td index cf0d5b9..8b90d45 100644 --- a/llvm/lib/Target/R600/SIInstrInfo.td +++ b/llvm/lib/Target/R600/SIInstrInfo.td @@ -49,9 +49,8 @@ class InlineImm : ImmLeaf : Operand { - let EncoderMethod = "encodeOperand"; - let MIOperandInfo = opInfo; +def SIOperand { + int ZERO = 0x80; } class GPR4Align : Operand { @@ -201,7 +200,7 @@ multiclass VOPC_Helper op, RegisterClass vrc, RegisterClass arc, InstFlag:$omod, InstFlag:$neg), opName, pattern > { - let SRC2 = 0x80; + let SRC2 = SIOperand.ZERO; } }