//===- Builder.cpp - Builder definitions ----------------------------------===// // // Part of the LLVM 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/Builder.h" #include "llvm/TableGen/Error.h" #include "llvm/TableGen/Record.h" usingnamespacemlir; usingnamespacemlir::tblgen; //===----------------------------------------------------------------------===// // Builder::Parameter //===----------------------------------------------------------------------===// /// Return a string containing the C++ type of this parameter. StringRef Builder::Parameter::getCppType() const { … } /// Return an optional string containing the default value to use for this /// parameter. std::optional<StringRef> Builder::Parameter::getDefaultValue() const { … } //===----------------------------------------------------------------------===// // Builder //===----------------------------------------------------------------------===// Builder::Builder(const llvm::Record *record, ArrayRef<SMLoc> loc) : … { … } /// Return an optional string containing the body of the builder. std::optional<StringRef> Builder::getBody() const { … } std::optional<StringRef> Builder::getDeprecatedMessage() const { … }