Skip to content

Commit 41b0195

Browse files
committed
Address review comments
1 parent e51870f commit 41b0195

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mlir/lib/Dialect/SPIRV/IR/DotProductOps.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===- DotProductOps.cpp - MLIR SPIR-V Dot Product Ops ----===//
1+
//===- DotProductOps.cpp - MLIR SPIR-V Dot Product Ops -------------------===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.
@@ -34,7 +34,7 @@ static std::optional<spirv::Version> getDotProductMaxVersion() {
3434
}
3535

3636
SmallVector<ArrayRef<spirv::Extension>, 1> DotOp::getExtensions() {
37-
if (getResult().getType().isBF16()) {
37+
if (isa<BFloat16Type>(getType())) {
3838
static const auto extension = spirv::Extension::SPV_KHR_bfloat16;
3939
return {extension};
4040
}
@@ -43,7 +43,7 @@ SmallVector<ArrayRef<spirv::Extension>, 1> DotOp::getExtensions() {
4343
}
4444

4545
SmallVector<ArrayRef<spirv::Capability>, 1> DotOp::getCapabilities() {
46-
if (getResult().getType().isBF16()) {
46+
if (isa<BFloat16Type>(getType())) {
4747
static const auto capability = spirv::Capability::BFloat16DotProductKHR;
4848
return {capability};
4949
}

0 commit comments

Comments
 (0)