MLIR  20.0.0git
Static Public Attributes | List of all members
mlir::OpTrait::hasSingleBlockImplicitTerminator< Op, hasTerminator > Struct Template Reference

Support to check if an operation has the SingleBlockImplicitTerminator trait. More...

#include "mlir/IR/OpDefinition.h"

Static Public Attributes

static constexpr bool value
 

Detailed Description

template<class Op, bool hasTerminator = llvm::is_detected<has_implicit_terminator_t, Op>::value>
struct mlir::OpTrait::hasSingleBlockImplicitTerminator< Op, hasTerminator >

Support to check if an operation has the SingleBlockImplicitTerminator trait.

We can't just use hasTrait because this class is templated on a specific terminator op.

Definition at line 1020 of file OpDefinition.h.

Member Data Documentation

◆ value

template<class Op , bool hasTerminator = llvm::is_detected<has_implicit_terminator_t, Op>::value>
constexpr bool mlir::OpTrait::hasSingleBlockImplicitTerminator< Op, hasTerminator >::value
staticconstexpr
Initial value:
= std::is_base_of<
typename OpTrait::SingleBlockImplicitTerminator<
typename Op::ImplicitTerminatorOpT>::template Impl<Op>,
NestedPattern Op(FilterFunctionType filter=defaultFilterFunction)

Definition at line 1021 of file OpDefinition.h.


The documentation for this struct was generated from the following file: