forked from OSchip/llvm-project
NFC: Update comments about rank constraints
These refer to ranked tensors, but are actually applicable to any shaped type PiperOrigin-RevId: 268931789
This commit is contained in:
parent
6cce275301
commit
70653ed600
|
@ -396,10 +396,10 @@ def F16Tensor : TensorOf<[F16]>;
|
|||
def F32Tensor : TensorOf<[F32]>;
|
||||
def F64Tensor : TensorOf<[F64]>;
|
||||
|
||||
// Whether a type is a ranked tensor type.
|
||||
// Whether a shaped type is ranked.
|
||||
def HasRankPred : CPred<"$_self.cast<ShapedType>().hasRank()">;
|
||||
|
||||
// Whether a type is a ranked tensor type with one of the specified ranks.
|
||||
// Whether a shaped type has one of the specified ranks.
|
||||
class HasAnyRankOfPred<list<int> ranks> : And<[
|
||||
HasRankPred,
|
||||
Or<!foreach(rank, ranks,
|
||||
|
|
Loading…
Reference in New Issue