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
14void ProbeDialect::registerOps() {
15 addOperations<
16#define GET_OP_LIST
17#include "circt/Dialect/Probe/Probe.cpp.inc"
18 >();
19}
20
21#define GET_OP_CLASSES
22#include "circt/Dialect/Probe/Probe.cpp.inc"
23
24OpFoldResult ReadOp::fold(FoldAdaptor) {
25 auto send = getInput().getDefiningOp<SendOp>();
26 if (!send)
27 return {};
28 return send.getInput();
29}
The InstanceGraph op interface, see InstanceGraphInterface.td for more details.