llvm-project/llvm/lib/Target/PowerPC/PPC.h

50 lines
1.4 KiB
C
Raw Normal View History

2004-06-22 00:55:25 +08:00
//===-- PowerPC.h - Top-level interface for PowerPC representation -*- C++ -*-//
//
2004-06-22 00:55:25 +08:00
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
2004-06-22 00:55:25 +08:00
//===----------------------------------------------------------------------===//
//
// This file contains the entry points for global functions defined in the LLVM
// PowerPC back-end.
//
//===----------------------------------------------------------------------===//
#ifndef TARGET_POWERPC_H
#define TARGET_POWERPC_H
#include <iosfwd>
2004-06-22 00:55:25 +08:00
namespace llvm {
class FunctionPass;
class PPCTargetMachine;
2004-06-22 00:55:25 +08:00
enum PPCTargetEnum {
TargetDefault, TargetAIX, TargetDarwin
};
FunctionPass *createPPCBranchSelectionPass();
FunctionPass *createPPCISelDag(PPCTargetMachine &TM);
FunctionPass *createDarwinAsmPrinter(std::ostream &OS, PPCTargetMachine &TM);
FunctionPass *createAIXAsmPrinter(std::ostream &OS, PPCTargetMachine &TM);
extern PPCTargetEnum PPCTarget;
2004-06-22 00:55:25 +08:00
} // end namespace llvm;
// GCC #defines PPC on Linux but we use it as our namespace name
#undef PPC
2004-06-22 00:55:25 +08:00
// Defines symbolic names for PowerPC registers. This defines a mapping from
// register name to register number.
//
#include "PPCGenRegisterNames.inc"
2004-06-22 00:55:25 +08:00
// Defines symbolic names for the PowerPC instructions.
//
#include "PPCGenInstrNames.inc"
2004-06-22 00:55:25 +08:00
#endif