1 //===-- CSKYInstrInfo.h - CSKY Instruction Information --------*- C++ -*---===// 2 // 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4 // See https://llvm.org/LICENSE.txt for license information. 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 // 7 //===----------------------------------------------------------------------===// 8 // 9 // This file contains the CSKY implementation of the TargetInstrInfo class. 10 // 11 //===----------------------------------------------------------------------===// 12 13 #ifndef LLVM_LIB_TARGET_CSKY_CSKYINSTRINFO_H 14 #define LLVM_LIB_TARGET_CSKY_CSKYINSTRINFO_H 15 16 #include "MCTargetDesc/CSKYMCTargetDesc.h" 17 #include "llvm/CodeGen/TargetInstrInfo.h" 18 19 #define GET_INSTRINFO_HEADER 20 #include "CSKYGenInstrInfo.inc" 21 22 namespace llvm { 23 24 class CSKYSubtarget; 25 26 class CSKYInstrInfo : public CSKYGenInstrInfo { 27 protected: 28 const CSKYSubtarget &STI; 29 30 public: 31 explicit CSKYInstrInfo(CSKYSubtarget &STI); 32 }; 33 34 } // namespace llvm 35 36 #endif // LLVM_LIB_TARGET_CSKY_CSKYINSTRINFO_H 37