1//===- Successor.cpp - Successor class ------------------------------------===//
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// Successor wrapper to simplify using TableGen Record defining a MLIR
10// Successor.
11//
12//===----------------------------------------------------------------------===//
13
14#include "mlir/TableGen/Successor.h"
15#include "llvm/TableGen/Record.h"
16
17using namespace mlir;
18using namespace mlir::tblgen;
19
20// Returns true if this successor is variadic.
21bool Successor::isVariadic() const {
22 return def->isSubClassOf(Name: "VariadicSuccessor");
23}
24