Fix incorrect dependency on mlir::createLowerAffinePass

Years ago this pass used to be defined in mlir/Transforms, but is now located in Conversion/AffineToStandard. Unfortunately the forward declaration of the create method was left in mlir/Transforms/Passes.h, which allowed for these incorrect dependencies to still "work". This revision corrects the dependency now that the stale forward declaration of createLowerAffinePass is being removed.

PiperOrigin-RevId: 374234918
Change-Id: Ie4e18c4ec8a8e70c9e667d20d52143f349e1d212
diff --git a/tensorflow/compiler/mlir/xla/experimental/conv_emitter/conv_emitter_test.cc b/tensorflow/compiler/mlir/xla/experimental/conv_emitter/conv_emitter_test.cc
index f42cb67..a367a3d 100644
--- a/tensorflow/compiler/mlir/xla/experimental/conv_emitter/conv_emitter_test.cc
+++ b/tensorflow/compiler/mlir/xla/experimental/conv_emitter/conv_emitter_test.cc
@@ -18,6 +18,7 @@
 #include <vector>
 
 #include "llvm/Support/raw_ostream.h"
+#include "mlir/Conversion/AffineToStandard/AffineToStandard.h"  // from @llvm-project
 #include "mlir/Conversion/SCFToStandard/SCFToStandard.h"  // from @llvm-project
 #include "mlir/Conversion/StandardToLLVM/ConvertStandardToLLVMPass.h"  // from @llvm-project
 #include "mlir/Dialect/Affine/IR/AffineOps.h"  // from @llvm-project
diff --git a/tensorflow/compiler/xla/service/cpu/BUILD b/tensorflow/compiler/xla/service/cpu/BUILD
index f60e369..07c46c2 100644
--- a/tensorflow/compiler/xla/service/cpu/BUILD
+++ b/tensorflow/compiler/xla/service/cpu/BUILD
@@ -1190,9 +1190,9 @@
         "@llvm-project//llvm:Core",
         "@llvm-project//llvm:IPO",
         "@llvm-project//llvm:Linker",
+        "@llvm-project//mlir:AffineToStandard",
         "@llvm-project//mlir:CFGTransforms",
         "@llvm-project//mlir:IR",
-        "@llvm-project//mlir:LLVMToLLVMIRTranslation",
         "@llvm-project//mlir:LinalgTransforms",
         "@llvm-project//mlir:Pass",
         "@llvm-project//mlir:ToLLVMIRTranslation",
diff --git a/tensorflow/compiler/xla/service/cpu/mlir_emitter.cc b/tensorflow/compiler/xla/service/cpu/mlir_emitter.cc
index ddb5e27..53c1f73 100644
--- a/tensorflow/compiler/xla/service/cpu/mlir_emitter.cc
+++ b/tensorflow/compiler/xla/service/cpu/mlir_emitter.cc
@@ -17,6 +17,7 @@
 
 #include "llvm/Linker/Linker.h"
 #include "llvm/Transforms/IPO/Internalize.h"
+#include "mlir/Conversion/AffineToStandard/AffineToStandard.h"  // from @llvm-project
 #include "mlir/Conversion/SCFToStandard/SCFToStandard.h"  // from @llvm-project
 #include "mlir/Conversion/VectorToLLVM/ConvertVectorToLLVM.h"  // from @llvm-project
 #include "mlir/Dialect/Linalg/Passes.h"  // from @llvm-project