File tree Expand file tree Collapse file tree 6 files changed +8
-8
lines changed Expand file tree Collapse file tree 6 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ class MLIRGenImpl {
120
120
// Arguments type are uniformly unranked tensors.
121
121
llvm::SmallVector<mlir::Type, 4 > argTypes (proto.getArgs ().size (),
122
122
getType (VarType{}));
123
- auto funcType = builder.getFunctionType (argTypes, std::nullopt );
123
+ auto funcType = builder.getFunctionType (argTypes, {} );
124
124
return builder.create <mlir::toy::FuncOp>(location, proto.getName (),
125
125
funcType);
126
126
}
Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ class MLIRGenImpl {
120
120
// Arguments type are uniformly unranked tensors.
121
121
llvm::SmallVector<mlir::Type, 4 > argTypes (proto.getArgs ().size (),
122
122
getType (VarType{}));
123
- auto funcType = builder.getFunctionType (argTypes, std::nullopt );
123
+ auto funcType = builder.getFunctionType (argTypes, /* results= */ {} );
124
124
return builder.create <mlir::toy::FuncOp>(location, proto.getName (),
125
125
funcType);
126
126
}
Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ class MLIRGenImpl {
120
120
// Arguments type are uniformly unranked tensors.
121
121
llvm::SmallVector<mlir::Type, 4 > argTypes (proto.getArgs ().size (),
122
122
getType (VarType{}));
123
- auto funcType = builder.getFunctionType (argTypes, std::nullopt );
123
+ auto funcType = builder.getFunctionType (argTypes, /* results= */ {} );
124
124
return builder.create <mlir::toy::FuncOp>(location, proto.getName (),
125
125
funcType);
126
126
}
Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ class MLIRGenImpl {
120
120
// Arguments type are uniformly unranked tensors.
121
121
llvm::SmallVector<mlir::Type, 4 > argTypes (proto.getArgs ().size (),
122
122
getType (VarType{}));
123
- auto funcType = builder.getFunctionType (argTypes, std::nullopt );
123
+ auto funcType = builder.getFunctionType (argTypes, /* results= */ {} );
124
124
return builder.create <mlir::toy::FuncOp>(location, proto.getName (),
125
125
funcType);
126
126
}
Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ class MLIRGenImpl {
120
120
// Arguments type are uniformly unranked tensors.
121
121
llvm::SmallVector<mlir::Type, 4 > argTypes (proto.getArgs ().size (),
122
122
getType (VarType{}));
123
- auto funcType = builder.getFunctionType (argTypes, std::nullopt );
123
+ auto funcType = builder.getFunctionType (argTypes, /* results= */ {} );
124
124
return builder.create <mlir::toy::FuncOp>(location, proto.getName (),
125
125
funcType);
126
126
}
Original file line number Diff line number Diff line change @@ -182,7 +182,7 @@ class MLIRGenImpl {
182
182
return nullptr ;
183
183
argTypes.push_back (type);
184
184
}
185
- auto funcType = builder.getFunctionType (argTypes, std::nullopt );
185
+ auto funcType = builder.getFunctionType (argTypes, /* results= */ {} );
186
186
return builder.create <mlir::toy::FuncOp>(location, proto.getName (),
187
187
funcType);
188
188
}
@@ -441,10 +441,10 @@ class MLIRGenImpl {
441
441
for (auto &var : lit.getValues ()) {
442
442
if (auto *number = llvm::dyn_cast<NumberExprAST>(var.get ())) {
443
443
attrElements.push_back (getConstantAttr (*number));
444
- typeElements.push_back (getType (std::nullopt ));
444
+ typeElements.push_back (getType (/* shape= */ {} ));
445
445
} else if (auto *lit = llvm::dyn_cast<LiteralExprAST>(var.get ())) {
446
446
attrElements.push_back (getConstantAttr (*lit));
447
- typeElements.push_back (getType (std::nullopt ));
447
+ typeElements.push_back (getType (/* shape= */ {} ));
448
448
} else {
449
449
auto *structLit = llvm::cast<StructLiteralExprAST>(var.get ());
450
450
auto attrTypePair = getConstantAttr (*structLit);
You can’t perform that action at this time.
0 commit comments