LLVM: lib/Target/M68k/GISel/M68kInstructionSelector.cpp Source File (original) (raw)

1

2

3

4

5

6

7

8

15

16#define DEBUG_TYPE "m68k-isel"

17

18using namespace llvm;

19

20#define GET_GLOBALISEL_PREDICATE_BITSET

21#include "M68kGenGlobalISel.inc"

22#undef GET_GLOBALISEL_PREDICATE_BITSET

23

24namespace {

25

27public:

30

33

34private:

36

41

42#define GET_GLOBALISEL_PREDICATES_DECL

43#include "M68kGenGlobalISel.inc"

44#undef GET_GLOBALISEL_PREDICATES_DECL

45

46#define GET_GLOBALISEL_TEMPORARIES_DECL

47#include "M68kGenGlobalISel.inc"

48#undef GET_GLOBALISEL_TEMPORARIES_DECL

49};

50

51}

52

53#define GET_GLOBALISEL_IMPL

54#include "M68kGenGlobalISel.inc"

55#undef GET_GLOBALISEL_IMPL

56

57M68kInstructionSelector::M68kInstructionSelector(

61 TRI(*STI.getRegisterInfo()), RBI(RBI),

62

64#include "M68kGenGlobalISel.inc"

67#include "M68kGenGlobalISel.inc"

69{

70}

71

72bool M68kInstructionSelector::select(MachineInstr &I) {

73

75 return true;

76

77 if (selectImpl(I, *CoverageInfo))

78 return true;

79

80 return false;

81}

82

83namespace llvm {

84InstructionSelector *

88 return new M68kInstructionSelector(TM, Subtarget, RBI);

89}

90}

#define GET_GLOBALISEL_PREDICATES_INIT

#define GET_GLOBALISEL_TEMPORARIES_INIT

const TargetInstrInfo & TII

This file declares the targeting of the RegisterBankInfo class for M68k.

This file declares the M68k specific subclass of TargetSubtargetInfo.

This file declares the M68k specific subclass of TargetMachine.

Register const TargetRegisterInfo * TRI

static StringRef getName(Value *V)

This class provides the information for the target register banks.

Representation of each machine instruction.

This is an optimization pass for GlobalISel generic memory operations.

bool isPreISelGenericOpcode(unsigned Opcode)

Check whether the given Opcode is a generic opcode that is not supposed to appear after ISel.

InstructionSelector * createM68kInstructionSelector(const M68kTargetMachine &TM, const M68kSubtarget &Subtarget, const M68kRegisterBankInfo &RBI)

Definition M68kInstructionSelector.cpp:85