LLVM: include/llvm/IR/TypedPointerType.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_IR_TYPEDPOINTERTYPE_H

15#define LLVM_IR_TYPEDPOINTERTYPE_H

16

19

20namespace llvm {

21

22

23

24

25

26class TypedPointerType : public Type {

27 explicit TypedPointerType(Type *ElType, unsigned AddrSpace);

28

29 Type *PointeeTy;

30

31public:

33 TypedPointerType &operator=(const TypedPointerType &) = delete;

34

35

36

39

40

42

43

45

47

48

52};

53

54}

55

56#endif

@ TypedPointerTyID

Typed pointer used by some GPU targets.

Type(LLVMContext &C, TypeID tid)

unsigned getSubclassData() const

static bool classof(const Type *T)

Implement support type inquiry through isa, cast, and dyn_cast.

Definition TypedPointerType.h:49

static LLVM_ABI bool isValidElementType(Type *ElemTy)

Return true if the specified type is valid as a element type.

TypedPointerType & operator=(const TypedPointerType &)=delete

Type * getElementType() const

Definition TypedPointerType.h:46

static LLVM_ABI TypedPointerType * get(Type *ElementType, unsigned AddressSpace)

This constructs a pointer to an object of the specified type in a numbered address space.

unsigned getAddressSpace() const

Return the address space of the Pointer type.

Definition TypedPointerType.h:44

TypedPointerType(const TypedPointerType &)=delete

This is an optimization pass for GlobalISel generic memory operations.