2008-08-19 21:45:35 +00:00
|
|
|
//===-- X86FastISel.cpp - X86 FastISel implementation ---------------------===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This file defines the X86-specific support for the FastISel class. Much
|
|
|
|
// of the target-specific code is generated by tablegen in the file
|
|
|
|
// X86GenFastISel.inc, which is #included here.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#include "X86.h"
|
|
|
|
#include "X86RegisterInfo.h"
|
|
|
|
#include "X86ISelLowering.h"
|
|
|
|
#include "X86FastISel.h"
|
2008-08-22 00:20:26 +00:00
|
|
|
#include "X86TargetMachine.h"
|
2008-08-29 17:45:56 +00:00
|
|
|
#include "llvm/CodeGen/MachineRegisterInfo.h"
|
2008-08-19 21:45:35 +00:00
|
|
|
#include "X86GenFastISel.inc"
|
2008-08-28 23:21:34 +00:00
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
|
|
|
|
namespace X86 {
|
|
|
|
|
|
|
|
bool
|
|
|
|
FastISel::TargetSelectInstruction(Instruction *I,
|
|
|
|
DenseMap<const Value *, unsigned> &ValueMap,
|
|
|
|
DenseMap<const BasicBlock *, MachineBasicBlock *> &MBBMap,
|
|
|
|
MachineBasicBlock *MBB) {
|
|
|
|
switch (I->getOpcode()) {
|
|
|
|
default: break;
|
|
|
|
}
|
|
|
|
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|