Files
clang-p2996/mlir/test/Target/LLVMIR/Import/function-attributes-generic.ll
Christian Ulmann 8d3c4ff866 [mlir][LLVM] Fix empty res attr import
This commit ensures that an empty list of result attributes is not
imported as an empty `ArrayAttr`. Instead, the attribute is just not
added to the `LLVMFuncOp`.

Reviewed By: gysit

Differential Revision: https://reviews.llvm.org/D153553
2023-06-22 16:07:23 +00:00

10 lines
297 B
LLVM

; RUN: mlir-translate -import-llvm -split-input-file %s --mlir-print-op-generic | FileCheck %s
; Ensure that no empty parameter attribute lists are created.
; CHECK: "llvm.func"
; CHECK-SAME: <{
; CHECK-NOT: arg_attr
; CHECK-NOT: res_attrs
; CHECK-SAME: }>
declare ptr @func_no_param_attrs()