[Mlir-commits] [mlir] d295dd1 - [MLIR] Add explicit `using` to disambiguate between multiple implementations from base classes (NFC)
Mehdi Amini
llvmlistbot at llvm.org
Thu Dec 30 11:47:43 PST 2021
Author: long.chen
Date: 2021-12-30T19:47:33Z
New Revision: d295dd10f2d8fb91c2bc9af8f72f00cf2d24f0f8
URL: https://github.com/llvm/llvm-project/commit/d295dd10f2d8fb91c2bc9af8f72f00cf2d24f0f8
DIFF: https://github.com/llvm/llvm-project/commit/d295dd10f2d8fb91c2bc9af8f72f00cf2d24f0f8.diff
LOG: [MLIR] Add explicit `using` to disambiguate between multiple implementations from base classes (NFC)
Both of DenseElementsAttr and ElementsAttrTrait define the method of
getElementType, this commit makes it available on
DenseIntOrFPElementsAttr and DenseStringElementsAttr.
Reviewed By: mehdi_amini
Differential Revision: https://reviews.llvm.org/D116389
Added:
Modified:
mlir/include/mlir/IR/BuiltinAttributes.td
Removed:
################################################################################
diff --git a/mlir/include/mlir/IR/BuiltinAttributes.td b/mlir/include/mlir/IR/BuiltinAttributes.td
index 724120a88eb21..aadec07fbbc11 100644
--- a/mlir/include/mlir/IR/BuiltinAttributes.td
+++ b/mlir/include/mlir/IR/BuiltinAttributes.td
@@ -175,6 +175,7 @@ def Builtin_DenseIntOrFPElementsAttr : Builtin_Attr<
let extraClassDeclaration = [{
using DenseElementsAttr::empty;
using DenseElementsAttr::getNumElements;
+ using DenseElementsAttr::getElementType;
using DenseElementsAttr::getValues;
using DenseElementsAttr::isSplat;
using DenseElementsAttr::size;
@@ -312,6 +313,7 @@ def Builtin_DenseStringElementsAttr : Builtin_Attr<
let extraClassDeclaration = [{
using DenseElementsAttr::empty;
using DenseElementsAttr::getNumElements;
+ using DenseElementsAttr::getElementType;
using DenseElementsAttr::getValues;
using DenseElementsAttr::isSplat;
using DenseElementsAttr::size;
More information about the Mlir-commits
mailing list