LLVM: include/llvm/Transforms/Utils/ASanStackFrameLayout.h Source File (original) (raw)

1

2

3

4

5

6

7

8

9

10

11

12#ifndef LLVM_TRANSFORMS_UTILS_ASANSTACKFRAMELAYOUT_H

13#define LLVM_TRANSFORMS_UTILS_ASANSTACKFRAMELAYOUT_H

17

18namespace llvm {

19

21

22

23

29

30

43

44

50

52

54

56

57

58

60

61

64

65

66

70

71

72

73

75

78

79}

80

81#endif

This file defines the SmallString class.

This file defines the SmallVector class.

an instruction to allocate memory on the stack

SmallString - A SmallString is just a SmallVector with methods and accessors that make it work better...

This class consists of common code factored out of the SmallVector class to reduce code duplication b...

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

This is an optimization pass for GlobalISel generic memory operations.

LLVM_ABI SmallVector< uint8_t, 64 > GetShadowBytesAfterScope(const SmallVectorImpl< ASanStackVariableDescription > &Vars, const ASanStackFrameLayout &Layout)

LLVM_ABI SmallString< 64 > ComputeASanStackFrameDescription(const SmallVectorImpl< ASanStackVariableDescription > &Vars)

LLVM_ABI SmallVector< uint8_t, 64 > GetShadowBytes(const SmallVectorImpl< ASanStackVariableDescription > &Vars, const ASanStackFrameLayout &Layout)

static const int kAsanStackUseAfterScopeMagic

Definition ASanStackFrameLayout.h:28

LLVM_ABI ASanStackFrameLayout ComputeASanStackFrameLayout(SmallVectorImpl< ASanStackVariableDescription > &Vars, uint64_t Granularity, uint64_t MinHeaderSize)

static const int kAsanStackLeftRedzoneMagic

Definition ASanStackFrameLayout.h:24

static const int kAsanStackUseAfterReturnMagic

Definition ASanStackFrameLayout.h:27

static const int kAsanStackRightRedzoneMagic

Definition ASanStackFrameLayout.h:26

static const int kAsanStackMidRedzoneMagic

Definition ASanStackFrameLayout.h:25

uint64_t Granularity

Definition ASanStackFrameLayout.h:46

uint64_t FrameAlignment

Definition ASanStackFrameLayout.h:47

uint64_t FrameSize

Definition ASanStackFrameLayout.h:48

size_t Offset

Definition ASanStackFrameLayout.h:39

AllocaInst * AI

Definition ASanStackFrameLayout.h:38

unsigned Line

Definition ASanStackFrameLayout.h:41

size_t LifetimeSize

Definition ASanStackFrameLayout.h:35

uint64_t Alignment

Definition ASanStackFrameLayout.h:37

const char * Name

Definition ASanStackFrameLayout.h:32

uint64_t Size

Definition ASanStackFrameLayout.h:34