[Mlir-commits] [mlir] [mlir][Properties] Shorten "Property" to "Prop" in most places (PR #120368)
Krzysztof Drewniak
llvmlistbot at llvm.org
Mon Dec 23 07:55:48 PST 2024
================
@@ -113,13 +113,13 @@ struct AttributeLikeVariable : public VariableElement {
return isa<VariableElement>(fe) && classof(cast<VariableElement>(fe));
}
- /// Returns true if the variable is a UnitAttr or a UnitProperty.
+ /// Returns true if the variable is a UnitAttr or a UnitProp.
bool isUnit() const {
if (const auto *attr = dyn_cast<AttributeVariable>(this))
return attr->getVar()->attr.getBaseAttr().getAttrDefName() == "UnitAttr";
if (const auto *prop = dyn_cast<PropertyVariable>(this)) {
return prop->getVar()->prop.getBaseProperty().getPropertyDefName() ==
- "UnitProperty";
+ "UnitProp";
----------------
krzysz00 wrote:
Good point, fixed
https://github.com/llvm/llvm-project/pull/120368
More information about the Mlir-commits
mailing list