[PATCH] D16384: [GlobalISel] Move generic opcodes description to their own file.

Quentin Colombet via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 20 17:41:13 PST 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL258378: [GlobalISel] Move generic opcodes description to their own file. (authored by qcolombet).

Changed prior to commit:
  http://reviews.llvm.org/D16384?vs=45469&id=45477#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D16384

Files:
  llvm/trunk/include/llvm/Target/GenericOpcodes.td
  llvm/trunk/include/llvm/Target/Target.td

Index: llvm/trunk/include/llvm/Target/GenericOpcodes.td
===================================================================
--- llvm/trunk/include/llvm/Target/GenericOpcodes.td
+++ llvm/trunk/include/llvm/Target/GenericOpcodes.td
@@ -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.
Index: llvm/trunk/include/llvm/Target/Target.td
===================================================================
--- llvm/trunk/include/llvm/Target/Target.td
+++ llvm/trunk/include/llvm/Target/Target.td
@@ -914,16 +914,9 @@
   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"
+
 }
 
 //===----------------------------------------------------------------------===//


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D16384.45477.patch
Type: text/x-patch
Size: 1854 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160121/06672be3/attachment.bin>


More information about the llvm-commits mailing list