llvm.org GIT mirror llvm / 7e93819
R600: Add ALUInst bit to tablegen definitions v2 v2: - Remove functions left over from a previous rebase. Reviewed-by: Vincent Lejeune<vljn at ovi.com> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185160 91177308-0d34-0410-b5e6-96231b3b80d8 Tom Stellard 7 years ago
4 changed file(s) with 8 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
4040 OP1 = (1 << 10),
4141 OP2 = (1 << 11),
4242 VTX_INST = (1 << 12),
43 TEX_INST = (1 << 13)
43 TEX_INST = (1 << 13),
44 ALU_INST = (1 << 14)
4445 };
4546 }
4647
2525 bit HasNativeOperands = 0;
2626 bit VTXInst = 0;
2727 bit TEXInst = 0;
28 bit ALUInst = 0;
2829
2930 let Namespace = "AMDGPU";
3031 let OutOperandList = outs;
4647 let TSFlags{11} = Op2;
4748 let TSFlags{12} = VTXInst;
4849 let TSFlags{13} = TEXInst;
50 let TSFlags{14} = ALUInst;
4951 }
5052
5153 //===----------------------------------------------------------------------===//
132132 bool R600InstrInfo::isALUInstr(unsigned Opcode) const {
133133 unsigned TargetFlags = get(Opcode).TSFlags;
134134
135 return ((TargetFlags & R600_InstFlag::OP1) |
136 (TargetFlags & R600_InstFlag::OP2) |
137 (TargetFlags & R600_InstFlag::OP3));
135 return (TargetFlags & R600_InstFlag::ALU_INST);
138136 }
139137
140138 bool R600InstrInfo::isTransOnly(unsigned Opcode) const {
113113 let update_pred = 0;
114114 let HasNativeOperands = 1;
115115 let Op1 = 1;
116 let ALUInst = 1;
116117 let DisableEncoding = "$literal";
117118 let UseNamedOperandTable = 1;
118119
150151
151152 let HasNativeOperands = 1;
152153 let Op2 = 1;
154 let ALUInst = 1;
153155 let DisableEncoding = "$literal";
154156 let UseNamedOperandTable = 1;
155157
192194 let DisableEncoding = "$literal";
193195 let Op3 = 1;
194196 let UseNamedOperandTable = 1;
197 let ALUInst = 1;
195198
196199 let Inst{31-0} = Word0;
197200 let Inst{63-32} = Word1;