LLVM API Documentation
00001 //==-- MSP430.h - Top-level interface for MSP430 representation --*- 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 contains the entry points for global functions defined in 00011 // the LLVM MSP430 backend. 00012 // 00013 //===----------------------------------------------------------------------===// 00014 00015 #ifndef LLVM_LIB_TARGET_MSP430_MSP430_H 00016 #define LLVM_LIB_TARGET_MSP430_MSP430_H 00017 00018 #include "MCTargetDesc/MSP430MCTargetDesc.h" 00019 #include "llvm/Target/TargetMachine.h" 00020 00021 namespace MSP430CC { 00022 // MSP430 specific condition code. 00023 enum CondCodes { 00024 COND_E = 0, // aka COND_Z 00025 COND_NE = 1, // aka COND_NZ 00026 COND_HS = 2, // aka COND_C 00027 COND_LO = 3, // aka COND_NC 00028 COND_GE = 4, 00029 COND_L = 5, 00030 00031 COND_INVALID = -1 00032 }; 00033 } 00034 00035 namespace llvm { 00036 class MSP430TargetMachine; 00037 class FunctionPass; 00038 class formatted_raw_ostream; 00039 00040 FunctionPass *createMSP430ISelDag(MSP430TargetMachine &TM, 00041 CodeGenOpt::Level OptLevel); 00042 00043 FunctionPass *createMSP430BranchSelectionPass(); 00044 00045 } // end namespace llvm; 00046 00047 #endif