LLVM: include/llvm/TextAPI/TextAPIWriter.h Source File (original) (raw)

Go to the documentation of this file.

1

2

3

4

5

6

7

8

9#ifndef LLVM_TEXTAPI_TEXTAPIWRITER_H

10#define LLVM_TEXTAPI_TEXTAPIWRITER_H

11

15

16namespace llvm {

17

20

22

24public:

26

27

28

29

30

31

32

33

37 bool Compact = false);

38

39

40

41

51};

52

53}

54}

55

56#endif

This file implements the StringSwitch template, which mimics a switch() statement whose cases are str...

Lightweight error class with error context and mandatory checking.

Defines the interface file.

static LLVM_ABI Error writeToStream(raw_ostream &OS, const InterfaceFile &File, const FileType FileKind=FileType::Invalid, bool Compact=false)

Write TAPI text file contents into stream.

static FileType parseFileType(const StringRef FT)

Get TAPI FileType from the input string.

Definition TextAPIWriter.h:42

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

A switch()-like statement whose cases are string literals.

StringSwitch & Case(StringLiteral S, T Value)

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

FileType

Defines the file type TextAPI files can represent.

@ Invalid

Invalid file type.

@ TBD_V1

Text-based stub file (.tbd) version 1.0.

@ TBD_V3

Text-based stub file (.tbd) version 3.0.

@ TBD_V5

Text-based stub file (.tbd) version 5.0.

@ TBD_V4

Text-based stub file (.tbd) version 4.0.

@ TBD_V2

Text-based stub file (.tbd) version 2.0.

This is an optimization pass for GlobalISel generic memory operations.