LLVM 22.0.0git
llvm::SanitizerStatReport Struct Reference

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

Public Member Functions

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

Detailed Description

Definition at line 33 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::ArrayType::get(), llvm::ConstantArray::get(), llvm::FunctionType::get(), llvm::IntegerType::getBitWidth(), llvm::ConstantExpr::getGetElementPtr(), llvm::ConstantExpr::getIntToPtr(), llvm::Constant::getNullValue(), and llvm::kSanitizerStatKindBits.

◆ finish()


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