class InstrProfiling

Declaration

class InstrProfiling : public PassInfoMixin { /* full declaration omitted */ };

Description

Instrumentation based profiling lowering pass. This pass lowers the profile instrumented code generated by FE or the IR based instrumentation pass.

Declared at: llvm/include/llvm/Transforms/Instrumentation/InstrProfiling.h:35

Inherits from: PassInfoMixin

Method Overview

  • public InstrProfiling()
  • public InstrProfiling(const llvm::InstrProfOptions & Options, bool IsCS = false)
  • public llvm::PreservedAnalyses run(llvm::Module & M, llvm::ModuleAnalysisManager & AM)
  • public bool run(llvm::Module & M, std::function<const TargetLibraryInfo &(Function &)> GetTLI)

Methods

InstrProfiling()

Declared at: llvm/include/llvm/Transforms/Instrumentation/InstrProfiling.h:37

InstrProfiling(
    const llvm::InstrProfOptions& Options,
    bool IsCS = false)

Declared at: llvm/include/llvm/Transforms/Instrumentation/InstrProfiling.h:38

Parameters

const llvm::InstrProfOptions& Options
bool IsCS = false

llvm::PreservedAnalyses run(
    llvm::Module& M,
    llvm::ModuleAnalysisManager& AM)

Declared at: llvm/include/llvm/Transforms/Instrumentation/InstrProfiling.h:41

Parameters

llvm::Module& M
llvm::ModuleAnalysisManager& AM

bool run(llvm::Module& M,
         std::function<const TargetLibraryInfo&(
             Function&)> GetTLI)

Declared at: llvm/include/llvm/Transforms/Instrumentation/InstrProfiling.h:42

Parameters

llvm::Module& M
std::function<const TargetLibraryInfo&(Function&)> GetTLI