LLVM: include/llvm/IR/DbgVariableFragmentInfo.h Source File (original) (raw)

Go to the documentation of this file.

1

2

3

4

5

6

7

8

9

10

11

12#ifndef LLVM_IR_DBGVARIABLEFRAGMENTINFO_H

13#define LLVM_IR_DBGVARIABLEFRAGMENTINFO_H

14

15#include

16

17namespace llvm {

24

26

27

29

30

33

35 A.OffsetInBits > B.OffsetInBits ? A.OffsetInBits : B.OffsetInBits;

37 A.endInBits() < B.endInBits() ? A.endInBits() : B.endInBits();

38 if (EndInBits <= StartInBits)

39 return {0, 0};

41 }

42};

43}

44

45#endif

static GCRegistry::Add< ErlangGC > A("erlang", "erlang-compatible garbage collector")

static GCRegistry::Add< OcamlGC > B("ocaml", "ocaml 3.10-compatible GC")

This is an optimization pass for GlobalISel generic memory operations.

uint64_t startInBits() const

Return the index of the first bit of the fragment.

Definition DbgVariableFragmentInfo.h:25

DbgVariableFragmentInfo()=default

DbgVariableFragmentInfo(uint64_t SizeInBits, uint64_t OffsetInBits)

Definition DbgVariableFragmentInfo.h:20

uint64_t OffsetInBits

Definition DbgVariableFragmentInfo.h:23

static DbgVariableFragmentInfo intersect(DbgVariableFragmentInfo A, DbgVariableFragmentInfo B)

Returns a zero-sized fragment if A and B don't intersect.

Definition DbgVariableFragmentInfo.h:31

uint64_t endInBits() const

Return the index of the bit after the end of the fragment, e.g.

Definition DbgVariableFragmentInfo.h:28

uint64_t SizeInBits

Definition DbgVariableFragmentInfo.h:22