This commit removes the llvm.struct_attr which was used to bundle
result attributes that were previously attached to multiple results.
This extension isn't part of LLVM as result attribute semantics cannot
be supported on a struct field granularity.
Furthermore, many usages promoted result attributes to argument
attributes but this does not necessary preserve the semantics.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/test/Conversion/FuncToLLVM/emit-c-wrappers-for-external-functions.mlir | ||
---|---|---|
5 | It seems that the -> () is not produced for LLVMFuncOp operations so I had to change this a bit. |
Comment Actions
LGTM modulo possible further test improvements.
mlir/test/Conversion/FuncToLLVM/emit-c-wrappers-for-external-callers.mlir | ||
---|---|---|
41 | ultra nit: could this be // CHECK-SAME: !llvm.ptr // CHECK-SAME: !llvm.ptr // CHECK-SAME: {test.argOne = 1 : i64} ? |
nit: I would use llvm::append_range.