Details
Details
- Reviewers
rriddle - Commits
- rGeb8c72cb0d89: [MLIR][NFC] Add FuncOp::getArgumentTypes()
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/include/mlir/IR/FunctionSupport.h | ||
---|---|---|
223 | This API is deceptive, as it doesn't add an argument to the type of the function itself. I would prefer we just don't add it. |
mlir/include/mlir/IR/FunctionSupport.h | ||
---|---|---|
223 | That is true, it does a transient update. I agree not to put it (we can also update the type, but the use cases I have seen add multiple arguments, so we will end up instantiating a lot of FunctionType's in the process which is not desirable). |
This API is deceptive, as it doesn't add an argument to the type of the function itself. I would prefer we just don't add it.