diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-08-08 07:27:28 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-08-08 07:27:28 +0000 |
commit | 38aa7de6e9b503d3ed9e2196b8bdb3d8819eefdc (patch) | |
tree | e79c6b1d085bf6f4f2890a576f58e1b2aab99afc /llvm/lib/CodeGen/SelectionDAG/SimpleBBISel.cpp | |
parent | 248559aaa59640af7fe9eb168bd6448ec713229b (diff) | |
download | bcm5719-llvm-38aa7de6e9b503d3ed9e2196b8bdb3d8819eefdc.tar.gz bcm5719-llvm-38aa7de6e9b503d3ed9e2196b8bdb3d8819eefdc.zip |
Add skeleton of simple basic block instruction selector.
llvm-svn: 54522
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SimpleBBISel.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SimpleBBISel.cpp | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SimpleBBISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SimpleBBISel.cpp new file mode 100644 index 00000000000..1200cd3b0d5 --- /dev/null +++ b/llvm/lib/CodeGen/SelectionDAG/SimpleBBISel.cpp @@ -0,0 +1,29 @@ +//===-- SimpleBBISel.cpp - Implement the SimpleBBISel class ---------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This implements simple basic block instruction selection. If the given +// BasicBlock is considered "simple", i.e. all operations are supported by +// the target and their types are legal, it does instruction directly from +// LLVM BasicBlock to MachineInstr's. +// +//===----------------------------------------------------------------------===// + +#define DEBUG_TYPE "simple-isel" +#include "SimpleBBISel.h" +#include "llvm/CodeGen/MachineFunction.h" +#include "llvm/CodeGen/MachineInstrBuilder.h" +#include "llvm/CodeGen/SelectionDAG.h" +using namespace llvm; + +/// SelectBasicBlock - Try to convert a LLVM basic block into a +/// MachineBasicBlock using simple instruction selection. Returns false if it +/// is not able to do so. +bool SimpleBBISel::SelectBasicBlock(BasicBlock *BB, MachineBasicBlock *MBB) { + return false; +} |