summaryrefslogtreecommitdiffstats
path: root/mlir/lib/Transforms/ViewFunctionGraph.cpp
diff options
context:
space:
mode:
authorRiver Riddle <riverriddle@google.com>2019-02-27 10:57:59 -0800
committerjpienaar <jpienaar@google.com>2019-03-29 16:46:59 -0700
commit6067cdebaa391cb2ab9bda9cd91b26f9ddd95a11 (patch)
tree2c348b128dedf94b7f854d12c6685e13998d2cfb /mlir/lib/Transforms/ViewFunctionGraph.cpp
parent493d46067b371c87f00aa8e03dfc31df63a719ef (diff)
downloadbcm5719-llvm-6067cdebaa391cb2ab9bda9cd91b26f9ddd95a11.tar.gz
bcm5719-llvm-6067cdebaa391cb2ab9bda9cd91b26f9ddd95a11.zip
Implement the initial pass management functionality.
The definitions of derived passes have now changed and passes must adhere to the following: * Inherit from a CRTP base class FunctionPass/ModulePass. - This class provides several necessary utilities for the transformation: . Access to the IR unit being transformed (getFunction/getModule) . Various utilities for pass identification and registration. * Provide a 'PassResult runOn(Function|Module)()' method to transform the IR. - This replaces the runOn* functions from before. This patch also introduces the notion of the PassManager. This allows for simplified construction of pass pipelines and acts as the sole interface for executing passes. This is important as FunctionPass will no longer have a 'runOnModule' method. PiperOrigin-RevId: 235952008
Diffstat (limited to 'mlir/lib/Transforms/ViewFunctionGraph.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud