NFC: Replace usages of Value::getKind with explicit isa/casts.

It is more idiomatic to use the llvm::cast infrastructure for checking the type of a value.

PiperOrigin-RevId: 274684945
diff --git a/iree/compiler/Translation/SPIRV/IndexComputation.cpp b/iree/compiler/Translation/SPIRV/IndexComputation.cpp
index f550333..87d2e82 100644
--- a/iree/compiler/Translation/SPIRV/IndexComputation.cpp
+++ b/iree/compiler/Translation/SPIRV/IndexComputation.cpp
@@ -246,9 +246,9 @@
   for (auto &el : indexMap) {
     // llvm::errs() << "Value : " << *(el.first);
     // llvm::errs().flush();
-    if (el.first->getKind() == Value::Kind::OpResult) {
+    if (isa<OpResult>(el.first)) {
       llvm::errs() << "Operation : " << el.first->getDefiningOp()->getName();
-    } else if (el.first->getKind() == Value::Kind::BlockArgument) {
+    } else if (isa<BlockArgument>(el.first)) {
       llvm::errs() << "BlockArgument";
     }
     for (auto &used : el.second) {