LLVM: lib/Target/PowerPC/MCTargetDesc/PPCPredicates.h Source File (original) (raw)

1

2

3

4

5

6

7

8

9

10

11

12

13#ifndef LLVM_LIB_TARGET_POWERPC_MCTARGETDESC_PPCPREDICATES_H

14#define LLVM_LIB_TARGET_POWERPC_MCTARGETDESC_PPCPREDICATES_H

15

16

17#undef PPC

18

19

20

21#undef PPC

22

23namespace llvm {

24namespace PPC {

25

60

61

68

69

71

72

73

75

76

80

81

85

86

91}

92}

93

94#endif

Define some predicates that are used for node matching.

Predicate getSwappedPredicate(Predicate Opcode)

Assume the condition register is set by MI(a,b), return the predicate if we modify the instructions s...

Predicate

Predicate - These are "(BI << 5) | BO" for various predicates.

Definition PPCPredicates.h:26

@ PRED_GE_PLUS

Definition PPCPredicates.h:46

@ PRED_BIT_SET

Definition PPCPredicates.h:57

@ PRED_LT_MINUS

Definition PPCPredicates.h:35

@ PRED_EQ

Definition PPCPredicates.h:29

@ PRED_GE

Definition PPCPredicates.h:30

@ PRED_LE_PLUS

Definition PPCPredicates.h:44

@ PRED_LT

Definition PPCPredicates.h:27

@ PRED_LT_PLUS

Definition PPCPredicates.h:43

@ PRED_UN_PLUS

Definition PPCPredicates.h:49

@ PRED_NE_PLUS

Definition PPCPredicates.h:48

@ PRED_UN_MINUS

Definition PPCPredicates.h:41

@ PRED_UN

Definition PPCPredicates.h:33

@ PRED_GT_PLUS

Definition PPCPredicates.h:47

@ PRED_GT

Definition PPCPredicates.h:31

@ PRED_NU

Definition PPCPredicates.h:34

@ PRED_NU_PLUS

Definition PPCPredicates.h:50

@ PRED_GE_MINUS

Definition PPCPredicates.h:38

@ PRED_BIT_UNSET

Definition PPCPredicates.h:58

@ PRED_LE_MINUS

Definition PPCPredicates.h:36

@ PRED_NE_MINUS

Definition PPCPredicates.h:40

@ PRED_GT_MINUS

Definition PPCPredicates.h:39

@ PRED_LE

Definition PPCPredicates.h:28

@ PRED_NU_MINUS

Definition PPCPredicates.h:42

@ PRED_NE

Definition PPCPredicates.h:32

@ PRED_EQ_MINUS

Definition PPCPredicates.h:37

@ PRED_SPE

Definition PPCPredicates.h:53

@ PRED_EQ_PLUS

Definition PPCPredicates.h:45

unsigned getPredicateCondition(Predicate Opcode)

Return the condition without hint bits.

Definition PPCPredicates.h:77

Predicate getPredicate(unsigned Condition, unsigned Hint)

Return predicate consisting of specified condition and hint bits.

Definition PPCPredicates.h:87

unsigned getPredicateHint(Predicate Opcode)

Return the hint bits of the predicate.

Definition PPCPredicates.h:82

BranchHintBit

Definition PPCPredicates.h:62

@ BR_NONTAKEN_HINT

Definition PPCPredicates.h:64

@ BR_HINT_MASK

Definition PPCPredicates.h:66

@ BR_NO_HINT

Definition PPCPredicates.h:63

@ BR_TAKEN_HINT

Definition PPCPredicates.h:65

Predicate InvertPredicate(Predicate Opcode)

Invert the specified predicate. != -> ==, < -> >=.

This is an optimization pass for GlobalISel generic memory operations.