[MLIR][LLVM] Take the alignment attribute into account during inlining.
authorJohannes de Fine Licht <johannes.definelicht@nextsilicon.com>
Wed, 29 Mar 2023 08:38:52 +0000 (08:38 +0000)
committerJohannes de Fine Licht <johannes.definelicht@nextsilicon.com>
Wed, 29 Mar 2023 10:22:09 +0000 (10:22 +0000)
commit2abdc0f7dfd807dc7841506f949fc6cbdd8b3313
treeaf4380c5a06de199087178ca47ececc0e65c831e
parenta8291e0dc55f8d1513759df63f603f709fa1c37a
[MLIR][LLVM] Take the alignment attribute into account during inlining.

This is a subset of the full LLVM functionality to detect whether
realignment is necessary, conservatively copying byval arguments
whenever we cannot prove that the alignment requirement is met.

Reviewed By: gysit

Differential Revision: https://reviews.llvm.org/D147049
mlir/lib/Dialect/LLVMIR/IR/LLVMInlining.cpp
mlir/test/Dialect/LLVMIR/inlining.mlir