mirror of
https://github.com/KhronosGroup/SPIRV-Tools
synced 2024-12-28 10:41:04 +00:00
abf57933ea
The pass instance is constructed with a map from spec id (uint32_t) to default values in string format. The default value strings will be parsed to numbers according to the target spec constant type. If the Spec Id decoration is found to be applied on multiple different target ids, that decoration instruction (OpDecorate or OpGroupDecorate) will be skipped. But other decoration instrucitons may still be processed.
29 lines
1013 B
C
29 lines
1013 B
C
// Copyright (c) 2016 Google Inc.
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
|
|
#ifndef LIBSPIRV_OPT_PASSES_H_
|
|
#define LIBSPIRV_OPT_PASSES_H_
|
|
|
|
// A single header to include all passes.
|
|
|
|
#include "eliminate_dead_constant_pass.h"
|
|
#include "fold_spec_constant_op_and_composite_pass.h"
|
|
#include "freeze_spec_constant_value_pass.h"
|
|
#include "null_pass.h"
|
|
#include "set_spec_constant_default_value_pass.h"
|
|
#include "strip_debug_info_pass.h"
|
|
#include "unify_const_pass.h"
|
|
|
|
#endif // LIBSPIRV_OPT_PASSES_H_
|