Start defining a new operation 'FuncOp' that replicates all of the functionality...
authorRiver Riddle <riverriddle@google.com>
Mon, 3 Jun 2019 19:08:22 +0000 (12:08 -0700)
committerMehdi Amini <joker.eph@gmail.com>
Tue, 4 Jun 2019 02:26:46 +0000 (19:26 -0700)
commit62cbdd51fafa9cc6c9f351bdcfc7426c0195c9b8
tree1e01e2ffa77ea6a9288a049904b996c50911f916
parentc014f5699f103ec06a2623cf573026c3d502eea1
Start defining a new operation 'FuncOp' that replicates all of the functionality of 'Function', but with an operation. The pretty syntax for the operation is exactly the same as that of Function. This operation is currently builtin, but should hopefully be moved to a different dialect when it has been completely decoupled from IR/. This is the first patch in a large series that refactors Functions to be represented as operations.

PiperOrigin-RevId: 251281612
mlir/include/mlir/IR/Function.h
mlir/include/mlir/IR/OpImplementation.h
mlir/lib/IR/Function.cpp
mlir/lib/IR/MLIRContext.cpp
mlir/lib/Parser/Parser.cpp
mlir/test/IR/func-op.mlir [new file with mode: 0644]
mlir/test/IR/invalid-func-op.mlir [new file with mode: 0644]
mlir/test/IR/invalid.mlir