This is an archive of the discontinued LLVM Phabricator instance.

[mlir][spirv] fix Bazel build of Passes.h
ClosedPublic

Authored by cota on Oct 27 2022, 6:43 PM.

Details

Summary

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);

Diff Detail

Event Timeline

cota created this revision.Oct 27 2022, 6:43 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 27 2022, 6:43 PM
cota requested review of this revision.Oct 27 2022, 6:43 PM
antiagainst accepted this revision.Oct 27 2022, 6:44 PM
This revision is now accepted and ready to land.Oct 27 2022, 6:44 PM
This revision was landed with ongoing or failed builds.Oct 27 2022, 6:50 PM
This revision was automatically updated to reflect the committed changes.