1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 04:32:44 +01:00

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

Differential Revision: http://reviews.llvm.org/D16384

llvm-svn: 258378
This commit is contained in:
Quentin Colombet 2016-01-21 01:37:18 +00:00
parent c16f1f078e
commit 4bced9a039
2 changed files with 26 additions and 10 deletions

View File

@ -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.

View File

@ -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"
}
//===----------------------------------------------------------------------===//