LLVM 19.0.0git
Public Member Functions | List of all members
llvm::SanitizerStatReport Struct Reference

#include "llvm/Transforms/Utils/SanitizerStats.h"

Public Member Functions

 SanitizerStatReport (Module *M)
 
void create (IRBuilder<> &B, SanitizerStatKind SK)
 Generates code into B that increments a location-specific counter tagged with the given sanitizer kind SK.
 
void finish ()
 Finalize module stats array and add global constructor to register it.
 

Detailed Description

Definition at line 32 of file SanitizerStats.h.

Constructor & Destructor Documentation

◆ SanitizerStatReport()

SanitizerStatReport::SanitizerStatReport ( Module M)

Member Function Documentation

◆ create()

void SanitizerStatReport::create ( IRBuilder<> &  B,
SanitizerStatKind  SK 
)

Generates code into B that increments a location-specific counter tagged with the given sanitizer kind SK.

Definition at line 42 of file SanitizerStats.cpp.

References B, F, llvm::ConstantArray::get(), llvm::ArrayType::get(), llvm::FunctionType::get(), llvm::IntegerType::getBitWidth(), llvm::ConstantExpr::getGetElementPtr(), llvm::ConstantExpr::getIntToPtr(), llvm::Constant::getNullValue(), and llvm::kSanitizerStatKindBits.

◆ finish()

void SanitizerStatReport::finish ( )

The documentation for this struct was generated from the following files: