//===- SideEffects.cpp - SideEffect classes -------------------------------===// // // Part of the MLIR Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #include "mlir/TableGen/SideEffects.h" #include "llvm/ADT/Twine.h" #include "llvm/TableGen/Record.h" usingnamespacemlir; usingnamespacemlir::tblgen; //===----------------------------------------------------------------------===// // SideEffect //===----------------------------------------------------------------------===// StringRef SideEffect::getName() const { … } StringRef SideEffect::getBaseEffectName() const { … } std::string SideEffect::getInterfaceTrait() const { … } StringRef SideEffect::getResource() const { … } int64_t SideEffect::getStage() const { … } bool SideEffect::getEffectOnfullRegion() const { … } bool SideEffect::classof(const Operator::VariableDecorator *var) { … } //===----------------------------------------------------------------------===// // SideEffectsTrait //===----------------------------------------------------------------------===// Operator::var_decorator_range SideEffectTrait::getEffects() const { … } StringRef SideEffectTrait::getBaseEffectName() const { … } bool SideEffectTrait::classof(const Trait *t) { … }