xref: /freebsd-src/contrib/llvm-project/llvm/lib/Target/CSKY/CSKYInstrInfo.cpp (revision 5e801ac66d24704442eba426ed13c3effb8a34e7)
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 #include "CSKYInstrInfo.h"
14 #include "llvm/MC/MCContext.h"
15 
16 #define DEBUG_TYPE "csky-instr-info"
17 
18 using namespace llvm;
19 
20 #define GET_INSTRINFO_CTOR_DTOR
21 #include "CSKYGenInstrInfo.inc"
22 
23 CSKYInstrInfo::CSKYInstrInfo(CSKYSubtarget &STI)
24     : CSKYGenInstrInfo(CSKY::ADJCALLSTACKDOWN, CSKY::ADJCALLSTACKUP), STI(STI) {
25 }
26