This aligns the behavior with the standard call as well as the LLVM verifier.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Thanks, LGTM! Please, give some time for @ftynse to have a look.
mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp | ||
---|---|---|
541 | it an -> it is an? | |
547 | remove {}? | |
mlir/test/mlir-cpu-runner/bare_ptr_call_conv.mlir | ||
143 ↗ | (On Diff #294507) | Thanks! I should be able to enable this after https://reviews.llvm.org/D87724. |
mlir/test/mlir-cpu-runner/bare_ptr_call_conv.mlir | ||
---|---|---|
143 ↗ | (On Diff #294507) | Pushed in https://github.com/llvm/llvm-project/commit/eff9984dca03 ; will rebase this patch. |
Could we have tests for user-visible error messages?
mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp | ||
---|---|---|
542 | Using textual attribute names makes it feel like JSON. We can just have op.callee() or op.calleeAttr() if the attribute object is necessary. Also, this seems to accept nested symbol references without verifying them. |
Add tests and add verifier for indirect calls
mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp | ||
---|---|---|
542 | Copied it out the textual part from the Standard dialect verifier ;) (the nested symbol should be covered by the native verifier from the ODS definition specifying a FlatSymbolRefAttr) |
Thanks!
mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp | ||
---|---|---|
542 | Ah, we need to port the Standard dialect to (modern) ODS :) |
it an -> it is an?