LLVM: lib/IR/GCStrategy.cpp Source File (original) (raw)

Go to the documentation of this file.

1

2

3

4

5

6

7

8

9

10

11

12

13

17

18using namespace llvm;

19

21

23

26 if (S.getName() == Name)

27 return S.instantiate();

28

29

30

31

32

33

34

35

36

38

40

41

42

43

45 "unsupported GC: " + Name +

46 " (did you remember to link and initialize the library?)");

47 } else

49}

#define LLVM_INSTANTIATE_REGISTRY(REGISTRY_CLASS)

static iterator_range< iterator > entries()

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

Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...

This is an optimization pass for GlobalISel generic memory operations.

Registry< GCStrategy > GCRegistry

Subclasses of GCStrategy are made available for use during compilation by adding them to the global G...

LLVM_ABI void report_fatal_error(Error Err, bool gen_crash_diag=true)

LLVM_ABI void linkAllBuiltinGCs()

FIXME: Collector instances are not useful on their own.

LLVM_ABI std::unique_ptr< GCStrategy > getGCStrategy(const StringRef Name)

Lookup the GCStrategy object associated with the given gc name.

Definition GCStrategy.cpp:24