diff --git a/llvm/include/llvm/ADT/STLExtras.h b/llvm/include/llvm/ADT/STLExtras.h --- a/llvm/include/llvm/ADT/STLExtras.h +++ b/llvm/include/llvm/ADT/STLExtras.h @@ -1688,6 +1688,13 @@ return std::unique(adl_begin(R), adl_end(R), P); } +/// Wrapper function around std::equal to detect if pair-wise elements between +/// two ranges are the same. +template bool equal(L &&LRange, R &&RRange) { + return std::equal(adl_begin(LRange), adl_end(LRange), adl_begin(RRange), + adl_end(RRange)); +} + /// Wrapper function around std::equal to detect if all elements /// in a container are same. template diff --git a/mlir/include/mlir/IR/OpBase.td b/mlir/include/mlir/IR/OpBase.td --- a/mlir/include/mlir/IR/OpBase.td +++ b/mlir/include/mlir/IR/OpBase.td @@ -2366,10 +2366,7 @@ // ranged arguments. class RangedTypesMatchWith - : TypesMatchWith; + : TypesMatchWith; // Type Constraint operand `idx`'s Element type is `type`. class TCopVTEtIs : And<[