[all-commits] [llvm/llvm-project] 764c71: [mlir][spirv] fix Bazel build of Passes.h

Emilio Cota via All-commits all-commits at lists.llvm.org
Thu Oct 27 18:50:53 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 764c7128c01657d255352f8894c10338aeffc7cd
      https://github.com/llvm/llvm-project/commit/764c7128c01657d255352f8894c10338aeffc7cd
  Author: Emilio Cota <ecg at google.com>
  Date:   2022-10-27 (Thu, 27 Oct 2022)

  Changed paths:
    M mlir/include/mlir/Dialect/SPIRV/Transforms/Passes.h

  Log Message:
  -----------
  [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




More information about the All-commits mailing list