NFC: Pass PassInstrumentations by unique_ptr instead of raw pointer.
authorRiver Riddle <riverriddle@google.com>
Sun, 15 Sep 2019 00:44:10 +0000 (17:44 -0700)
committerA. Unique TensorFlower <gardener@tensorflow.org>
Sun, 15 Sep 2019 00:44:50 +0000 (17:44 -0700)
commitbbe65b46f567021f2b77925ec2a1112b5fd1e1e1
treeb1aa7dd5c384a759383c6112580c91b4e9599488
parentcb1bcba69beeeb259eaf15d36892b1922046c525
NFC: Pass PassInstrumentations by unique_ptr instead of raw pointer.

This makes the ownership model explicit, and removes potential user errors.

PiperOrigin-RevId: 269122834
mlir/g3doc/WritingAPass.md
mlir/include/mlir/Pass/PassInstrumentation.h
mlir/include/mlir/Pass/PassManager.h
mlir/lib/Pass/IRPrinting.cpp
mlir/lib/Pass/Pass.cpp
mlir/lib/Pass/PassTiming.cpp