[llvm] r258378 - [GlobalISel] Move generic opcodes description to their own file.
Quentin Colombet via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 20 17:37:19 PST 2016
Author: qcolombet
Date: Wed Jan 20 19:37:18 2016
New Revision: 258378
URL: http://llvm.org/viewvc/llvm-project?rev=258378&view=rev
Log:
[GlobalISel] Move generic opcodes description to their own file.
Differential Revision: http://reviews.llvm.org/D16384
Added:
llvm/trunk/include/llvm/Target/GenericOpcodes.td
Modified:
llvm/trunk/include/llvm/Target/Target.td
Added: llvm/trunk/include/llvm/Target/GenericOpcodes.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Target/GenericOpcodes.td?rev=258378&view=auto
==============================================================================
--- llvm/trunk/include/llvm/Target/GenericOpcodes.td (added)
+++ llvm/trunk/include/llvm/Target/GenericOpcodes.td Wed Jan 20 19:37:18 2016
@@ -0,0 +1,23 @@
+//===-- GenericOpcodes.td - Opcodes used with GlobalISel ---*- tablegen -*-===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+//
+// This file defines the generic opcodes used with GlobalISel.
+// After instruction selection, these opcodes should not appear.
+//
+//===----------------------------------------------------------------------===//
+
+// Generic addition.
+def G_ADD : Instruction {
+ let OutOperandList = (outs unknown:$dst);
+ let InOperandList = (ins unknown:$src1, unknown:$src2);
+ let AsmString = "";
+ let hasSideEffects = 0;
+ let isCommutable = 1;
+}
+// TODO: Add the other generic opcodes.
Modified: llvm/trunk/include/llvm/Target/Target.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Target/Target.td?rev=258378&r1=258377&r2=258378&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Target/Target.td (original)
+++ llvm/trunk/include/llvm/Target/Target.td Wed Jan 20 19:37:18 2016
@@ -914,16 +914,9 @@ def FAULTING_LOAD_OP : Instruction {
let mayLoad = 1;
}
-// Generic opcode used by the IRTranslator.
-// After ISel, this opcode should not appear.
-def G_ADD : Instruction {
- let OutOperandList = (outs unknown:$dst);
- let InOperandList = (ins unknown:$src1, unknown:$src2);
- let AsmString = "";
- let hasSideEffects = 0;
- let isCommutable = 1;
-}
-// TODO: Add the other generic opcodes.
+// Generic opcodes used in GlobalISel.
+include "llvm/Target/GenericOpcodes.td"
+
}
//===----------------------------------------------------------------------===//
More information about the llvm-commits
mailing list