Split out FunctionLike printing/parsing into FunctionImplementation.{h,cpp}
authorAlex Zinenko <zinenko@google.com>
Thu, 28 Nov 2019 19:50:47 +0000 (11:50 -0800)
committerA. Unique TensorFlower <gardener@tensorflow.org>
Thu, 28 Nov 2019 19:51:23 +0000 (11:51 -0800)
commit2f16bf7ac9de4d525fda2916e801e23f456d8b82
tree7362f50f7dddb56b46493405c467e71c220d06c1
parent0494ef60f71abc09dbeed568ef0c5ee09d292bbb
Split out FunctionLike printing/parsing into FunctionImplementation.{h,cpp}

Helper utilies for parsing and printing FunctionLike Ops are only relevant to
the implementation of the Op, not its definition. They depend on
OpImplementation.h and increase the inclusion footprint of FunctionSupport.h,
and do so only to provide some utilities in the "impl" namespace. Move them to
a separate files, similarly to OpDefinition/OpImplementation distinction, and
make only Op implementations use them while keeping headers cleaner. NFC.

PiperOrigin-RevId: 282964556
mlir/include/mlir/IR/FunctionImplementation.h [new file with mode: 0644]
mlir/include/mlir/IR/FunctionSupport.h
mlir/lib/Dialect/GPU/IR/GPUDialect.cpp
mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
mlir/lib/IR/Function.cpp
mlir/lib/IR/FunctionImplementation.cpp [moved from mlir/lib/IR/FunctionSupport.cpp with 99% similarity]