resolve_binding_conflicts_pass.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. // Copyright (c) 2025 Google LLC
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. #ifndef LIBSPIRV_OPT_RESOLVE_BINDING_CONFLICTS_PASS_H_
  15. #define LIBSPIRV_OPT_RESOLVE_BINDING_CONFLICTS_PASS_H_
  16. #include <unordered_map>
  17. #include <utility>
  18. #include <vector>
  19. #include "source/diagnostic.h"
  20. #include "source/opt/pass.h"
  21. #include "source/util/small_vector.h"
  22. namespace spvtools {
  23. namespace opt {
  24. class ResolveBindingConflictsPass : public Pass {
  25. public:
  26. virtual ~ResolveBindingConflictsPass() override = default;
  27. const char* name() const override { return "resolve-binding-conflicts"; }
  28. IRContext::Analysis GetPreservedAnalyses() override;
  29. Status Process() override;
  30. };
  31. } // namespace opt
  32. } // namespace spvtools
  33. #endif // LIBSPIRV_OPT_RESOLVE_BINDING_CONFLICTS_PASS_H_