A module pass that rewrites heap allocations to use token‐enabled allocation functions based on various source‐level properties.

Synopsis

Declared in <llvm/Transforms/Instrumentation/AllocToken.h>

class AllocTokenPass
    : public RequiredPassInfoMixin<AllocTokenPass>

Base Classes

Name

Description

RequiredPassInfoMixin<AllocTokenPass>

A CRTP mix‐in for passes that should not be skipped.

Member Functions

Name

Description

AllocTokenPass [constructor]

Construct an AllocToken module pass with the given options.

run

Run AllocToken instrumentation over the module.

Static Member Functions

Name

Description

isRequired

Return true; required passes cannot be skipped.

Created with MrDocs