blob: f5a8be588f07ba7f27f988ea73e344a644a350e7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
//===-- SimpleBBISel.cpp - Definition of 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 file defines the SimpleBBISel class which handles 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.
//
//===----------------------------------------------------------------------===//
#ifndef SELECTIONDAG_SIMPLEBBISEL_H
#define SELECTIONDAG_SIMPLEBBISEL_H
#include "llvm/Support/Compiler.h"
namespace llvm {
class BasicBlock;
class MachineBasicBlock;
class MachineFunction;
class TargetLowering;
class VISIBILITY_HIDDEN SimpleBBISel {
MachineFunction &MF;
TargetLowering &TLI;
public:
explicit SimpleBBISel(MachineFunction &mf, TargetLowering &tli)
: MF(mf), TLI(tli) {};
/// 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 SelectBasicBlock(BasicBlock *BB, MachineBasicBlock *MBB);
};
} // end namespace llvm.
#endif
|