I am new to MLIR!
mlir::FunctionType funcType =
builder.getFunctionType(argTypes, resultType);
mlir::func::FuncOp f =
builder.create<mlir::func::FuncOp>(location, sig.getName(), funcType);
assert(f.getArgumentTypes().size() == 1);
assert(f.getResultTypes().size() == 1);
The func dialect talks about external function definitions and functions with body. How can I create either one? I have feeling that f
has no body.