[mlir][LLVM] Handle access groups during inlining
authorMarkus Böck <markus.bock+llvm@nextsilicon.com>
Thu, 20 Jul 2023 07:53:38 +0000 (09:53 +0200)
committerMarkus Böck <markus.bock+llvm@nextsilicon.com>
Thu, 20 Jul 2023 08:45:15 +0000 (10:45 +0200)
commitb82acf8a149b0a72a3ac6d4fc1d568f275b1ac2b
tree40ef5a7f39f60848205ffb9c30b682e9f3c730b2
parent2137915137acc3cb6f244663f7930a83d1f20b7f
[mlir][LLVM] Handle access groups during inlining

Handling access groups is luckily rather trivial: Any access groups from the call instruction are simply appended to any memory operations.
This is similar to one of the steps when handling alias scopes.
This patch nevertheless implements it as a separate function purely for readability purposes as it uses a different interface than alias scopes.

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