Path: blob/main/contrib/llvm-project/llvm/lib/Target/MSP430/MSP430.h
35269 views
//==-- MSP430.h - Top-level interface for MSP430 representation --*- C++ -*-==//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//7//8// This file contains the entry points for global functions defined in9// the LLVM MSP430 backend.10//11//===----------------------------------------------------------------------===//1213#ifndef LLVM_LIB_TARGET_MSP430_MSP430_H14#define LLVM_LIB_TARGET_MSP430_MSP430_H1516#include "MCTargetDesc/MSP430MCTargetDesc.h"17#include "llvm/Target/TargetMachine.h"1819namespace MSP430CC {20// MSP430 specific condition code.21enum CondCodes {22COND_E = 0, // aka COND_Z23COND_NE = 1, // aka COND_NZ24COND_HS = 2, // aka COND_C25COND_LO = 3, // aka COND_NC26COND_GE = 4,27COND_L = 5,28COND_N = 6, // jump if negative29COND_NONE, // unconditional3031COND_INVALID = -132};33}3435namespace llvm {36class FunctionPass;37class MSP430TargetMachine;38class PassRegistry;3940FunctionPass *createMSP430ISelDag(MSP430TargetMachine &TM,41CodeGenOptLevel OptLevel);4243FunctionPass *createMSP430BranchSelectionPass();4445void initializeMSP430DAGToDAGISelLegacyPass(PassRegistry &);4647} // namespace llvm4849#endif505152