[mlir][llvm] Add inalloca attribute to alloca op.
authorThéo Degioanni <theo.degioanni@nextsilicon.com>
Thu, 9 Mar 2023 07:10:36 +0000 (08:10 +0100)
committerTobias Gysi <tobias.gysi@nextsilicon.com>
Thu, 9 Mar 2023 07:20:54 +0000 (08:20 +0100)
commitac2a60613ffe7207ee3589252278770dc19b82a1
treed035c989f1599adf3c4cbc96b47f150ebf533a08
parent365f840398782dec07314eb710daf90b97ea53de
[mlir][llvm] Add inalloca attribute to alloca op.

This revision adds the inalloca attribute to the alloca operation in the LLVMIR dialect.
It also adds tests for import and export.

Reviewed By: gysit

Differential Revision: https://reviews.llvm.org/D145483
mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td
mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
mlir/test/Dialect/LLVMIR/roundtrip.mlir
mlir/test/Target/LLVMIR/Import/instructions.ll
mlir/test/Target/LLVMIR/llvmir.mlir