LLVM: include/llvm/TableGen/StringMatcher.h Source File (original) (raw)

Go to the documentation of this file.

1

2

3

4

5

6

7

8

9

10

11

12

13#ifndef LLVM_TABLEGEN_STRINGMATCHER_H

14#define LLVM_TABLEGEN_STRINGMATCHER_H

15

18#include

19#include

20

21namespace llvm {

22

24

25

26

27

28

29

31public:

32 using StringPair = std::pair<std::string, std::string>;

33

34private:

38

39public:

42 : StrVariableName(StrVariableName), Matches(Matches), OS(OS) {}

43

44 void Emit(unsigned Indent = 0, bool IgnoreDuplicates = false) const;

45

46private:

48 unsigned CharNo, unsigned IndentCount,

49 bool IgnoreDuplicates) const;

50};

51

52}

53

54#endif

ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...

StringMatcher(StringRef StrVariableName, ArrayRef< StringPair > Matches, raw_ostream &OS)

Definition StringMatcher.h:40

void Emit(unsigned Indent=0, bool IgnoreDuplicates=false) const

Emit - Top level entry point.

std::pair< std::string, std::string > StringPair

Definition StringMatcher.h:32

StringRef - Represent a constant reference to a string, i.e.

This class implements an extremely fast bulk output stream that can only output to a stream.

This is an optimization pass for GlobalISel generic memory operations.