[Mlir-commits] [mlir] [mlir][arith][tensor] Disable index type for bitcast (PR #121455)

Longsheng Mou llvmlistbot at llvm.org
Sat Jan 4 00:00:53 PST 2025


================
@@ -1392,11 +1392,10 @@ def Arith_IndexCastUIOp
 // BitcastOp
 //===----------------------------------------------------------------------===//
 
-// Bitcast can convert between memrefs of signless integers, indices, and
-// floats too.
+// Bitcast can convert between memrefs of signless integers and floats.
 def BitcastTypeConstraint : TypeConstraint<Or<[
         SignlessIntegerOrFloatLike.predicate,
----------------
CoTinker wrote:

`SignlessIntegerOrFloatLike` include index type, so I think it's better to use
`AnySignlessInteger.predicate, FloatLike.predicate,` instead.

https://github.com/llvm/llvm-project/pull/121455


More information about the Mlir-commits mailing list