llvm::LLVMContext::setOptPassGate

Set the object which can disable optional passes and individual optimizations at compile time.

Synopsis

Declared in <llvm/IR/LLVMContext.h>

void
setOptPassGate(OptPassGate& Gate);

Description

The lifetime of the object must be guaranteed to extend as long as the LLVMContext is used by compilation.

Parameters

NameDescription
GateThe optimization pass gate to use.