LLVM: lib/Target/NVPTX/NVPTXMachineFunctionInfo.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_LIB_TARGET_NVPTX_NVPTXMACHINEFUNCTIONINFO_H

15#define LLVM_LIB_TARGET_NVPTX_NVPTXMACHINEFUNCTIONINFO_H

16

19

20namespace llvm {

22private:

23

24

26

27public:

29

36

37

38

39

41

42 for (unsigned i = 0, e = ImageHandleList.size(); i != e; ++i)

43 if (ImageHandleList[i] == Symbol)

44 return i;

45

46 ImageHandleList.push_back(Symbol.str());

47 return ImageHandleList.size()-1;

48 }

49

50

51

55};

56}

57

58#endif

Ty * cloneInfo(const Ty &Old)

bool checkImageHandleSymbol(StringRef Symbol) const

Check if the symbol has a mapping.

Definition NVPTXMachineFunctionInfo.h:52

unsigned getImageHandleSymbolIndex(StringRef Symbol)

Returns the index for the symbol Symbol.

Definition NVPTXMachineFunctionInfo.h:40

NVPTXMachineFunctionInfo(const Function &F, const TargetSubtargetInfo *STI)

Definition NVPTXMachineFunctionInfo.h:28

MachineFunctionInfo * clone(BumpPtrAllocator &Allocator, MachineFunction &DestMF, const DenseMap< MachineBasicBlock *, MachineBasicBlock * > &Src2DstMBB) const override

Make a functionally equivalent copy of this MachineFunctionInfo in MF.

Definition NVPTXMachineFunctionInfo.h:31

This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small.

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

TargetSubtargetInfo - Generic base class for all target subtargets.

This is an optimization pass for GlobalISel generic memory operations.

bool is_contained(R &&Range, const E &Element)

Returns true if Element is found in Range.

BumpPtrAllocatorImpl<> BumpPtrAllocator

The standard BumpPtrAllocator which just uses the default template parameters.

MachineFunctionInfo - This class can be derived from and used by targets to hold private target-speci...