1 //===-- PowerPCTargetMachine.cpp - Define TargetMachine for PowerPC -------===//
3 // The LLVM Compiler Infrastructure
5 // This file was developed by the LLVM research group and is distributed under
6 // the University of Illinois Open Source License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
11 //===----------------------------------------------------------------------===//
13 #include "PowerPCTargetMachine.h"
15 #include "llvm/Module.h"
16 #include "llvm/PassManager.h"
17 #include "llvm/CodeGen/IntrinsicLowering.h"
18 #include "llvm/CodeGen/MachineFunction.h"
19 #include "llvm/CodeGen/Passes.h"
20 #include "llvm/Target/TargetOptions.h"
21 #include "llvm/Target/TargetMachineRegistry.h"
22 #include "llvm/Transforms/Scalar.h"
26 PowerPCTargetMachine::PowerPCTargetMachine(const std::string &name,
27 IntrinsicLowering *IL,
29 const TargetFrameInfo &TFI,
30 const PowerPCJITInfo &TJI)
31 : TargetMachine(name, IL, TD), FrameInfo(TFI), JITInfo(TJI) {}
33 unsigned PowerPCTargetMachine::getJITMatchQuality() {
34 #if defined(__POWERPC__) || defined (__ppc__) || defined(_POWER)
41 void PowerPCJITInfo::addPassesToJITCompile(FunctionPassManager &PM) {
42 assert(0 && "Cannot execute PowerPCJITInfo::addPassesToJITCompile()");
45 void PowerPCJITInfo::replaceMachineCodeForFunction(void *Old, void *New) {
46 assert(0 && "Cannot execute PowerPCJITInfo::replaceMachineCodeForFunction()");
49 void *PowerPCJITInfo::getJITStubForFunction(Function *F,
50 MachineCodeEmitter &MCE) {
51 assert(0 && "Cannot execute PowerPCJITInfo::getJITStubForFunction()");