llvm::AbstractAttribute::initialize

Initialize the state with the information in the Attributor A.

Synopsis

Declared in <llvm/Transforms/IPO/Attributor.h>

virtual
void
initialize(Attributor& A);

Description

This function is called by the Attributor once all abstract attributes have been identified. It can and shall be used for task like:

  • identify existing knowledge in the IR and use it for the "known state"

  • perform any work that is not going to change over time, e.g., determine a subset of the IR, or attributes in-flight, that have to be looked at in the updateImpl method.

Parameters

NameDescription
AThe Attributor managing the analysis.