[mlir][spirv] fix Bazel build of Passes.h
authorEmilio Cota <ecg@google.com>
Fri, 28 Oct 2022 01:40:33 +0000 (21:40 -0400)
committerEmilio Cota <ecg@google.com>
Fri, 28 Oct 2022 01:47:50 +0000 (21:47 -0400)
commit764c7128c01657d255352f8894c10338aeffc7cd
treeed4db10c00c09b7766adde1c5607a9f2876ed069
parent0e720e6adad13d9a3d29dc41e5c62240047acf55
[mlir][spirv] fix Bazel build of Passes.h

I cannot repro this with CMake, but on Bazel this is failing with
```
error: incomplete result type 'mlir::spirv::TargetEnvAttr' in function definition
[...]
note: in instantiation of member function 'std::function<mlir::spirv::TargetEnvAttr (mlir::spirv::ModuleOp)>::function' requested here
createUnifyAliasedResourcePass(GetTargetEnvFn getTargetEnv = nullptr);
```

Reviewed By: antiagainst

Differential Revision: https://reviews.llvm.org/D136909
mlir/include/mlir/Dialect/SPIRV/Transforms/Passes.h