/// They are wrapped in a `toy` dialect (see next chapter) and get printed:
/// !toy.array<2, 2>
template <typename T> mlir::Type getType(T shape) {
- mlir::Type elementType = mlir::FloatType::getF64(&context);
std::string typeName = "array";
if (!shape.empty()) {
typeName += "<";
SmallVector<mlir::Type, 1> retTy;
if (ret.getNumOperands())
retTy.push_back(ret.getOperand()->getType());
- mlir::Type elementType = mlir::FloatType::getF64(&getContext());
std::vector<mlir::Type> argumentsType;
for (auto arg : f->getArguments())
argumentsType.push_back(arg->getType());