LLVM 22.0.0git
llvm::AllocTokenPass Class Reference

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

#include "llvm/Transforms/Instrumentation/AllocToken.h"

Inheritance diagram for llvm::AllocTokenPass:
[legend]

Public Member Functions

LLVM_ABI AllocTokenPass (AllocTokenOptions Opts={})
LLVM_ABI PreservedAnalyses run (Module &M, ModuleAnalysisManager &MAM)
Public Member Functions inherited from llvm::PassInfoMixin< AllocTokenPass >
void printPipeline (raw_ostream &OS, function_ref< StringRef(StringRef)> MapClassName2PassName)

Static Public Member Functions

static bool isRequired ()
Static Public Member Functions inherited from llvm::PassInfoMixin< AllocTokenPass >
static StringRef name ()
 Gets the name of the pass we are mixed into.

Detailed Description

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

Definition at line 34 of file AllocToken.h.

Constructor & Destructor Documentation

◆ AllocTokenPass()

AllocTokenPass::AllocTokenPass ( AllocTokenOptions Opts = {})
explicit

Definition at line 479 of file AllocToken.cpp.

References llvm::move().

Member Function Documentation

◆ isRequired()

bool llvm::AllocTokenPass::isRequired ( )
inlinestatic

Definition at line 38 of file AllocToken.h.

◆ run()


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