1 //===-- XCoreTargetMachine.h - Define TargetMachine for XCore ---*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file declares the XCore specific subclass of TargetMachine.
12 //===----------------------------------------------------------------------===//
14 #ifndef LLVM_LIB_TARGET_XCORE_XCORETARGETMACHINE_H
15 #define LLVM_LIB_TARGET_XCORE_XCORETARGETMACHINE_H
17 #include "XCoreSubtarget.h"
18 #include "llvm/Target/TargetMachine.h"
22 class XCoreTargetMachine : public LLVMTargetMachine {
23 XCoreSubtarget Subtarget;
25 XCoreTargetMachine(const Target &T, StringRef TT,
26 StringRef CPU, StringRef FS, const TargetOptions &Options,
27 Reloc::Model RM, CodeModel::Model CM,
28 CodeGenOpt::Level OL);
30 const XCoreSubtarget *getSubtargetImpl() const override { return &Subtarget; }
32 // Pass Pipeline Configuration
33 TargetPassConfig *createPassConfig(PassManagerBase &PM) override;
35 void addAnalysisPasses(PassManagerBase &PM) override;
38 } // end namespace llvm