CIRCT 24.0.0git
Loading...
Searching...
No Matches
ProbeOps.cpp
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
10
11using namespace circt;
12using namespace probe;
13
14#define GET_OP_CLASSES
15#include "circt/Dialect/Probe/Probe.cpp.inc"
16
17OpFoldResult ReadOp::fold(FoldAdaptor) {
18 auto send = getInput().getDefiningOp<SendOp>();
19 if (!send)
20 return {};
21 return send.getInput();
22}
The InstanceGraph op interface, see InstanceGraphInterface.td for more details.