Changeset View
Changeset View
Standalone View
Standalone View
mlir/tools/mlir-tblgen/PassGen.cpp
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | |||||
//===----------------------------------------------------------------------===// | //===----------------------------------------------------------------------===// | ||||
template <typename DerivedT> | template <typename DerivedT> | ||||
class {0}Base : public {1} { | class {0}Base : public {1} { | ||||
public: | public: | ||||
using Base = {0}Base; | using Base = {0}Base; | ||||
{0}Base() : {1}(::mlir::TypeID::get<DerivedT>()) {{} | {0}Base() : {1}(::mlir::TypeID::get<DerivedT>()) {{} | ||||
{0}Base(const {0}Base &) : {1}(::mlir::TypeID::get<DerivedT>()) {{} | {0}Base(const {0}Base &other) : {1}(other) {{} | ||||
/// Returns the command-line argument attached to this pass. | /// Returns the command-line argument attached to this pass. | ||||
static constexpr ::llvm::StringLiteral getArgumentName() { | static constexpr ::llvm::StringLiteral getArgumentName() { | ||||
return ::llvm::StringLiteral("{2}"); | return ::llvm::StringLiteral("{2}"); | ||||
} | } | ||||
::llvm::StringRef getArgument() const override { return "{2}"; } | ::llvm::StringRef getArgument() const override { return "{2}"; } | ||||
::llvm::StringRef getDescription() const override { return "{3}"; } | ::llvm::StringRef getDescription() const override { return "{3}"; } | ||||
▲ Show 20 Lines • Show All 152 Lines • Show Last 20 Lines |