[Mlir-commits] [mlir] [mlir][spirv] Support function argument decorations for ptr in the PhysicalStorageBuffer (PR #76353)
Kohei Yamaguchi
llvmlistbot at llvm.org
Thu Jan 4 21:53:33 PST 2024
================
@@ -972,8 +972,73 @@ void spirv::FuncOp::print(OpAsmPrinter &printer) {
}
LogicalResult spirv::FuncOp::verifyType() {
- if (getFunctionType().getNumResults() > 1)
+ FunctionType fnType = getFunctionType();
+ if (fnType.getNumResults() > 1)
return emitOpError("cannot have more than one result");
+
+ auto funcOp = dyn_cast<spirv::FuncOp>(getOperation());
----------------
sott0n wrote:
Thanks for this comment! I remove it.
https://github.com/llvm/llvm-project/pull/76353
More information about the Mlir-commits
mailing list