1 //===- GIMatchDagPredicateDependencyEdge.cpp - Have inputs before check ---===//
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
7 //===----------------------------------------------------------------------===//
9 #include "GIMatchDagPredicateDependencyEdge.h"
11 #include "GIMatchDagInstr.h"
12 #include "GIMatchDagPredicate.h"
14 #include "llvm/Support/raw_ostream.h"
19 GIMatchDagPredicateDependencyEdge::print(raw_ostream
&OS
) const {
20 OS
<< getRequiredMI()->getName();
22 OS
<< "[" << getRequiredMO()->getName() << "]";
23 OS
<< " ==> " << getPredicate()->getName() << "["
24 << getPredicateOp()->getName() << "]";
27 #if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
28 LLVM_DUMP_METHOD
void GIMatchDagPredicateDependencyEdge::dump() const {
31 #endif // if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
33 raw_ostream
&llvm::operator<<(raw_ostream
&OS
,
34 const GIMatchDagPredicateDependencyEdge
&E
) {