diff --git a/include/Dialect/TensorExt/IR/TensorExtCanonicalization.td b/include/Dialect/TensorExt/IR/TensorExtCanonicalization.td index ad04ea261..5b308d13e 100644 --- a/include/Dialect/TensorExt/IR/TensorExtCanonicalization.td +++ b/include/Dialect/TensorExt/IR/TensorExtCanonicalization.td @@ -11,14 +11,6 @@ defvar DefOverflow = ConstantEnumCase; def MakeSingleResultVariadic: NativeCodeCall<"{ $0 }">; -def IndexType : NativeCodeCall<"$_builder.getIndexType()">; - -def MakeMatchingTypedZero : NativeCodeCall< - "$_builder.getIntegerAttr(" - "$_builder.getIntegerType(" - "$0.getType().getIntOrFloatBitWidth()" - "), 0)">; - def CreateIndexCastOp : NativeCodeCall< "$_builder.create($0.getLoc(), $1.getType(), $0)">; @@ -26,11 +18,6 @@ def IsZero : Constraint< CPred<"llvm::cast($0).getValue().isZero()">>; -def AreOpposites : - Constraint< - CPred<"llvm::cast($0).getValue() " - "== llvm::cast($1).getValue()">>; - def OutOfBoundsOfTensorDim : Constraint< CPred< diff --git a/lib/Dialect/TensorExt/Transforms/InsertRotate.cpp b/lib/Dialect/TensorExt/Transforms/InsertRotate.cpp index cc62d59fd..bacd8407f 100644 --- a/lib/Dialect/TensorExt/Transforms/InsertRotate.cpp +++ b/lib/Dialect/TensorExt/Transforms/InsertRotate.cpp @@ -15,7 +15,7 @@ namespace tensor_ext { #include "include/Dialect/TensorExt/Transforms/Passes.h.inc" namespace alignment { -// In an inner namespace to avoid conflicts with canonicaliation patterns +// In an inner namespace to avoid conflicts with canonicalization patterns #include "include/Dialect/TensorExt/Transforms/InsertRotate.cpp.inc" } // namespace alignment