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

1

2

3

4

5

6

7

8

9

10

11

12

13#ifndef LLVM_FRONTEND_OPENMP_OMP_H

14#define LLVM_FRONTEND_OPENMP_OMP_H

15

16#include "llvm/Frontend/OpenMP/OMP.h.inc"

18

22

26

29

31

35

36

38

39 switch (C) {

40 case OMPC_affinity:

41 case OMPC_depend:

42 case OMPC_from:

43 case OMPC_map:

44 case OMPC_to:

45 return true;

46 default:

47 return false;

48 }

49}

50

51

53 switch (C) {

54 case OMPC_detach:

55 case OMPC_firstprivate:

56

57 case OMPC_in_reduction:

58 case OMPC_is_device_ptr:

59 case OMPC_lastprivate:

60 case OMPC_linear:

61 case OMPC_private:

62 case OMPC_reduction:

63 case OMPC_task_reduction:

64 case OMPC_use_device_ptr:

65 return true;

66 default:

67 return false;

68 }

69}

70

73

74

75

77

78

80

81

82

84 unsigned &LineNo);

85

86}

87

88#endif

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

This file defines the SmallVector class.

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

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

@ C

The default llvm calling convention, compatible with C.

LLVM_ABI ArrayRef< unsigned > getOpenMPVersions()

LLVM_ABI bool isCombinedConstruct(Directive D)

LLVM_ABI std::string deconstructOpenMPKernelName(StringRef KernelName, unsigned &LineNo)

Deconstruct an OpenMP kernel name into the parent function name and the line number.

LLVM_ABI ArrayRef< Directive > getLeafOrCompositeConstructs(Directive D, SmallVectorImpl< Directive > &Output)

bool isPrivatizingConstruct(Directive D, unsigned Version)

Can directive D, under some circumstances, create a private copy of a variable in given OpenMP versio...

static constexpr bool canHaveIterator(Clause C)

Can clause C have an iterator-modifier.

Definition OMP.h:37

LLVM_ABI bool isCompositeConstruct(Directive D)

static constexpr bool isPrivatizingClause(Clause C)

Definition OMP.h:52

LLVM_ABI Directive getCompoundConstruct(ArrayRef< Directive > Parts)

static constexpr unsigned FallbackVersion

Definition OMP.h:71

LLVM_ABI bool isLeafConstruct(Directive D)

LLVM_ABI ArrayRef< Directive > getLeafConstructsOrSelf(Directive D)

LLVM_ABI std::string prettifyFunctionName(StringRef FunctionName)

Create a nicer version of a function name for humans to look at.

LLVM_ABI ArrayRef< Directive > getLeafConstructs(Directive D)

FunctionAddr VTableAddr uintptr_t uintptr_t Version

ArrayRef(const T &OneElt) -> ArrayRef< T >