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

14#ifndef LLVM_SUPPORT_SMLOC_H

15#define LLVM_SUPPORT_SMLOC_H

16

17#include

18#include

19

20namespace llvm {

21

22

24 const char *Ptr = nullptr;

25

26public:

27 constexpr SMLoc() = default;

28

29 constexpr bool isValid() const { return Ptr != nullptr; }

30

33

35

38 L.Ptr = Ptr;

39 return L;

40 }

41};

42

43

44

45

46

47

49public:

51

56 "Start and End should either both be valid or both be invalid!");

57 }

58

60};

61

62}

63

64#endif

assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())

Represents a location in source code.

static SMLoc getFromPointer(const char *Ptr)

constexpr bool operator!=(const SMLoc &RHS) const

constexpr bool operator==(const SMLoc &RHS) const

constexpr const char * getPointer() const

constexpr bool isValid() const

constexpr SMLoc()=default

Represents a range in source code.

SMRange(SMLoc St, SMLoc En)

This is an optimization pass for GlobalISel generic memory operations.