[mlir][llvmir] Translate function result attributes to LLVM IR.
authorSlava Zakharin <szakharin@nvidia.com>
Mon, 7 Nov 2022 20:48:32 +0000 (12:48 -0800)
committerSlava Zakharin <szakharin@nvidia.com>
Fri, 18 Nov 2022 20:03:42 +0000 (12:03 -0800)
commit29016d2830d455cdf34a5cdf7ed63f3c3b93d9a3
tree3c5f5d746b079b929d5e4aa6c003f95e452d7159
parentfa5a607dbce0caca40d9bd44dff2a114fb589c51
[mlir][llvmir] Translate function result attributes to LLVM IR.

Translate align, noalias, noundef, signext and zeroext result
attributes from llvm.func to LLVM IR.

This is needed for https://github.com/llvm/llvm-project/issues/58579

Differential Revision: https://reviews.llvm.org/D137049
mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
mlir/lib/Target/LLVMIR/ModuleTranslation.cpp
mlir/test/Dialect/LLVMIR/func.mlir
mlir/test/Target/LLVMIR/llvmir.mlir