//==- HexagonInstrFormats.td - Hexagon Instruction Formats --*- tablegen -*-==// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // // This file describes the Hexagon V4 instruction classes in TableGen format. // //===----------------------------------------------------------------------===// //----------------------------------------------------------------------------// // Hexagon Instruction Flags // // *** Must match BaseInfo.h *** //----------------------------------------------------------------------------// def TypeMEMOP : IType<9>; def TypeNV : IType<10>; def TypeCOMPOUND : IType<12>; def TypePREFIX : IType<30>; //----------------------------------------------------------------------------// // Instruction Classes Definitions //----------------------------------------------------------------------------// // // NV type instructions. // class NVInst pattern = [], string cstr = "", InstrItinClass itin = NCJ_tc_3or4stall_SLOT0> : InstHexagon; class NVInst_V4 pattern = [], string cstr = "", InstrItinClass itin = NCJ_tc_3or4stall_SLOT0> : NVInst; // Definition of Post increment new value store. class NVInstPost_V4 pattern = [], string cstr = "", InstrItinClass itin = ST_tc_st_SLOT0> : NVInst; // Post increment ST Instruction. let mayStore = 1 in class NVInstPI_V4 pattern = [], string cstr = "", InstrItinClass itin = ST_tc_st_SLOT0> : NVInst; // New-value conditional branch. class NCJInst pattern = [], string cstr = ""> : NVInst; let mayLoad = 1, mayStore = 1 in class MEMInst pattern = [], string cstr = "", InstrItinClass itin = V4LDST_tc_st_SLOT0> : InstHexagon; class MEMInst_V4 pattern = [], string cstr = "", InstrItinClass itin = V4LDST_tc_st_SLOT0> : MEMInst; let isCodeGenOnly = 1 in class EXTENDERInst pattern = []> : InstHexagon; class CJInst pattern = [], string cstr = ""> : InstHexagon;