clang: include/clang/Basic/XRayInstr.h Source File (original) (raw)

1

2

3

4

5

6

7

8

9

10

11

12

13

14#ifndef LLVM_CLANG_BASIC_XRAYINSTR_H

15#define LLVM_CLANG_BASIC_XRAYINSTR_H

16

18#include "llvm/ADT/StringRef.h"

19#include "llvm/Support/MathExtras.h"

20#include

21#include

22

24

26

46

49 assert(llvm::isPowerOf2_32(K));

50 return Mask & K;

51 }

52

54

58

60

62

64

66};

67

68

70

71

74

75}

76

77#endif

Forward-declares and imports various common LLVM datatypes that clang wants to use unqualified.

Definition XRayInstr.h:27

constexpr XRayInstrMask Typed

Definition XRayInstr.h:42

XRayInstrOrdinal

Definition XRayInstr.h:30

@ XRIO_Count

Definition XRayInstr.h:35

@ XRIO_FunctionExit

Definition XRayInstr.h:32

@ XRIO_FunctionEntry

Definition XRayInstr.h:31

@ XRIO_Custom

Definition XRayInstr.h:33

@ XRIO_Typed

Definition XRayInstr.h:34

constexpr XRayInstrMask FunctionExit

Definition XRayInstr.h:40

constexpr XRayInstrMask None

Definition XRayInstr.h:38

constexpr XRayInstrMask FunctionEntry

Definition XRayInstr.h:39

constexpr XRayInstrMask All

Definition XRayInstr.h:43

constexpr XRayInstrMask Custom

Definition XRayInstr.h:41

The JSON file list parser is used to communicate input to InstallAPI.

uint32_t XRayInstrMask

Definition XRayInstr.h:25

XRayInstrMask parseXRayInstrValue(StringRef Value)

Parses a command line argument into a mask.

void serializeXRayInstrValue(XRayInstrSet Set, SmallVectorImpl< StringRef > &Values)

Serializes a set into a list of command line arguments.

Definition XRayInstr.h:47

bool full() const

Definition XRayInstr.h:63

XRayInstrMask Mask

Definition XRayInstr.h:65

void set(XRayInstrMask K, bool Value)

Definition XRayInstr.h:55

void clear(XRayInstrMask K=XRayInstrKind::All)

Definition XRayInstr.h:59

bool hasOneOf(XRayInstrMask K) const

Definition XRayInstr.h:53

bool has(XRayInstrMask K) const

Definition XRayInstr.h:48

bool empty() const

Definition XRayInstr.h:61