This commit moves FuncOp out of the builtin dialect, and into the Func dialect. This move has been planned in some capacity from the moment we made FuncOp an operation (years ago). This commit handles the functional aspects of the move, but various aspects are left untouched to ease migration: func::FuncOp is re-exported into mlir to reduce the actual API churn, the assembly format still accepts the unqualified `func`. These temporary measures will remain for a little while to simplify migration before being removed. Differential Revision: https://reviews.llvm.org/D121266
9 lines
252 B
MLIR
9 lines
252 B
MLIR
// RUN: mlir-opt %s -verify-diagnostics -pass-pipeline='func.func(test-interface-pass)' -o /dev/null
|
|
|
|
// Test that we run the interface pass on the function.
|
|
|
|
// expected-remark@below {{Executing interface pass on operation}}
|
|
func @main() {
|
|
return
|
|
}
|