CIRCT 24.0.0git
Loading...
Searching...
No Matches
CaptureUtils.h
Go to the documentation of this file.
1//===----------------------------------------------------------------------===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8//
9// Helper to capture values across `llhd.wait` ops.
10//
11//===----------------------------------------------------------------------===//
12
13// NOLINTNEXTLINE(llvm-header-guard)
14#ifndef CIRCT_DIALECT_LLHD_TRANSFORMS_CAPTUREUTILS_H
15#define CIRCT_DIALECT_LLHD_TRANSFORMS_CAPTUREUTILS_H
16
18#include "circt/Support/LLVM.h"
19#include "mlir/Analysis/Liveness.h"
20#include "mlir/IR/Dominance.h"
21
22namespace circt {
23namespace llhd {
24
25/// Add a value as block argument to a list of wait ops and update uses of the
26/// value to use the added block arguments as appropriate. This may insert
27/// additional block arguments in case the value and added block arguments both
28/// reach the same block.
29void captureAcrossWait(Value value, ArrayRef<WaitOp> waitOps,
30 mlir::Liveness &liveness,
31 mlir::DominanceInfo &dominance);
32
33} // namespace llhd
34} // namespace circt
35
36#endif // CIRCT_DIALECT_LLHD_TRANSFORMS_CAPTUREUTILS_H
void captureAcrossWait(Value value, ArrayRef< WaitOp > waitOps, mlir::Liveness &liveness, mlir::DominanceInfo &dominance)
Add a value as block argument to a list of wait ops and update uses of the value to use the added blo...
The InstanceGraph op interface, see InstanceGraphInterface.td for more details.