Rewrite include guards (#1793)

This CL rewrites the include guards to make PRESUBMIT.py include guard
check happy.
This commit is contained in:
dan sinclair 2018-08-03 08:05:33 -04:00 committed by GitHub
parent aa53271b9c
commit 58a6876cee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
151 changed files with 445 additions and 445 deletions

View File

@ -19,7 +19,6 @@ for more details about the presubmit API built into depot_tools.
"""
LINT_FILTERS = [
"-build/header_guard",
"-build/include",
"-build/include_order",
"-build/include_what_you_use",

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef SPIRV_TOOLS_LIBSPIRV_H_
#define SPIRV_TOOLS_LIBSPIRV_H_
#ifndef INCLUDE_SPIRV_TOOLS_LIBSPIRV_H_
#define INCLUDE_SPIRV_TOOLS_LIBSPIRV_H_
#ifdef __cplusplus
extern "C" {
@ -596,4 +596,4 @@ SPIRV_TOOLS_EXPORT spv_result_t spvBinaryParse(
}
#endif
#endif // SPIRV_TOOLS_LIBSPIRV_H_
#endif // INCLUDE_SPIRV_TOOLS_LIBSPIRV_H_

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef SPIRV_TOOLS_LIBSPIRV_HPP_
#define SPIRV_TOOLS_LIBSPIRV_HPP_
#ifndef INCLUDE_SPIRV_TOOLS_LIBSPIRV_HPP_
#define INCLUDE_SPIRV_TOOLS_LIBSPIRV_HPP_
#include <functional>
#include <memory>
@ -182,4 +182,4 @@ class SpirvTools {
} // namespace spvtools
#endif // SPIRV_TOOLS_LIBSPIRV_HPP_
#endif // INCLUDE_SPIRV_TOOLS_LIBSPIRV_HPP_

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef SPIRV_TOOLS_LINKER_HPP_
#define SPIRV_TOOLS_LINKER_HPP_
#ifndef INCLUDE_SPIRV_TOOLS_LINKER_HPP_
#define INCLUDE_SPIRV_TOOLS_LINKER_HPP_
#include <cstdint>
@ -94,4 +94,4 @@ spv_result_t Link(const Context& context, const uint32_t* const* binaries,
} // namespace spvtools
#endif // SPIRV_TOOLS_LINKER_HPP_
#endif // INCLUDE_SPIRV_TOOLS_LINKER_HPP_

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef SPIRV_TOOLS_OPTIMIZER_HPP_
#define SPIRV_TOOLS_OPTIMIZER_HPP_
#ifndef INCLUDE_SPIRV_TOOLS_OPTIMIZER_HPP_
#define INCLUDE_SPIRV_TOOLS_OPTIMIZER_HPP_
#include <memory>
#include <ostream>
@ -643,4 +643,4 @@ Optimizer::PassToken CreateCombineAccessChainsPass();
} // namespace spvtools
#endif // SPIRV_TOOLS_OPTIMIZER_HPP_
#endif // INCLUDE_SPIRV_TOOLS_OPTIMIZER_HPP_

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_ASSEMBLY_GRAMMAR_H_
#define LIBSPIRV_ASSEMBLY_GRAMMAR_H_
#ifndef SOURCE_ASSEMBLY_GRAMMAR_H_
#define SOURCE_ASSEMBLY_GRAMMAR_H_
#include "enum_set.h"
#include "latest_version_spirv_header.h"
@ -135,4 +135,4 @@ class AssemblyGrammar {
} // namespace spvtools
#endif // LIBSPIRV_ASSEMBLY_GRAMMAR_H_
#endif // SOURCE_ASSEMBLY_GRAMMAR_H_

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_BINARY_H_
#define LIBSPIRV_BINARY_H_
#ifndef SOURCE_BINARY_H_
#define SOURCE_BINARY_H_
#include "spirv-tools/libspirv.h"
#include "spirv_definition.h"
@ -33,4 +33,4 @@ spv_result_t spvBinaryHeaderGet(const spv_const_binary binary,
// replacement for C11's strnlen_s which might not exist in all environments.
size_t spv_strnlen_s(const char* str, size_t strsz);
#endif // LIBSPIRV_BINARY_H_
#endif // SOURCE_BINARY_H_

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef SPVTOOLS_CFA_H_
#define SPVTOOLS_CFA_H_
#ifndef SOURCE_CFA_H_
#define SOURCE_CFA_H_
#include <algorithm>
#include <cassert>
@ -344,4 +344,4 @@ void CFA<BB>::ComputeAugmentedCFG(
} // namespace spvtools
#endif // SPVTOOLS_CFA_H_
#endif // SOURCE_CFA_H_

View File

@ -18,8 +18,8 @@
// make it more similar to other compressed SPIR-V files to further improve
// compression of the dataset.
#ifndef SPIRV_TOOLS_MARKV_HPP_
#define SPIRV_TOOLS_MARKV_HPP_
#ifndef SOURCE_COMP_MARKV_H_
#define SOURCE_COMP_MARKV_H_
#include <string>
#include <vector>
@ -73,4 +73,4 @@ spv_result_t MarkvToSpirv(
} // namespace comp
} // namespace spvtools
#endif // SPIRV_TOOLS_MARKV_HPP_
#endif // SOURCE_COMP_MARKV_H_

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_COMP_MARKV_MODEL_H_
#define LIBSPIRV_COMP_MARKV_MODEL_H_
#ifndef SOURCE_COMP_MARKV_MODEL_H_
#define SOURCE_COMP_MARKV_MODEL_H_
#include <map>
#include <unordered_set>
@ -231,4 +231,4 @@ class MarkvModel {
} // namespace comp
} // namespace spvtools
#endif // LIBSPIRV_COMP_MARKV_MODEL_H_
#endif // SOURCE_COMP_MARKV_MODEL_H_

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_DIAGNOSTIC_H_
#define LIBSPIRV_DIAGNOSTIC_H_
#ifndef SOURCE_DIAGNOSTIC_H_
#define SOURCE_DIAGNOSTIC_H_
#include <sstream>
#include <string>
@ -76,4 +76,4 @@ std::string spvResultToString(spv_result_t res);
} // namespace spvtools
#endif // LIBSPIRV_DIAGNOSTIC_H_
#endif // SOURCE_DIAGNOSTIC_H_

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef SPIRV_TOOLS_DISASSEMBLE_H_
#define SPIRV_TOOLS_DISASSEMBLE_H_
#ifndef SOURCE_DISASSEMBLE_H_
#define SOURCE_DISASSEMBLE_H_
#include <string>
@ -35,4 +35,4 @@ std::string spvInstructionBinaryToText(const spv_target_env env,
} // namespace spvtools
#endif // SPIRV_TOOLS_DISASSEMBLE_H_
#endif // SOURCE_DISASSEMBLE_H_

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_ENUM_SET_H
#define LIBSPIRV_ENUM_SET_H
#ifndef SOURCE_ENUM_SET_H_
#define SOURCE_ENUM_SET_H_
#include <cstdint>
#include <functional>
@ -169,4 +169,4 @@ using CapabilitySet = EnumSet<SpvCapability>;
} // namespace spvtools
#endif // LIBSPIRV_ENUM_SET_H
#endif // SOURCE_ENUM_SET_H_

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_ENUM_STRING_MAPPING_H_
#define LIBSPIRV_ENUM_STRING_MAPPING_H_
#ifndef SOURCE_ENUM_STRING_MAPPING_H_
#define SOURCE_ENUM_STRING_MAPPING_H_
#include <string>
@ -33,4 +33,4 @@ const char* CapabilityToString(SpvCapability capability);
} // namespace spvtools
#endif // LIBSPIRV_ENUM_STRING_MAPPING_H_
#endif // SOURCE_ENUM_STRING_MAPPING_H_

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_EXT_INST_H_
#define LIBSPIRV_EXT_INST_H_
#ifndef SOURCE_EXT_INST_H_
#define SOURCE_EXT_INST_H_
#include "spirv-tools/libspirv.h"
#include "table.h"
@ -37,4 +37,4 @@ spv_result_t spvExtInstTableValueLookup(const spv_ext_inst_table table,
const uint32_t value,
spv_ext_inst_desc* pEntry);
#endif // LIBSPIRV_EXT_INST_H_
#endif // SOURCE_EXT_INST_H_

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_EXTENSIONS_H_
#define LIBSPIRV_EXTENSIONS_H_
#ifndef SOURCE_EXTENSIONS_H_
#define SOURCE_EXTENSIONS_H_
#include <string>
@ -37,4 +37,4 @@ std::string ExtensionSetToString(const ExtensionSet& extensions);
} // namespace spvtools
#endif // LIBSPIRV_EXTENSIONS_H_
#endif // SOURCE_EXTENSIONS_H_

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_ID_DESCRIPTOR_H_
#define LIBSPIRV_ID_DESCRIPTOR_H_
#ifndef SOURCE_ID_DESCRIPTOR_H_
#define SOURCE_ID_DESCRIPTOR_H_
#include <unordered_map>
#include <vector>
@ -60,4 +60,4 @@ class IdDescriptorCollection {
} // namespace spvtools
#endif // LIBSPIRV_ID_DESCRIPTOR_H_
#endif // SOURCE_ID_DESCRIPTOR_H_

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_INSTRUCTION_H_
#define LIBSPIRV_INSTRUCTION_H_
#ifndef SOURCE_INSTRUCTION_H_
#define SOURCE_INSTRUCTION_H_
#include <cstdint>
#include <vector>
@ -46,4 +46,4 @@ inline void spvInstructionAddWord(spv_instruction_t* inst, uint32_t value) {
inst->words.push_back(value);
}
#endif // LIBSPIRV_INSTRUCTION_H_
#endif // SOURCE_INSTRUCTION_H_

View File

@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_LATEST_VERSION_GLSL_STD_450_HEADER_H_
#define LIBSPIRV_LATEST_VERSION_GLSL_STD_450_HEADER_H_
#ifndef SOURCE_LATEST_VERSION_GLSL_STD_450_HEADER_H_
#define SOURCE_LATEST_VERSION_GLSL_STD_450_HEADER_H_
#include "spirv/unified1/GLSL.std.450.h"
#endif // LIBSPIRV_LATEST_VERSION_GLSL_STD_450_HEADER_H_
#endif // SOURCE_LATEST_VERSION_GLSL_STD_450_HEADER_H_

View File

@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_LATEST_VERSION_OPENCL_STD_HEADER_H_
#define LIBSPIRV_LATEST_VERSION_OPENCL_STD_HEADER_H_
#ifndef SOURCE_LATEST_VERSION_OPENCL_STD_HEADER_H_
#define SOURCE_LATEST_VERSION_OPENCL_STD_HEADER_H_
#include "spirv/unified1/OpenCL.std.h"
#endif // LIBSPIRV_LATEST_VERSION_OPENCL_STD_HEADER_H_
#endif // SOURCE_LATEST_VERSION_OPENCL_STD_HEADER_H_

View File

@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_LATEST_VERSION_SPIRV_HEADER_H_
#define LIBSPIRV_LATEST_VERSION_SPIRV_HEADER_H_
#ifndef SOURCE_LATEST_VERSION_SPIRV_HEADER_H_
#define SOURCE_LATEST_VERSION_SPIRV_HEADER_H_
#include "spirv/unified1/spirv.h"
#endif // LIBSPIRV_LATEST_VERSION_SPIRV_HEADER_H_
#endif // SOURCE_LATEST_VERSION_SPIRV_HEADER_H_

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_MACRO_H_
#define LIBSPIRV_MACRO_H_
#ifndef SOURCE_MACRO_H_
#define SOURCE_MACRO_H_
// Evaluates to the number of elements of array A.
//
@ -22,4 +22,4 @@
// std::array::size.
#define ARRAY_SIZE(A) (static_cast<uint32_t>(sizeof(A) / sizeof(A[0])))
#endif // LIBSPIRV_MACRO_H_
#endif // SOURCE_MACRO_H_

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef SPIRV_TOOLS_MESSAGE_H_
#define SPIRV_TOOLS_MESSAGE_H_
#ifndef SOURCE_MESSAGE_H_
#define SOURCE_MESSAGE_H_
#include <string>
@ -30,4 +30,4 @@ std::string StringifyMessage(spv_message_level_t level, const char* source,
} // namespace spvtools
#endif // SPIRV_TOOLS_MESSAGE_H_
#endif // SOURCE_MESSAGE_H_

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_NAME_MAPPER_H_
#define LIBSPIRV_NAME_MAPPER_H_
#ifndef SOURCE_NAME_MAPPER_H_
#define SOURCE_NAME_MAPPER_H_
#include <functional>
#include <string>
@ -119,4 +119,4 @@ class FriendlyNameMapper {
} // namespace spvtools
#endif // _LIBSPIRV_NAME_MAPPER_H_
#endif // SOURCE_NAME_MAPPER_H_

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_OPCODE_H_
#define LIBSPIRV_OPCODE_H_
#ifndef SOURCE_OPCODE_H_
#define SOURCE_OPCODE_H_
#include "instruction.h"
#include "latest_version_spirv_header.h"
@ -125,4 +125,4 @@ bool spvOpcodeIsNonUniformGroupOperation(SpvOp opcode);
// Returns true if the opcode with vector inputs could be divided into a series
// of independent scalar operations that would give the same result.
bool spvOpcodeIsScalarizable(SpvOp opcode);
#endif // LIBSPIRV_OPCODE_H_
#endif // SOURCE_OPCODE_H_

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_OPERAND_H_
#define LIBSPIRV_OPERAND_H_
#ifndef SOURCE_OPERAND_H_
#define SOURCE_OPERAND_H_
#include <functional>
@ -137,4 +137,4 @@ bool spvIsIdType(spv_operand_type_t type);
std::function<bool(unsigned)> spvOperandCanBeForwardDeclaredFunction(
SpvOp opcode);
#endif // LIBSPIRV_OPERAND_H_
#endif // SOURCE_OPERAND_H_

View File

@ -14,8 +14,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_OPT_AGGRESSIVE_DCE_PASS_H_
#define LIBSPIRV_OPT_AGGRESSIVE_DCE_PASS_H_
#ifndef SOURCE_OPT_AGGRESSIVE_DEAD_CODE_ELIM_PASS_H_
#define SOURCE_OPT_AGGRESSIVE_DEAD_CODE_ELIM_PASS_H_
#include <util/bit_vector.h>
#include <algorithm>
@ -186,4 +186,4 @@ class AggressiveDCEPass : public MemPass {
} // namespace opt
} // namespace spvtools
#endif // LIBSPIRV_OPT_AGGRESSIVE_DCE_PASS_H_
#endif // SOURCE_OPT_AGGRESSIVE_DEAD_CODE_ELIM_PASS_H_

View File

@ -15,8 +15,8 @@
// This file defines the language constructs for representing a SPIR-V
// module in memory.
#ifndef LIBSPIRV_OPT_BASIC_BLOCK_H_
#define LIBSPIRV_OPT_BASIC_BLOCK_H_
#ifndef SOURCE_OPT_BASIC_BLOCK_H_
#define SOURCE_OPT_BASIC_BLOCK_H_
#include <functional>
#include <iterator>
@ -316,4 +316,4 @@ inline void BasicBlock::ForEachPhiInst(
} // namespace opt
} // namespace spvtools
#endif // LIBSPIRV_OPT_BASIC_BLOCK_H_
#endif // SOURCE_OPT_BASIC_BLOCK_H_

View File

@ -14,8 +14,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_OPT_BLOCK_MERGE_PASS_H_
#define LIBSPIRV_OPT_BLOCK_MERGE_PASS_H_
#ifndef SOURCE_OPT_BLOCK_MERGE_PASS_H_
#define SOURCE_OPT_BLOCK_MERGE_PASS_H_
#include <algorithm>
#include <map>
@ -68,4 +68,4 @@ class BlockMergePass : public Pass {
} // namespace opt
} // namespace spvtools
#endif // LIBSPIRV_OPT_BLOCK_MERGE_PASS_H_
#endif // SOURCE_OPT_BLOCK_MERGE_PASS_H_

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef SPIRV_TOOLS_OPT_BUILD_MODULE_H_
#define SPIRV_TOOLS_OPT_BUILD_MODULE_H_
#ifndef SOURCE_OPT_BUILD_MODULE_H_
#define SOURCE_OPT_BUILD_MODULE_H_
#include <memory>
#include <string>
@ -43,4 +43,4 @@ std::unique_ptr<opt::IRContext> BuildModule(
} // namespace spvtools
#endif // SPIRV_TOOLS_OPT_BUILD_MODULE_H_
#endif // SOURCE_OPT_BUILD_MODULE_H_

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_OPT_CCP_PASS_H_
#define LIBSPIRV_OPT_CCP_PASS_H_
#ifndef SOURCE_OPT_CCP_PASS_H_
#define SOURCE_OPT_CCP_PASS_H_
#include "constants.h"
#include "function.h"
@ -106,4 +106,4 @@ class CCPPass : public MemPass {
} // namespace opt
} // namespace spvtools
#endif
#endif // SOURCE_OPT_CCP_PASS_H_

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_OPT_CFG_H_
#define LIBSPIRV_OPT_CFG_H_
#ifndef SOURCE_OPT_CFG_H_
#define SOURCE_OPT_CFG_H_
#include "basic_block.h"
@ -167,4 +167,4 @@ class CFG {
} // namespace opt
} // namespace spvtools
#endif // LIBSPIRV_OPT_CFG_H_
#endif // SOURCE_OPT_CFG_H_

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_OPT_CFG_CLEANUP_PASS_H_
#define LIBSPIRV_OPT_CFG_CLEANUP_PASS_H_
#ifndef SOURCE_OPT_CFG_CLEANUP_PASS_H_
#define SOURCE_OPT_CFG_CLEANUP_PASS_H_
#include "function.h"
#include "mem_pass.h"
@ -37,4 +37,4 @@ class CFGCleanupPass : public MemPass {
} // namespace opt
} // namespace spvtools
#endif
#endif // SOURCE_OPT_CFG_CLEANUP_PASS_H_

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_OPT_COMBINE_ACCESS_CHAINS_H_
#define LIBSPIRV_OPT_COMBINE_ACCESS_CHAINS_H_
#ifndef SOURCE_OPT_COMBINE_ACCESS_CHAINS_H_
#define SOURCE_OPT_COMBINE_ACCESS_CHAINS_H_
#include "pass.h"
@ -77,4 +77,4 @@ class CombineAccessChains : public Pass {
} // namespace opt
} // namespace spvtools
#endif // LIBSPIRV_OPT_COMBINE_ACCESS_CHAINS_H_
#endif // SOURCE_OPT_COMBINE_ACCESS_CHAINS_H_

View File

@ -14,8 +14,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_OPT_COMMON_UNIFORM_ELIM_PASS_H_
#define LIBSPIRV_OPT_COMMON_UNIFORM_ELIM_PASS_H_
#ifndef SOURCE_OPT_COMMON_UNIFORM_ELIM_PASS_H_
#define SOURCE_OPT_COMMON_UNIFORM_ELIM_PASS_H_
#include <algorithm>
#include <map>
@ -206,4 +206,4 @@ class CommonUniformElimPass : public Pass {
} // namespace opt
} // namespace spvtools
#endif // LIBSPIRV_OPT_SSAMEM_PASS_H_
#endif // SOURCE_OPT_COMMON_UNIFORM_ELIM_PASS_H_

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_OPT_COMPACT_IDS_PASS_H_
#define LIBSPIRV_OPT_COMPACT_IDS_PASS_H_
#ifndef SOURCE_OPT_COMPACT_IDS_PASS_H_
#define SOURCE_OPT_COMPACT_IDS_PASS_H_
#include "ir_context.h"
#include "module.h"
@ -39,4 +39,4 @@ class CompactIdsPass : public Pass {
} // namespace opt
} // namespace spvtools
#endif // LIBSPIRV_OPT_COMPACT_IDS_PASS_H_
#endif // SOURCE_OPT_COMPACT_IDS_PASS_H_

View File

@ -14,8 +14,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_UTIL_COMPOSITE_PASS_H_
#define LIBSPIRV_UTIL_COMPOSITE_PASS_H_
#ifndef SOURCE_OPT_COMPOSITE_H_
#define SOURCE_OPT_COMPOSITE_H_
#include <algorithm>
#include <map>
@ -47,4 +47,4 @@ bool ExtInsConflict(const std::vector<uint32_t>& extIndices,
} // namespace opt
} // namespace spvtools
#endif // LIBSPIRV_UTIL_COMPOSITE_PASS_H_
#endif // SOURCE_OPT_COMPOSITE_H_

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_OPT_CONST_FOLDING_RULES_H_
#define LIBSPIRV_OPT_CONST_FOLDING_RULES_H_
#ifndef SOURCE_OPT_CONST_FOLDING_RULES_H_
#define SOURCE_OPT_CONST_FOLDING_RULES_H_
#include <vector>
@ -76,4 +76,4 @@ class ConstantFoldingRules {
} // namespace opt
} // namespace spvtools
#endif // LIBSPIRV_OPT_CONST_FOLDING_RULES_H_
#endif // SOURCE_OPT_CONST_FOLDING_RULES_H_

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_OPT_CONSTANTS_H_
#define LIBSPIRV_OPT_CONSTANTS_H_
#ifndef SOURCE_OPT_CONSTANTS_H_
#define SOURCE_OPT_CONSTANTS_H_
#include <cinttypes>
#include <memory>
@ -684,4 +684,4 @@ class ConstantManager {
} // namespace opt
} // namespace spvtools
#endif // LIBSPIRV_OPT_CONSTANTS_H_
#endif // SOURCE_OPT_CONSTANTS_H_

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_OPT_COPY_PROP_H_
#define LIBSPIRV_OPT_COPY_PROP_H_
#ifndef SOURCE_OPT_COPY_PROP_ARRAYS_H_
#define SOURCE_OPT_COPY_PROP_ARRAYS_H_
#include "mem_pass.h"
@ -225,4 +225,4 @@ class CopyPropagateArrays : public MemPass {
} // namespace opt
} // namespace spvtools
#endif // LIBSPIRV_OPT_COPY_PROP_H_
#endif // SOURCE_OPT_COPY_PROP_ARRAYS_H_

View File

@ -14,8 +14,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_OPT_DEAD_BRANCH_ELIM_PASS_H_
#define LIBSPIRV_OPT_DEAD_BRANCH_ELIM_PASS_H_
#ifndef SOURCE_OPT_DEAD_BRANCH_ELIM_PASS_H_
#define SOURCE_OPT_DEAD_BRANCH_ELIM_PASS_H_
#include <algorithm>
#include <map>
@ -134,4 +134,4 @@ class DeadBranchElimPass : public MemPass {
} // namespace opt
} // namespace spvtools
#endif // LIBSPIRV_OPT_DEAD_BRANCH_ELIM_PASS_H_
#endif // SOURCE_OPT_DEAD_BRANCH_ELIM_PASS_H_

View File

@ -14,8 +14,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_OPT_DEAD_INSERT_ELIM_PASS_H_
#define LIBSPIRV_OPT_DEAD_INSERT_ELIM_PASS_H_
#ifndef SOURCE_OPT_DEAD_INSERT_ELIM_PASS_H_
#define SOURCE_OPT_DEAD_INSERT_ELIM_PASS_H_
#include <algorithm>
#include <map>
@ -85,4 +85,4 @@ class DeadInsertElimPass : public MemPass {
} // namespace opt
} // namespace spvtools
#endif // LIBSPIRV_OPT_DEAD_INSERT_ELIM_PASS_H_
#endif // SOURCE_OPT_DEAD_INSERT_ELIM_PASS_H_

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef SPIRV_TOOLS_DEAD_VARIABLE_ELIMINATION_H
#define SPIRV_TOOLS_DEAD_VARIABLE_ELIMINATION_H
#ifndef SOURCE_OPT_DEAD_VARIABLE_ELIMINATION_H_
#define SOURCE_OPT_DEAD_VARIABLE_ELIMINATION_H_
#include <climits>
#include <unordered_map>
@ -52,4 +52,4 @@ class DeadVariableElimination : public MemPass {
} // namespace opt
} // namespace spvtools
#endif // SPIRV_TOOLS_DEAD_VARIABLE_ELIMINATION_H
#endif // SOURCE_OPT_DEAD_VARIABLE_ELIMINATION_H_

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_OPT_DECORATION_MANAGER_H_
#define LIBSPIRV_OPT_DECORATION_MANAGER_H_
#ifndef SOURCE_OPT_DECORATION_MANAGER_H_
#define SOURCE_OPT_DECORATION_MANAGER_H_
#include <functional>
#include <unordered_map>
@ -133,4 +133,4 @@ class DecorationManager {
} // namespace opt
} // namespace spvtools
#endif // LIBSPIRV_OPT_DECORATION_MANAGER_H_
#endif // SOURCE_OPT_DECORATION_MANAGER_H_

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_OPT_DEF_USE_MANAGER_H_
#define LIBSPIRV_OPT_DEF_USE_MANAGER_H_
#ifndef SOURCE_OPT_DEF_USE_MANAGER_H_
#define SOURCE_OPT_DEF_USE_MANAGER_H_
#include <list>
#include <set>
@ -252,4 +252,4 @@ class DefUseManager {
} // namespace opt
} // namespace spvtools
#endif // LIBSPIRV_OPT_DEF_USE_MANAGER_H_
#endif // SOURCE_OPT_DEF_USE_MANAGER_H_

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_OPT_DOMINATOR_ANALYSIS_PASS_H_
#define LIBSPIRV_OPT_DOMINATOR_ANALYSIS_PASS_H_
#ifndef SOURCE_OPT_DOMINATOR_ANALYSIS_H_
#define SOURCE_OPT_DOMINATOR_ANALYSIS_H_
#include <cstdint>
#include <map>
@ -135,4 +135,4 @@ class PostDominatorAnalysis : public DominatorAnalysisBase {
} // namespace opt
} // namespace spvtools
#endif // LIBSPIRV_OPT_DOMINATOR_ANALYSIS_PASS_H_
#endif // SOURCE_OPT_DOMINATOR_ANALYSIS_H_

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_OPT_DOMINATOR_ANALYSIS_TREE_H_
#define LIBSPIRV_OPT_DOMINATOR_ANALYSIS_TREE_H_
#ifndef SOURCE_OPT_DOMINATOR_TREE_H_
#define SOURCE_OPT_DOMINATOR_TREE_H_
#include <algorithm>
#include <cstdint>
@ -302,4 +302,4 @@ class DominatorTree {
} // namespace opt
} // namespace spvtools
#endif // LIBSPIRV_OPT_DOMINATOR_ANALYSIS_TREE_H_
#endif // SOURCE_OPT_DOMINATOR_TREE_H_

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_OPT_ELIMINATE_DEAD_CONSTANT_PASS_H_
#define LIBSPIRV_OPT_ELIMINATE_DEAD_CONSTANT_PASS_H_
#ifndef SOURCE_OPT_ELIMINATE_DEAD_CONSTANT_PASS_H_
#define SOURCE_OPT_ELIMINATE_DEAD_CONSTANT_PASS_H_
#include "ir_context.h"
#include "module.h"
@ -32,4 +32,4 @@ class EliminateDeadConstantPass : public Pass {
} // namespace opt
} // namespace spvtools
#endif // LIBSPIRV_OPT_ELIMINATE_DEAD_CONSTANT_PASS_H_
#endif // SOURCE_OPT_ELIMINATE_DEAD_CONSTANT_PASS_H_

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_OPT_ELIMINATE_DEAD_FUNCTIONS_PASS_H_
#define LIBSPIRV_OPT_ELIMINATE_DEAD_FUNCTIONS_PASS_H_
#ifndef SOURCE_OPT_ELIMINATE_DEAD_FUNCTIONS_PASS_H_
#define SOURCE_OPT_ELIMINATE_DEAD_FUNCTIONS_PASS_H_
#include "def_use_manager.h"
#include "function.h"
@ -40,4 +40,4 @@ class EliminateDeadFunctionsPass : public MemPass {
} // namespace opt
} // namespace spvtools
#endif // LIBSPIRV_OPT_ELIMINATE_DEAD_FUNCTIONS_PASS_H_
#endif // SOURCE_OPT_ELIMINATE_DEAD_FUNCTIONS_PASS_H_

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_OPT_FEATURE_MANAGER_H_
#define LIBSPIRV_OPT_FEATURE_MANAGER_H_
#ifndef SOURCE_OPT_FEATURE_MANAGER_H_
#define SOURCE_OPT_FEATURE_MANAGER_H_
#include "assembly_grammar.h"
#include "extensions.h"
@ -75,4 +75,4 @@ class FeatureManager {
} // namespace opt
} // namespace spvtools
#endif // LIBSPIRV_OPT_FEATURE_MANAGER_H_
#endif // SOURCE_OPT_FEATURE_MANAGER_H_

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_OPT_FLATTEN_DECORATION_PASS_H_
#define LIBSPIRV_OPT_FLATTEN_DECORATION_PASS_H_
#ifndef SOURCE_OPT_FLATTEN_DECORATION_PASS_H_
#define SOURCE_OPT_FLATTEN_DECORATION_PASS_H_
#include "ir_context.h"
#include "module.h"
@ -32,4 +32,4 @@ class FlattenDecorationPass : public Pass {
} // namespace opt
} // namespace spvtools
#endif // LIBSPIRV_OPT_FLATTEN_DECORATION_PASS_H_
#endif // SOURCE_OPT_FLATTEN_DECORATION_PASS_H_

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_UTIL_FOLD_H_
#define LIBSPIRV_UTIL_FOLD_H_
#ifndef SOURCE_OPT_FOLD_H_
#define SOURCE_OPT_FOLD_H_
#include <cstdint>
#include <vector>
@ -168,4 +168,4 @@ class InstructionFolder {
} // namespace opt
} // namespace spvtools
#endif // LIBSPIRV_UTIL_FOLD_H_
#endif // SOURCE_OPT_FOLD_H_

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_OPT_FOLD_SPEC_CONSTANT_OP_AND_COMPOSITE_PASS_H_
#define LIBSPIRV_OPT_FOLD_SPEC_CONSTANT_OP_AND_COMPOSITE_PASS_H_
#ifndef SOURCE_OPT_FOLD_SPEC_CONSTANT_OP_AND_COMPOSITE_PASS_H_
#define SOURCE_OPT_FOLD_SPEC_CONSTANT_OP_AND_COMPOSITE_PASS_H_
#include <memory>
#include <unordered_map>
@ -81,4 +81,4 @@ class FoldSpecConstantOpAndCompositePass : public Pass {
} // namespace opt
} // namespace spvtools
#endif // LIBSPIRV_OPT_FOLD_SPEC_CONSTANT_OP_AND_COMPOSITE_PASS_H_
#endif // SOURCE_OPT_FOLD_SPEC_CONSTANT_OP_AND_COMPOSITE_PASS_H_

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_UTIL_FOLDING_RULES_H_
#define LIBSPIRV_UTIL_FOLDING_RULES_H_
#ifndef SOURCE_OPT_FOLDING_RULES_H_
#define SOURCE_OPT_FOLDING_RULES_H_
#include <cstdint>
#include <vector>
@ -75,4 +75,4 @@ class FoldingRules {
} // namespace opt
} // namespace spvtools
#endif // LIBSPIRV_UTIL_FOLDING_RULES_H_
#endif // SOURCE_OPT_FOLDING_RULES_H_

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_OPT_FREEZE_SPEC_CONSTANT_VALUE_PASS_H_
#define LIBSPIRV_OPT_FREEZE_SPEC_CONSTANT_VALUE_PASS_H_
#ifndef SOURCE_OPT_FREEZE_SPEC_CONSTANT_VALUE_PASS_H_
#define SOURCE_OPT_FREEZE_SPEC_CONSTANT_VALUE_PASS_H_
#include "ir_context.h"
#include "module.h"
@ -32,4 +32,4 @@ class FreezeSpecConstantValuePass : public Pass {
} // namespace opt
} // namespace spvtools
#endif // LIBSPIRV_OPT_FREEZE_SPEC_CONSTANT_VALUE_PASS_H_
#endif // SOURCE_OPT_FREEZE_SPEC_CONSTANT_VALUE_PASS_H_

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_OPT_CONSTRUCTS_H_
#define LIBSPIRV_OPT_CONSTRUCTS_H_
#ifndef SOURCE_OPT_FUNCTION_H_
#define SOURCE_OPT_FUNCTION_H_
#include <algorithm>
#include <functional>
@ -186,4 +186,4 @@ inline void Function::SetFunctionEnd(std::unique_ptr<Instruction> end_inst) {
} // namespace opt
} // namespace spvtools
#endif // LIBSPIRV_OPT_CONSTRUCTS_H_
#endif // SOURCE_OPT_FUNCTION_H_

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_OPT_IF_CONVERSION_H_
#define LIBSPIRV_OPT_IF_CONVERSION_H_
#ifndef SOURCE_OPT_IF_CONVERSION_H_
#define SOURCE_OPT_IF_CONVERSION_H_
#include "basic_block.h"
#include "ir_builder.h"
@ -85,4 +85,4 @@ class IfConversion : public Pass {
} // namespace opt
} // namespace spvtools
#endif // LIBSPIRV_OPT_IF_CONVERSION_H_
#endif // SOURCE_OPT_IF_CONVERSION_H_

View File

@ -14,8 +14,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_OPT_INLINE_EXHAUSTIVE_PASS_H_
#define LIBSPIRV_OPT_INLINE_EXHAUSTIVE_PASS_H_
#ifndef SOURCE_OPT_INLINE_EXHAUSTIVE_PASS_H_
#define SOURCE_OPT_INLINE_EXHAUSTIVE_PASS_H_
#include <algorithm>
#include <list>
@ -50,4 +50,4 @@ class InlineExhaustivePass : public InlinePass {
} // namespace opt
} // namespace spvtools
#endif // LIBSPIRV_OPT_INLINE_EXHAUSTIVE_PASS_H_
#endif // SOURCE_OPT_INLINE_EXHAUSTIVE_PASS_H_

View File

@ -14,8 +14,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_OPT_INLINE_OPAQUE_PASS_H_
#define LIBSPIRV_OPT_INLINE_OPAQUE_PASS_H_
#ifndef SOURCE_OPT_INLINE_OPAQUE_PASS_H_
#define SOURCE_OPT_INLINE_OPAQUE_PASS_H_
#include <algorithm>
#include <list>
@ -57,4 +57,4 @@ class InlineOpaquePass : public InlinePass {
} // namespace opt
} // namespace spvtools
#endif // LIBSPIRV_OPT_INLINE_OPAQUE_PASS_H_
#endif // SOURCE_OPT_INLINE_OPAQUE_PASS_H_

View File

@ -14,8 +14,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_OPT_INLINE_PASS_H_
#define LIBSPIRV_OPT_INLINE_PASS_H_
#ifndef SOURCE_OPT_INLINE_PASS_H_
#define SOURCE_OPT_INLINE_PASS_H_
#include <algorithm>
#include <list>
@ -185,4 +185,4 @@ class InlinePass : public Pass {
} // namespace opt
} // namespace spvtools
#endif // LIBSPIRV_OPT_INLINE_PASS_H_
#endif // SOURCE_OPT_INLINE_PASS_H_

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_OPT_INSTRUCTION_H_
#define LIBSPIRV_OPT_INSTRUCTION_H_
#ifndef SOURCE_OPT_INSTRUCTION_H_
#define SOURCE_OPT_INSTRUCTION_H_
#include <cassert>
#include <functional>
@ -730,4 +730,4 @@ bool Instruction::IsConstant() const {
} // namespace opt
} // namespace spvtools
#endif // LIBSPIRV_OPT_INSTRUCTION_H_
#endif // SOURCE_OPT_INSTRUCTION_H_

View File

@ -13,8 +13,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_OPT_INSTRUCTION_LIST_H_
#define LIBSPIRV_OPT_INSTRUCTION_LIST_H_
#ifndef SOURCE_OPT_INSTRUCTION_LIST_H_
#define SOURCE_OPT_INSTRUCTION_LIST_H_
#include <cassert>
#include <functional>
@ -127,4 +127,4 @@ void InstructionList::clear() {
} // namespace opt
} // namespace spvtools
#endif // LIBSPIRV_OPT_INSTRUCTION_LIST_H_
#endif // SOURCE_OPT_INSTRUCTION_LIST_H_

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_OPT_IR_BUILDER_H_
#define LIBSPIRV_OPT_IR_BUILDER_H_
#ifndef SOURCE_OPT_IR_BUILDER_H_
#define SOURCE_OPT_IR_BUILDER_H_
#include "opt/basic_block.h"
#include "opt/constants.h"
@ -413,4 +413,4 @@ class InstructionBuilder {
} // namespace opt
} // namespace spvtools
#endif // LIBSPIRV_OPT_IR_BUILDER_H_
#endif // SOURCE_OPT_IR_BUILDER_H_

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef SPIRV_TOOLS_IR_CONTEXT_H
#define SPIRV_TOOLS_IR_CONTEXT_H
#ifndef SOURCE_OPT_IR_CONTEXT_H_
#define SOURCE_OPT_IR_CONTEXT_H_
#include "assembly_grammar.h"
#include "cfg.h"
@ -849,4 +849,4 @@ IRContext::GetNames(uint32_t id) {
} // namespace opt
} // namespace spvtools
#endif // SPIRV_TOOLS_IR_CONTEXT_H
#endif // SOURCE_OPT_IR_CONTEXT_H_

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_OPT_IR_LOADER_H_
#define LIBSPIRV_OPT_IR_LOADER_H_
#ifndef SOURCE_OPT_IR_LOADER_H_
#define SOURCE_OPT_IR_LOADER_H_
#include <memory>
@ -81,4 +81,4 @@ class IrLoader {
} // namespace opt
} // namespace spvtools
#endif // LIBSPIRV_OPT_IR_LOADER_H_
#endif // SOURCE_OPT_IR_LOADER_H_

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_OPT_ITERATOR_H_
#define LIBSPIRV_OPT_ITERATOR_H_
#ifndef SOURCE_OPT_ITERATOR_H_
#define SOURCE_OPT_ITERATOR_H_
#include <cstddef> // for ptrdiff_t
#include <iterator>
@ -354,4 +354,4 @@ inline
} // namespace opt
} // namespace spvtools
#endif // LIBSPIRV_OPT_ITERATOR_H_
#endif // SOURCE_OPT_ITERATOR_H_

View File

@ -14,8 +14,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_OPT_LOCAL_ACCESS_CHAIN_CONVERT_PASS_H_
#define LIBSPIRV_OPT_LOCAL_ACCESS_CHAIN_CONVERT_PASS_H_
#ifndef SOURCE_OPT_LOCAL_ACCESS_CHAIN_CONVERT_PASS_H_
#define SOURCE_OPT_LOCAL_ACCESS_CHAIN_CONVERT_PASS_H_
#include <algorithm>
#include <map>
@ -123,4 +123,4 @@ class LocalAccessChainConvertPass : public MemPass {
} // namespace opt
} // namespace spvtools
#endif // LIBSPIRV_OPT_LOCAL_ACCESS_CHAIN_CONVERT_PASS_H_
#endif // SOURCE_OPT_LOCAL_ACCESS_CHAIN_CONVERT_PASS_H_

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_OPT_LOCAL_REDUNDANCY_ELIMINATION_H_
#define LIBSPIRV_OPT_LOCAL_REDUNDANCY_ELIMINATION_H_
#ifndef SOURCE_OPT_LOCAL_REDUNDANCY_ELIMINATION_H_
#define SOURCE_OPT_LOCAL_REDUNDANCY_ELIMINATION_H_
#include "ir_context.h"
#include "pass.h"
@ -62,4 +62,4 @@ class LocalRedundancyEliminationPass : public Pass {
} // namespace opt
} // namespace spvtools
#endif // LIBSPIRV_OPT_LOCAL_REDUNDANCY_ELIMINATION_H_
#endif // SOURCE_OPT_LOCAL_REDUNDANCY_ELIMINATION_H_

View File

@ -14,8 +14,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_OPT_LOCAL_SINGLE_BLOCK_ELIM_PASS_H_
#define LIBSPIRV_OPT_LOCAL_SINGLE_BLOCK_ELIM_PASS_H_
#ifndef SOURCE_OPT_LOCAL_SINGLE_BLOCK_ELIM_PASS_H_
#define SOURCE_OPT_LOCAL_SINGLE_BLOCK_ELIM_PASS_H_
#include <algorithm>
#include <map>
@ -101,4 +101,4 @@ class LocalSingleBlockLoadStoreElimPass : public MemPass {
} // namespace opt
} // namespace spvtools
#endif // LIBSPIRV_OPT_LOCAL_SINGLE_BLOCK_ELIM_PASS_H_
#endif // SOURCE_OPT_LOCAL_SINGLE_BLOCK_ELIM_PASS_H_

View File

@ -14,8 +14,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_OPT_LOCAL_SINGLE_STORE_ELIM_PASS_H_
#define LIBSPIRV_OPT_LOCAL_SINGLE_STORE_ELIM_PASS_H_
#ifndef SOURCE_OPT_LOCAL_SINGLE_STORE_ELIM_PASS_H_
#define SOURCE_OPT_LOCAL_SINGLE_STORE_ELIM_PASS_H_
#include <algorithm>
#include <map>
@ -96,4 +96,4 @@ class LocalSingleStoreElimPass : public Pass {
} // namespace opt
} // namespace spvtools
#endif // LIBSPIRV_OPT_LOCAL_SINGLE_STORE_ELIM_PASS_H_
#endif // SOURCE_OPT_LOCAL_SINGLE_STORE_ELIM_PASS_H_

View File

@ -14,8 +14,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_OPT_LOCAL_SSA_ELIM_PASS_H_
#define LIBSPIRV_OPT_LOCAL_SSA_ELIM_PASS_H_
#ifndef SOURCE_OPT_LOCAL_SSA_ELIM_PASS_H_
#define SOURCE_OPT_LOCAL_SSA_ELIM_PASS_H_
#include <algorithm>
#include <map>
@ -65,4 +65,4 @@ class LocalMultiStoreElimPass : public MemPass {
} // namespace opt
} // namespace spvtools
#endif // LIBSPIRV_OPT_LOCAL_SSA_ELIM_PASS_H_
#endif // SOURCE_OPT_LOCAL_SSA_ELIM_PASS_H_

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef SPIRV_TOOLS_LOG_H_
#define SPIRV_TOOLS_LOG_H_
#ifndef SOURCE_OPT_LOG_H_
#define SOURCE_OPT_LOG_H_
#include <cstdio>
#include <cstdlib>
@ -228,4 +228,4 @@ static_assert(PP_NARGS(0, 0, 0, 0, 0) == 5, "PP_NARGS macro error");
static_assert(PP_NARGS(1 + 1, 2, 3 / 3) == 3, "PP_NARGS macro error");
static_assert(PP_NARGS((1, 1), 2, (3, 3)) == 3, "PP_NARGS macro error");
#endif // SPIRV_TOOLS_LOG_H_
#endif // SOURCE_OPT_LOG_H_

View File

@ -555,4 +555,4 @@ class LoopDependenceAnalysis {
} // namespace opt
} // namespace spvtools
#endif // SOURCE_OPT_LOOP_DEPENDENCE_H__
#endif // SOURCE_OPT_LOOP_DEPENDENCE_H_

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_OPT_LOOP_DESCRIPTORS_H_
#define LIBSPIRV_OPT_LOOP_DESCRIPTORS_H_
#ifndef SOURCE_OPT_LOOP_DESCRIPTOR_H_
#define SOURCE_OPT_LOOP_DESCRIPTOR_H_
#include <algorithm>
#include <cstdint>
@ -568,4 +568,4 @@ class LoopDescriptor {
} // namespace opt
} // namespace spvtools
#endif // LIBSPIRV_OPT_LOOP_DESCRIPTORS_H_
#endif // SOURCE_OPT_LOOP_DESCRIPTOR_H_

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_OPT_LOOP_FISSION_H_
#define LIBSPIRV_OPT_LOOP_FISSION_H_
#ifndef SOURCE_OPT_LOOP_FISSION_H_
#define SOURCE_OPT_LOOP_FISSION_H_
#include <algorithm>
#include <cstdint>
@ -75,4 +75,4 @@ class LoopFissionPass : public Pass {
} // namespace opt
} // namespace spvtools
#endif // LIBSPIRV_OPT_LOOP_FISSION_H_
#endif // SOURCE_OPT_LOOP_FISSION_H_

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_OPT_LOOP_UNSWITCH_PASS_H_
#define LIBSPIRV_OPT_LOOP_UNSWITCH_PASS_H_
#ifndef SOURCE_OPT_LOOP_UNSWITCH_PASS_H_
#define SOURCE_OPT_LOOP_UNSWITCH_PASS_H_
#include "opt/loop_descriptor.h"
#include "opt/pass.h"
@ -40,4 +40,4 @@ class LoopUnswitchPass : public Pass {
} // namespace opt
} // namespace spvtools
#endif // !LIBSPIRV_OPT_LOOP_UNSWITCH_PASS_H_
#endif // SOURCE_OPT_LOOP_UNSWITCH_PASS_H_

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_OPT_MAKE_UNIQUE_H_
#define LIBSPIRV_OPT_MAKE_UNIQUE_H_
#ifndef SOURCE_OPT_MAKE_UNIQUE_H_
#define SOURCE_OPT_MAKE_UNIQUE_H_
#include <memory>
#include <utility>
@ -27,4 +27,4 @@ std::unique_ptr<T> MakeUnique(Args&&... args) {
} // namespace spvtools
#endif // LIBSPIRV_OPT_MAKE_UNIQUE_H_
#endif // SOURCE_OPT_MAKE_UNIQUE_H_

View File

@ -14,8 +14,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_OPT_MEM_PASS_H_
#define LIBSPIRV_OPT_MEM_PASS_H_
#ifndef SOURCE_OPT_MEM_PASS_H_
#define SOURCE_OPT_MEM_PASS_H_
#include <algorithm>
#include <list>
@ -160,4 +160,4 @@ class MemPass : public Pass {
} // namespace opt
} // namespace spvtools
#endif // LIBSPIRV_OPT_MEM_PASS_H_
#endif // SOURCE_OPT_MEM_PASS_H_

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_OPT_MERGE_RETURN_PASS_H_
#define LIBSPIRV_OPT_MERGE_RETURN_PASS_H_
#ifndef SOURCE_OPT_MERGE_RETURN_PASS_H_
#define SOURCE_OPT_MERGE_RETURN_PASS_H_
#include "basic_block.h"
#include "function.h"
@ -302,4 +302,4 @@ class MergeReturnPass : public MemPass {
} // namespace opt
} // namespace spvtools
#endif // LIBSPIRV_OPT_MERGE_RETURN_PASS_H_
#endif // SOURCE_OPT_MERGE_RETURN_PASS_H_

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_OPT_MODULE_H_
#define LIBSPIRV_OPT_MODULE_H_
#ifndef SOURCE_OPT_MODULE_H_
#define SOURCE_OPT_MODULE_H_
#include <functional>
#include <memory>
@ -473,4 +473,4 @@ inline Module::const_iterator Module::cend() const {
} // namespace opt
} // namespace spvtools
#endif // LIBSPIRV_OPT_MODULE_H_
#endif // SOURCE_OPT_MODULE_H_

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_OPT_NULL_PASS_H_
#define LIBSPIRV_OPT_NULL_PASS_H_
#ifndef SOURCE_OPT_NULL_PASS_H_
#define SOURCE_OPT_NULL_PASS_H_
#include "module.h"
#include "pass.h"
@ -31,4 +31,4 @@ class NullPass : public Pass {
} // namespace opt
} // namespace spvtools
#endif // LIBSPIRV_OPT_NULL_PASS_H_
#endif // SOURCE_OPT_NULL_PASS_H_

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_OPT_PASS_H_
#define LIBSPIRV_OPT_PASS_H_
#ifndef SOURCE_OPT_PASS_H_
#define SOURCE_OPT_PASS_H_
#include <algorithm>
#include <map>
@ -162,4 +162,4 @@ class Pass {
} // namespace opt
} // namespace spvtools
#endif // LIBSPIRV_OPT_PASS_H_
#endif // SOURCE_OPT_PASS_H_

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_OPT_PASS_MANAGER_H_
#define LIBSPIRV_OPT_PASS_MANAGER_H_
#ifndef SOURCE_OPT_PASS_MANAGER_H_
#define SOURCE_OPT_PASS_MANAGER_H_
#include <memory>
#include <ostream>
@ -127,4 +127,4 @@ inline const MessageConsumer& PassManager::consumer() const {
} // namespace opt
} // namespace spvtools
#endif // LIBSPIRV_OPT_PASS_MANAGER_H_
#endif // SOURCE_OPT_PASS_MANAGER_H_

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_OPT_PASSES_H_
#define LIBSPIRV_OPT_PASSES_H_
#ifndef SOURCE_OPT_PASSES_H_
#define SOURCE_OPT_PASSES_H_
// A single header to include all passes.
@ -63,4 +63,4 @@
#include "unify_const_pass.h"
#include "vector_dce.h"
#include "workaround1209.h"
#endif // LIBSPIRV_OPT_PASSES_H_
#endif // SOURCE_OPT_PASSES_H_

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_OPT_PRIVATE_TO_LOCAL_PASS_H_
#define LIBSPIRV_OPT_PRIVATE_TO_LOCAL_PASS_H_
#ifndef SOURCE_OPT_PRIVATE_TO_LOCAL_PASS_H_
#define SOURCE_OPT_PRIVATE_TO_LOCAL_PASS_H_
#include "ir_context.h"
#include "pass.h"
@ -69,4 +69,4 @@ class PrivateToLocalPass : public Pass {
} // namespace opt
} // namespace spvtools
#endif // LIBSPIRV_OPT_PRIVATE_TO_LOCAL_PASS_H_
#endif // SOURCE_OPT_PRIVATE_TO_LOCAL_PASS_H_

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_OPT_PROPAGATOR_H_
#define LIBSPIRV_OPT_PROPAGATOR_H_
#ifndef SOURCE_OPT_PROPAGATOR_H_
#define SOURCE_OPT_PROPAGATOR_H_
#include <functional>
#include <queue>
@ -313,4 +313,4 @@ std::ostream& operator<<(std::ostream& str,
} // namespace opt
} // namespace spvtools
#endif // LIBSPIRV_OPT_PROPAGATOR_H_
#endif // SOURCE_OPT_PROPAGATOR_H_

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_OPT_REDUCE_LOAD_SIZE_H_
#define LIBSPIRV_OPT_REDUCE_LOAD_SIZE_H_
#ifndef SOURCE_OPT_REDUCE_LOAD_SIZE_H_
#define SOURCE_OPT_REDUCE_LOAD_SIZE_H_
#include "ir_context.h"
#include "module.h"
@ -59,4 +59,4 @@ class ReduceLoadSize : public Pass {
} // namespace opt
} // namespace spvtools
#endif // LIBSPIRV_OPT_REDUCE_LOAD_SIZE_H_
#endif // SOURCE_OPT_REDUCE_LOAD_SIZE_H_

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_OPT_REDUNDANCY_ELIMINATION_H_
#define LIBSPIRV_OPT_REDUNDANCY_ELIMINATION_H_
#ifndef SOURCE_OPT_REDUNDANCY_ELIMINATION_H_
#define SOURCE_OPT_REDUNDANCY_ELIMINATION_H_
#include "ir_context.h"
#include "local_redundancy_elimination.h"
@ -51,4 +51,4 @@ class RedundancyEliminationPass : public LocalRedundancyEliminationPass {
} // namespace opt
} // namespace spvtools
#endif // LIBSPIRV_OPT_REDUNDANCY_ELIMINATION_H_
#endif // SOURCE_OPT_REDUNDANCY_ELIMINATION_H_

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_OPT_REFLECT_H_
#define LIBSPIRV_OPT_REFLECT_H_
#ifndef SOURCE_OPT_REFLECT_H_
#define SOURCE_OPT_REFLECT_H_
#include "latest_version_spirv_header.h"
@ -62,4 +62,4 @@ inline bool IsTerminatorInst(SpvOp opcode) {
} // namespace opt
} // namespace spvtools
#endif // LIBSPIRV_OPT_REFLECT_H_
#endif // SOURCE_OPT_REFLECT_H_

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_OPT_REGISTER_PRESSURE_H_
#define LIBSPIRV_OPT_REGISTER_PRESSURE_H_
#ifndef SOURCE_OPT_REGISTER_PRESSURE_H_
#define SOURCE_OPT_REGISTER_PRESSURE_H_
#include <unordered_map>
#include <unordered_set>
@ -193,4 +193,4 @@ class LivenessAnalysis {
} // namespace opt
} // namespace spvtools
#endif // ! LIBSPIRV_OPT_REGISTER_PRESSURE_H_
#endif // SOURCE_OPT_REGISTER_PRESSURE_H_

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_OPT_REMOVE_DUPLICATES_PASS_H_
#define LIBSPIRV_OPT_REMOVE_DUPLICATES_PASS_H_
#ifndef SOURCE_OPT_REMOVE_DUPLICATES_PASS_H_
#define SOURCE_OPT_REMOVE_DUPLICATES_PASS_H_
#include <unordered_map>
@ -63,4 +63,4 @@ class RemoveDuplicatesPass : public Pass {
} // namespace opt
} // namespace spvtools
#endif // LIBSPIRV_OPT_REMOVE_DUPLICATES_PASS_H_
#endif // SOURCE_OPT_REMOVE_DUPLICATES_PASS_H_

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_OPT_REPLACE_INVALID_OPC_H_
#define LIBSPIRV_OPT_REPLACE_INVALID_OPC_H_
#ifndef SOURCE_OPT_REPLACE_INVALID_OPC_H_
#define SOURCE_OPT_REPLACE_INVALID_OPC_H_
#include "pass.h"
@ -62,4 +62,4 @@ class ReplaceInvalidOpcodePass : public Pass {
} // namespace opt
} // namespace spvtools
#endif // LIBSPIRV_OPT_REPLACE_INVALID_OPC_H_
#endif // SOURCE_OPT_REPLACE_INVALID_OPC_H_

View File

@ -310,4 +310,4 @@ inline std::pair<SExpression, int64_t> operator/(SENode* lhs, SExpression rhs) {
} // namespace opt
} // namespace spvtools
#endif // SOURCE_OPT_SCALAR_ANALYSIS_H__
#endif // SOURCE_OPT_SCALAR_ANALYSIS_H_

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_OPT_SCALAR_REPLACEMENT_PASS_H_
#define LIBSPIRV_OPT_SCALAR_REPLACEMENT_PASS_H_
#ifndef SOURCE_OPT_SCALAR_REPLACEMENT_PASS_H_
#define SOURCE_OPT_SCALAR_REPLACEMENT_PASS_H_
#include <cstdio>
@ -226,4 +226,4 @@ class ScalarReplacementPass : public Pass {
} // namespace opt
} // namespace spvtools
#endif // LIBSPIRV_OPT_SCALAR_REPLACEMENT_PASS_H_
#endif // SOURCE_OPT_SCALAR_REPLACEMENT_PASS_H_

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_OPT_SET_SPEC_CONSTANT_DEFAULT_VALUE_PASS_H_
#define LIBSPIRV_OPT_SET_SPEC_CONSTANT_DEFAULT_VALUE_PASS_H_
#ifndef SOURCE_OPT_SET_SPEC_CONSTANT_DEFAULT_VALUE_PASS_H_
#define SOURCE_OPT_SET_SPEC_CONSTANT_DEFAULT_VALUE_PASS_H_
#include <memory>
#include <string>
@ -109,4 +109,4 @@ class SetSpecConstantDefaultValuePass : public Pass {
} // namespace opt
} // namespace spvtools
#endif // LIBSPIRV_OPT_SET_SPEC_CONSTANT_DEFAULT_VALUE_PASS_H_
#endif // SOURCE_OPT_SET_SPEC_CONSTANT_DEFAULT_VALUE_PASS_H_

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_OPT_SIMPLIFICATION_PASS_H_
#define LIBSPIRV_OPT_SIMPLIFICATION_PASS_H_
#ifndef SOURCE_OPT_SIMPLIFICATION_PASS_H_
#define SOURCE_OPT_SIMPLIFICATION_PASS_H_
#include "function.h"
#include "ir_context.h"
@ -46,4 +46,4 @@ class SimplificationPass : public Pass {
} // namespace opt
} // namespace spvtools
#endif // LIBSPIRV_OPT_SIMPLIFICATION_PASS_H_
#endif // SOURCE_OPT_SIMPLIFICATION_PASS_H_

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_OPT_SSA_REWRITE_PASS_H_
#define LIBSPIRV_OPT_SSA_REWRITE_PASS_H_
#ifndef SOURCE_OPT_SSA_REWRITE_PASS_H_
#define SOURCE_OPT_SSA_REWRITE_PASS_H_
#include "basic_block.h"
#include "ir_context.h"
@ -296,4 +296,4 @@ class SSARewritePass : public MemPass {
} // namespace opt
} // namespace spvtools
#endif // LIBSPIRV_OPT_SSA_REWRITE_PASS_H_
#endif // SOURCE_OPT_SSA_REWRITE_PASS_H_

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_OPT_STRENGTH_REDUCTION_PASS_H_
#define LIBSPIRV_OPT_STRENGTH_REDUCTION_PASS_H_
#ifndef SOURCE_OPT_STRENGTH_REDUCTION_PASS_H_
#define SOURCE_OPT_STRENGTH_REDUCTION_PASS_H_
#include "def_use_manager.h"
#include "ir_context.h"
@ -62,4 +62,4 @@ class StrengthReductionPass : public Pass {
} // namespace opt
} // namespace spvtools
#endif // LIBSPIRV_OPT_STRENGTH_REDUCTION_PASS_H_
#endif // SOURCE_OPT_STRENGTH_REDUCTION_PASS_H_

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_OPT_STRIP_DEBUG_INFO_PASS_H_
#define LIBSPIRV_OPT_STRIP_DEBUG_INFO_PASS_H_
#ifndef SOURCE_OPT_STRIP_DEBUG_INFO_PASS_H_
#define SOURCE_OPT_STRIP_DEBUG_INFO_PASS_H_
#include "ir_context.h"
#include "module.h"
@ -32,4 +32,4 @@ class StripDebugInfoPass : public Pass {
} // namespace opt
} // namespace spvtools
#endif // LIBSPIRV_OPT_STRIP_DEBUG_INFO_PASS_H_
#endif // SOURCE_OPT_STRIP_DEBUG_INFO_PASS_H_

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LIBSPIRV_OPT_STRIP_REFLECT_INFO_PASS_H_
#define LIBSPIRV_OPT_STRIP_REFLECT_INFO_PASS_H_
#ifndef SOURCE_OPT_STRIP_REFLECT_INFO_PASS_H_
#define SOURCE_OPT_STRIP_REFLECT_INFO_PASS_H_
#include "ir_context.h"
#include "module.h"
@ -40,4 +40,4 @@ class StripReflectInfoPass : public Pass {
} // namespace opt
} // namespace spvtools
#endif // LIBSPIRV_OPT_STRIP_REFLECT_INFO_PASS_H_
#endif // SOURCE_OPT_STRIP_REFLECT_INFO_PASS_H_

Some files were not shown because too many files have changed in this diff Show More