LLVM: include/llvm/CodeGen/GlobalISel/CombinerInfo.h Source File (original) (raw)

1

2

3

4

5

6

7

8

9

10

11

12

13

14#ifndef LLVM_CODEGEN_GLOBALISEL_COMBINERINFO_H

15#define LLVM_CODEGEN_GLOBALISEL_COMBINERINFO_H

16

17#include

18namespace llvm {

19

21

22

23

25 CombinerInfo(bool AllowIllegalOps, bool ShouldLegalizeIllegal,

27 bool MinSize)

32 "Expecting legalizerInfo when illegalops not allowed");

33 }

35

36

38

39

40

43

44

45

46

48

50

52

53

54

56

58

59

60

62

63

64

65

67

68

69

70

72 };

73

74

76

77

78

79

81};

82}

83

84#endif

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

This is an optimization pass for GlobalISel generic memory operations.

bool EnableMinSize

Whether we're optimizing for minsize (-Oz).

Definition CombinerInfo.h:51

unsigned MaxIterations

The maximum number of times the Combiner will iterate over the MachineFunction.

Definition CombinerInfo.h:55

CombinerInfo(bool AllowIllegalOps, bool ShouldLegalizeIllegal, const LegalizerInfo *LInfo, bool OptEnabled, bool OptSize, bool MinSize)

Definition CombinerInfo.h:25

ObserverLevel ObserverLvl

Select how the Combiner acts on MIR changes.

Definition CombinerInfo.h:75

const LegalizerInfo * LInfo

Definition CombinerInfo.h:42

bool EnableFullDCE

Whether dead code elimination is performed before each Combiner iteration.

Definition CombinerInfo.h:80

bool LegalizeIllegalOps

If LegalizeIllegalOps is true, the Combiner will also legalize the illegal ops that are created.

Definition CombinerInfo.h:41

bool IllegalOpsAllowed

If IllegalOpsAllowed is false, the CombinerHelper will make use of the legalizerInfo to check for leg...

Definition CombinerInfo.h:37

virtual ~CombinerInfo()=default

bool EnableOptSize

Whether we're optimizing for size.

Definition CombinerInfo.h:49

bool EnableOpt

Whether optimizations should be enabled.

Definition CombinerInfo.h:47

ObserverLevel

Definition CombinerInfo.h:57

@ DCE

Enables Observer-based detection of dead instructions.

Definition CombinerInfo.h:66

@ Basic

Only retry combining created/changed instructions.

Definition CombinerInfo.h:61

@ SinglePass

Enables Observer-based DCE and additional heuristics that retry combining defined and used instructio...

Definition CombinerInfo.h:71