1 //===-- GenericOpcodes.td - Opcodes used with GlobalISel ---*- tablegen -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file defines the generic opcodes used with GlobalISel.
11 // After instruction selection, these opcodes should not appear.
13 //===----------------------------------------------------------------------===//
15 //------------------------------------------------------------------------------
17 //------------------------------------------------------------------------------
19 def G_ADD : Instruction {
20 let OutOperandList = (outs unknown:$dst);
21 let InOperandList = (ins unknown:$src1, unknown:$src2);
22 let hasSideEffects = 0;
26 // Generic bitwise or.
27 def G_OR : Instruction {
28 let OutOperandList = (outs unknown:$dst);
29 let InOperandList = (ins unknown:$src1, unknown:$src2);
30 let hasSideEffects = 0;
34 //------------------------------------------------------------------------------
36 //------------------------------------------------------------------------------
37 // Generic unconditional branch.
38 def G_BR : Instruction {
39 let OutOperandList = (outs);
40 let InOperandList = (ins unknown:$src1);
41 let hasSideEffects = 0;
46 // TODO: Add the other generic opcodes.