diff --git a/mlir/include/mlir/IR/OpDefinition.h b/mlir/include/mlir/IR/OpDefinition.h index e2aa3bfce43d..8bd3402745f1 100644 --- a/mlir/include/mlir/IR/OpDefinition.h +++ b/mlir/include/mlir/IR/OpDefinition.h @@ -45,11 +45,15 @@ public: /// Returns true if we contain a valid ParseResult value. bool has_value() const { return impl.has_value(); } - bool hasValue() const { return impl.has_value(); } + LLVM_DEPRECATED("Use has_value instead", "has_value") bool hasValue() const { + return impl.has_value(); + } /// Access the internal ParseResult value. ParseResult value() const { return impl.value(); } - ParseResult getValue() const { return impl.value(); } + LLVM_DEPRECATED("Use value instead", "value") ParseResult getValue() const { + return impl.value(); + } ParseResult operator*() const { return value(); } private: