LLVM API Documentation

HexagonTargetMachine.h
Go to the documentation of this file.
00001 //=-- HexagonTargetMachine.h - Define TargetMachine for Hexagon ---*- C++ -*-=//
00002 //
00003 //                     The LLVM Compiler Infrastructure
00004 //
00005 // This file is distributed under the University of Illinois Open Source
00006 // License. See LICENSE.TXT for details.
00007 //
00008 //===----------------------------------------------------------------------===//
00009 //
00010 // This file declares the Hexagon specific subclass of TargetMachine.
00011 //
00012 //===----------------------------------------------------------------------===//
00013 
00014 #ifndef LLVM_LIB_TARGET_HEXAGON_HEXAGONTARGETMACHINE_H
00015 #define LLVM_LIB_TARGET_HEXAGON_HEXAGONTARGETMACHINE_H
00016 
00017 #include "HexagonInstrInfo.h"
00018 #include "HexagonSubtarget.h"
00019 #include "llvm/Target/TargetMachine.h"
00020 
00021 namespace llvm {
00022 
00023 class Module;
00024 
00025 class HexagonTargetMachine : public LLVMTargetMachine {
00026   HexagonSubtarget Subtarget;
00027 
00028 public:
00029   HexagonTargetMachine(const Target &T, StringRef TT,StringRef CPU,
00030                        StringRef FS, const TargetOptions &Options,
00031                        Reloc::Model RM, CodeModel::Model CM,
00032                        CodeGenOpt::Level OL);
00033 
00034   const HexagonSubtarget *getSubtargetImpl() const override {
00035     return &Subtarget;
00036   }
00037   static unsigned getModuleMatchQuality(const Module &M);
00038 
00039   TargetPassConfig *createPassConfig(PassManagerBase &PM) override;
00040 };
00041 
00042 extern bool flag_aligned_memcpy;
00043 
00044 } // end namespace llvm
00045 
00046 #endif