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

1

2

3

4

5

6

7

8

9

10

11

12

13

14#ifndef LLVM_LIB_TARGET_X86_UTILS_X86INSTRFMA3INFO_H

15#define LLVM_LIB_TARGET_X86_UTILS_X86INSTRFMA3INFO_H

16

17#include

18

19namespace llvm {

20

21

22

23

25

27

28

29

31

32 enum {

36 };

37

39

40

42

43

44

45

46

48

49

50

52 };

53

54

58

59

63

64

68

69

71

72

76

77

79

80

84

88};

89

90

91

92

94

95}

96

97#endif

This is an optimization pass for GlobalISel generic memory operations.

const X86InstrFMA3Group * getFMA3Group(unsigned Opcode, uint64_t TSFlags)

Returns a reference to a group of FMA3 opcodes to where the given Opcode is included.

This class is used to group {132, 213, 231} forms of FMA opcodes together.

Definition X86InstrFMA3Info.h:24

uint16_t Attributes

This bitfield specifies the attributes associated with the created FMA groups of opcodes.

Definition X86InstrFMA3Info.h:30

unsigned get213Opcode() const

Returns the 213 form of FMA opcode.

Definition X86InstrFMA3Info.h:60

bool isKMasked() const

Returns true iff the group of FMA opcodes holds any of k-masked opcodes.

Definition X86InstrFMA3Info.h:81

bool operator<(const X86InstrFMA3Group &RHS) const

Definition X86InstrFMA3Info.h:85

unsigned get231Opcode() const

Returns the 231 form of FMA opcode.

Definition X86InstrFMA3Info.h:65

@ Form213

Definition X86InstrFMA3Info.h:34

@ Form231

Definition X86InstrFMA3Info.h:35

@ Form132

Definition X86InstrFMA3Info.h:33

bool isIntrinsic() const

Returns true iff the group of FMA opcodes holds intrinsic opcodes.

Definition X86InstrFMA3Info.h:70

bool isKMergeMasked() const

Returns true iff the group of FMA opcodes holds k-merge-masked opcodes.

Definition X86InstrFMA3Info.h:73

uint16_t Opcodes[3]

An array holding 3 forms of FMA opcodes.

Definition X86InstrFMA3Info.h:26

unsigned get132Opcode() const

Returns the 132 form of FMA opcode.

Definition X86InstrFMA3Info.h:55

@ Intrinsic

This bit must be set in the 'Attributes' field of FMA group if such group of FMA opcodes consists of ...

Definition X86InstrFMA3Info.h:41

@ KZeroMasked

This bit must be set in the 'Attributes' field of FMA group if such group of FMA opcodes consists of ...

Definition X86InstrFMA3Info.h:51

@ KMergeMasked

This bit must be set in the 'Attributes' field of FMA group if such group of FMA opcodes consists of ...

Definition X86InstrFMA3Info.h:47

bool isKZeroMasked() const

Returns true iff the group of FMA opcodes holds k-zero-masked opcodes.

Definition X86InstrFMA3Info.h:78