LLVM: include/llvm/Frontend/OpenMP/DirectiveNameParser.h Source File (original) (raw)

Go to the documentation of this file.

1

2

3

4

5

6

7

8

9#ifndef LLVM_FRONTEND_OPENMP_DIRECTIVENAMEPARSER_H

10#define LLVM_FRONTEND_OPENMP_DIRECTIVENAMEPARSER_H

11

17

18#include

19

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

41

42

43

44

45

46

49

52

53 private:

55 std::unique_ptr Transition;

56

59 bool isValid() const {

60 return Value != Directive::OMPD_unknown || !Transition->empty();

61 }

63 };

64

65 const State *initial() const { return &InitialState; }

67

69

70private:

72 State *insertTransition(State *From, StringRef Tok);

73

74 State InitialState;

75};

76}

77

78#endif

This file defines the StringMap class.

static GCRegistry::Add< StatepointGC > D("statepoint-example", "an example strategy for statepoint")

This file defines the SmallVector class.

This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small.

StringMap - This is an unconventional map that is specialized for handling keys that are "strings",...

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

friend struct DirectiveNameParser

Definition DirectiveNameParser.h:62

Directive Value

Definition DirectiveNameParser.h:51

static LLVM_ABI SmallVector< StringRef > tokenize(StringRef N)

const State * initial() const

Definition DirectiveNameParser.h:65

LLVM_ABI DirectiveNameParser(SourceLanguage L=SourceLanguage::C)