LLVM: lib/Target/AVR/AVR.h Source File (original) (raw)

1

2

3

4

5

6

7

8

9

10

11

12

13

14#ifndef LLVM_AVR_H

15#define LLVM_AVR_H

16

21

22namespace llvm {

23

27

33

38

39

41

42

53

54

57 assert(PT != nullptr && "unexpected MemSDNode");

64}

65

68 assert(PT != nullptr && "unexpected MemSDNode");

69 unsigned AS = PT->getAddressSpace();

73}

74

76 auto *V = N->getMemOperand()->getValue();

78 return true;

79 return false;

80}

81

82

83

84

85

87 auto *V = N->getMemOperand()->getValue();

89 return -1;

93}

94

95}

96

97}

98

99#endif

assert(UImm &&(UImm !=~static_cast< T >(0)) &&"Invalid immediate!")

A generic AVR implementation.

FunctionPass class - This class is used to implement most global optimizations.

This is an abstract virtual class for memory operations.

PassRegistry - This class manages the registration and intitialization of the pass subsystem as appli...

Pass interface - Implemented by all 'passes'.

Contains the AVR backend.

Definition AVR.h:40

bool isProgramMemoryAccess(MemSDNode const *N)

Definition AVR.h:75

AddressSpace getAddressSpace(T *V)

Definition AVR.h:66

int getProgramMemoryBank(MemSDNode const *N)

Definition AVR.h:86

bool isProgramMemoryAddress(T *V)

Checks if a given type is a pointer to program memory.

Definition AVR.h:55

AddressSpace

An integer that identifies all of the supported AVR address spaces.

Definition AVR.h:43

@ DataMemory

Definition AVR.h:44

@ NumAddrSpaces

Definition AVR.h:51

@ ProgramMemory

Definition AVR.h:45

@ ProgramMemory2

Definition AVR.h:47

@ ProgramMemory4

Definition AVR.h:49

@ ProgramMemory1

Definition AVR.h:46

@ ProgramMemory5

Definition AVR.h:50

@ ProgramMemory3

Definition AVR.h:48

This is an optimization pass for GlobalISel generic memory operations.

void initializeAVRShiftExpandPass(PassRegistry &)

void initializeAVRExpandPseudoPass(PassRegistry &)

FunctionPass * createAVRFrameAnalyzerPass()

Creates instance of the frame analyzer pass.

FunctionPass * createAVRISelDag(AVRTargetMachine &TM, CodeGenOptLevel OptLevel)

FunctionPass * createAVRExpandPseudoPass()

void initializeAVRDAGToDAGISelLegacyPass(PassRegistry &)

CodeGenOptLevel

Code generation optimization level.

Pass * createAVRShiftExpandPass()

decltype(auto) cast(const From &Val)

cast - Return the argument parameter cast to the specified type.

FunctionPass * createAVRBranchSelectionPass()

void initializeAVRAsmPrinterPass(PassRegistry &)