xref: /openbsd-src/gnu/llvm/llvm/lib/Target/CSKY/CSKY.h (revision d415bd752c734aee168c4ee86ff32e8cc249eb16)
1*d415bd75Srobert //===-- CSKY.h - Top-level interface for CSKY--------------------*- C++ -*-===//
2*d415bd75Srobert //
3*d415bd75Srobert // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4*d415bd75Srobert // See https://llvm.org/LICENSE.txt for license information.
5*d415bd75Srobert // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6*d415bd75Srobert //
7*d415bd75Srobert //===----------------------------------------------------------------------===//
8*d415bd75Srobert //
9*d415bd75Srobert // This file contains the entry points for global functions defined in the LLVM
10*d415bd75Srobert // CSKY back-end.
11*d415bd75Srobert //
12*d415bd75Srobert //===----------------------------------------------------------------------===//
13*d415bd75Srobert 
14*d415bd75Srobert #ifndef LLVM_LIB_TARGET_CSKY_CSKY_H
15*d415bd75Srobert #define LLVM_LIB_TARGET_CSKY_CSKY_H
16*d415bd75Srobert 
17*d415bd75Srobert #include "llvm/PassRegistry.h"
18*d415bd75Srobert #include "llvm/Target/TargetMachine.h"
19*d415bd75Srobert 
20*d415bd75Srobert namespace llvm {
21*d415bd75Srobert class CSKYTargetMachine;
22*d415bd75Srobert class FunctionPass;
23*d415bd75Srobert class PassRegistry;
24*d415bd75Srobert 
25*d415bd75Srobert FunctionPass *createCSKYISelDag(CSKYTargetMachine &TM,
26*d415bd75Srobert                                 CodeGenOpt::Level OptLevel);
27*d415bd75Srobert FunctionPass *createCSKYConstantIslandPass();
28*d415bd75Srobert 
29*d415bd75Srobert void initializeCSKYConstantIslandsPass(PassRegistry &);
30*d415bd75Srobert void initializeCSKYDAGToDAGISelPass(PassRegistry &);
31*d415bd75Srobert 
32*d415bd75Srobert } // namespace llvm
33*d415bd75Srobert 
34*d415bd75Srobert #endif // LLVM_LIB_TARGET_CSKY_CSKY_H
35