1 //===-- XCore.h - Top-level interface for XCore representation --*- 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 entry points for global functions defined in the LLVM
10 // XCore back-end.
11 //
12 //===----------------------------------------------------------------------===//
13 
14 #ifndef LLVM_LIB_TARGET_XCORE_XCORE_H
15 #define LLVM_LIB_TARGET_XCORE_XCORE_H
16 
17 #include "MCTargetDesc/XCoreMCTargetDesc.h"
18 #include "llvm/Target/TargetMachine.h"
19 
20 namespace llvm {
21   class FunctionPass;
22   class ModulePass;
23   class TargetMachine;
24   class XCoreTargetMachine;
25 
26   void initializeXCoreLowerThreadLocalPass(PassRegistry &p);
27 
28   FunctionPass *createXCoreFrameToArgsOffsetEliminationPass();
29   FunctionPass *createXCoreISelDag(XCoreTargetMachine &TM,
30                                    CodeGenOpt::Level OptLevel);
31   ModulePass *createXCoreLowerThreadLocalPass();
32 
33 } // end namespace llvm;
34 
35 #endif
36