brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · 3680d18 Raw
52 lines · c
1//==-- MSP430.h - Top-level interface for MSP430 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-exception6//7//===----------------------------------------------------------------------===//8//9// This file contains the entry points for global functions defined in10// the LLVM MSP430 backend.11//12//===----------------------------------------------------------------------===//13 14#ifndef LLVM_LIB_TARGET_MSP430_MSP430_H15#define LLVM_LIB_TARGET_MSP430_MSP430_H16 17#include "MCTargetDesc/MSP430MCTargetDesc.h"18#include "llvm/Target/TargetMachine.h"19 20namespace MSP430CC {21  // MSP430 specific condition code.22  enum CondCodes {23    COND_E  = 0,  // aka COND_Z24    COND_NE = 1,  // aka COND_NZ25    COND_HS = 2,  // aka COND_C26    COND_LO = 3,  // aka COND_NC27    COND_GE = 4,28    COND_L  = 5,29    COND_N  = 6,  // jump if negative30    COND_NONE,    // unconditional31 32    COND_INVALID = -133  };34}35 36namespace llvm {37class FunctionPass;38class MSP430TargetMachine;39class PassRegistry;40 41FunctionPass *createMSP430ISelDag(MSP430TargetMachine &TM,42                                  CodeGenOptLevel OptLevel);43 44FunctionPass *createMSP430BranchSelectionPass();45 46void initializeMSP430AsmPrinterPass(PassRegistry &);47void initializeMSP430DAGToDAGISelLegacyPass(PassRegistry &);48 49} // namespace llvm50 51#endif52