mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
b195d89bde
...so that it can be used for z too. Most of the code is the same. The only real change is to use TargetTransformInfo to test when a sqrt instruction is available. The pass is opt-in because at the moment it only handles sqrt. llvm-svn: 189097
34 lines
1.1 KiB
C++
34 lines
1.1 KiB
C++
//===-- Mips.h - Top-level interface for Mips representation ----*- C++ -*-===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This file contains the entry points for global functions defined in
|
|
// the LLVM Mips back-end.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef TARGET_MIPS_H
|
|
#define TARGET_MIPS_H
|
|
|
|
#include "MCTargetDesc/MipsMCTargetDesc.h"
|
|
#include "llvm/Target/TargetMachine.h"
|
|
|
|
namespace llvm {
|
|
class MipsTargetMachine;
|
|
class FunctionPass;
|
|
|
|
FunctionPass *createMipsISelDag(MipsTargetMachine &TM);
|
|
FunctionPass *createMipsDelaySlotFillerPass(MipsTargetMachine &TM);
|
|
FunctionPass *createMipsLongBranchPass(MipsTargetMachine &TM);
|
|
FunctionPass *createMipsJITCodeEmitterPass(MipsTargetMachine &TM,
|
|
JITCodeEmitter &JCE);
|
|
FunctionPass *createMipsConstantIslandPass(MipsTargetMachine &tm);
|
|
} // end namespace llvm;
|
|
|
|
#endif
|