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 15 #ifndef LIBSPIRV_OPT_RESOLVE_BINDING_CONFLICTS_PASS_H_ 16 #define LIBSPIRV_OPT_RESOLVE_BINDING_CONFLICTS_PASS_H_ 17 18 #include <unordered_map> 19 #include <utility> 20 #include <vector> 21 22 #include "source/diagnostic.h" 23 #include "source/opt/pass.h" 24 #include "source/util/small_vector.h" 25 26 namespace spvtools { 27 namespace opt { 28 class ResolveBindingConflictsPass : public Pass { 29 public: 30 virtual ~ResolveBindingConflictsPass() override = default; name()31 const char* name() const override { return "resolve-binding-conflicts"; } 32 IRContext::Analysis GetPreservedAnalyses() override; 33 Status Process() override; 34 }; 35 } // namespace opt 36 } // namespace spvtools 37 38 #endif // LIBSPIRV_OPT_RESOLVE_BINDING_CONFLICTS_PASS_H_ 39