class OptPassGate

Declaration

class OptPassGate { /* full declaration omitted */ };

Description

Extensions to this class implement mechanisms to disable passes and individual optimizations at compile time.

Declared at: llvm/include/llvm/IR/OptBisect.h:25

Method Overview

Methods

virtual bool isEnabled() const

Description

isEnabled should return true before calling shouldRunPass

Declared at: llvm/include/llvm/IR/OptBisect.h:36

virtual bool shouldRunPass(
    const llvm::Pass* P,
    llvm::StringRef IRDescription)

Description

IRDescription is a textual description of the IR unit the pass is running over.

Declared at: llvm/include/llvm/IR/OptBisect.h:31

Parameters

const llvm::Pass* P
llvm::StringRef IRDescription

virtual ~OptPassGate()

Declared at: llvm/include/llvm/IR/OptBisect.h:27