MLIR
20.0.0git
lib
TableGen
Successor.cpp
Go to the documentation of this file.
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/ADT/TypeSwitch.h"
16
#include "llvm/TableGen/Record.h"
17
18
using namespace
mlir
;
19
using namespace
mlir::tblgen
;
20
21
// Returns true if this successor is variadic.
22
bool
Successor::isVariadic
()
const
{
23
return
def
->isSubClassOf(
"VariadicSuccessor"
);
24
}
Successor.h
mlir::tblgen::Constraint::def
const llvm::Record * def
Definition:
Constraint.h:83
mlir::tblgen::Successor::isVariadic
bool isVariadic() const
Definition:
Successor.cpp:22
mlir::tblgen
Definition:
Argument.h:35
mlir
Include the generated interface declarations.
Definition:
LocalAliasAnalysis.h:20
Generated on Tue Nov 19 2024 08:32:34 for MLIR by
1.9.1