LLVM: include/llvm/Transforms/Instrumentation/AddressSanitizer.h Source File (original) (raw)

1

2

3

4

5

6

7

8

9

10

11

12

13#ifndef LLVM_TRANSFORMS_INSTRUMENTATION_ADDRESSSANITIZER_H

14#define LLVM_TRANSFORMS_INSTRUMENTATION_ADDRESSSANITIZER_H

15

19

20namespace llvm {

23

34

35

36

37

38

39

41public:

44 bool UseGlobalGC = true, bool UseOdrIndicator = true,

52

53private:

55 bool UseGlobalGC;

56 bool UseOdrIndicator;

59};

60

71

72}

73

74#endif

This header defines various interfaces for pass management in LLVM.

LLVM_ABI AddressSanitizerPass(const AddressSanitizerOptions &Options, bool UseGlobalGC=true, bool UseOdrIndicator=true, AsanDtorKind DestructorKind=AsanDtorKind::Global, AsanCtorKind ConstructorKind=AsanCtorKind::Global)

static bool isRequired()

Definition AddressSanitizer.h:51

LLVM_ABI PreservedAnalyses run(Module &M, ModuleAnalysisManager &AM)

LLVM_ABI void printPipeline(raw_ostream &OS, function_ref< StringRef(StringRef)> MapClassName2PassName)

A Module instance is used to store all the information related to an LLVM module.

A set of analyses that are preserved following a run of a transformation pass.

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

An efficient, type-erasing, non-owning reference to a callable.

This class implements an extremely fast bulk output stream that can only output to a stream.

This is an optimization pass for GlobalISel generic memory operations.

AsanDetectStackUseAfterReturnMode

Mode of ASan detect stack use after return.

@ Runtime

Detect stack use after return if not disabled runtime with (ASAN_OPTIONS=detect_stack_use_after_retur...

AsanDtorKind

Types of ASan module destructors supported.

@ Global

Append to llvm.global_dtors.

AsanCtorKind

Types of ASan module constructors supported.

AnalysisManager< Module > ModuleAnalysisManager

Convenience typedef for the Module analysis manager.

const bool IsWrite

Definition AddressSanitizer.h:64

const bool CompileKernel

Definition AddressSanitizer.h:65

const int32_t Packed

Definition AddressSanitizer.h:62

LLVM_ABI ASanAccessInfo(int32_t Packed)

const uint8_t AccessSizeIndex

Definition AddressSanitizer.h:63

Definition AddressSanitizer.h:24

AsanDetectStackUseAfterReturnMode UseAfterReturn

Definition AddressSanitizer.h:28

bool CompileKernel

Definition AddressSanitizer.h:25

bool InsertVersionCheck

Definition AddressSanitizer.h:32

bool Recover

Definition AddressSanitizer.h:26

int InstrumentationWithCallsThreshold

Definition AddressSanitizer.h:30

bool UseAfterScope

Definition AddressSanitizer.h:27

uint32_t MaxInlinePoisoningSize

Definition AddressSanitizer.h:31

A CRTP mix-in to automatically provide informational APIs needed for passes.