NFC: Update FuncOp::addEntryBlock to return the newly inserted block.
authorRiver Riddle <riverriddle@google.com>
Thu, 8 Aug 2019 02:23:35 +0000 (19:23 -0700)
committerA. Unique TensorFlower <gardener@tensorflow.org>
Thu, 8 Aug 2019 02:24:01 +0000 (19:24 -0700)
commitf56494f537dcee9324814c65b462e07666d74084
tree15a5e955319beded1358791a56ee2fd8a6d2411a
parentba35dca4fb15108db8e4beefb9a9b49be5f094e9
NFC: Update FuncOp::addEntryBlock to return the newly inserted block.

The entry block is often used recently after insertion. This removes the need to perform an additional lookup in such cases.

PiperOrigin-RevId: 262265671
mlir/examples/toy/Ch2/mlir/MLIRGen.cpp
mlir/examples/toy/Ch3/mlir/MLIRGen.cpp
mlir/examples/toy/Ch4/mlir/MLIRGen.cpp
mlir/examples/toy/Ch5/mlir/MLIRGen.cpp
mlir/include/mlir/IR/Function.h
mlir/lib/Dialect/SPIRV/Serialization/ConvertFromBinary.cpp
mlir/lib/IR/Function.cpp
mlir/lib/Linalg/Transforms/LowerToLLVMDialect.cpp