LLVM: include/llvm/Support/Errno.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_SUPPORT_ERRNO_H

14#define LLVM_SUPPORT_ERRNO_H

15

17#include

18#include

19

20namespace llvm {

21namespace sys {

22

23

24

25

26

28

29

31

32template <typename FailT, typename Fun, typename... Args>

34 const Args &... As) {

35 decltype(F(As...)) Res;

36 do {

37 errno = 0;

38 Res = F(As...);

39 } while (Res == Fail && errno == EINTR);

40 return Res;

41}

42

43}

44}

45

46#endif

constexpr char Args[]

Key for Kernel::Metadata::mArgs.

decltype(auto) RetryAfterSignal(const FailT &Fail, const Fun &F, const Args &... As)

Definition Errno.h:33

LLVM_ABI std::string StrError()

Returns a string representation of the errno value, using whatever thread-safe variant of strerror() ...

This is an optimization pass for GlobalISel generic memory operations.