// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
// MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
-#ifndef _CODEPLAY_SPIRV_SPIRV_H_
-#define _CODEPLAY_SPIRV_SPIRV_H_
+#ifndef LIBSPIRV_LIBSPIRV_LIBSPIRV_H_
+#define LIBSPIRV_LIBSPIRV_LIBSPIRV_H_
#include <headers/spirv.hpp>
#include <headers/spirv_operands.hpp>
}
#endif
-#endif
+#endif // LIBSPIRV_LIBSPIRV_LIBSPIRV_H_
// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
// MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
-#ifndef _LIBSPIRV_UTIL_BITUTILS_H_
-#define _LIBSPIRV_UTIL_BITUTILS_H_
+#ifndef LIBSPIRV_UTIL_BITUTILS_H_
+#define LIBSPIRV_UTIL_BITUTILS_H_
#include <cstring>
} // namespace spvutils
-#endif
+#endif // LIBSPIRV_UTIL_BITUTILS_H_
// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
// MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
-#ifndef _LIBSPIRV_UTIL_ASSEMBLY_GRAMMAR_H_
-#define _LIBSPIRV_UTIL_ASSEMBLY_GRAMMAR_H_
+#ifndef LIBSPIRV_ASSEMBLY_GRAMMAR_H_
+#define LIBSPIRV_ASSEMBLY_GRAMMAR_H_
#include <libspirv/libspirv.h>
#include "operand.h"
const spv_ext_inst_table extInstTable_;
};
}
-#endif // _LIBSPIRV_UTIL_ASSEMBLY_GRAMMAR_H_
+#endif // LIBSPIRV_ASSEMBLY_GRAMMAR_H_
// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
// MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
-#ifndef _LIBSPIRV_UTIL_BINARY_H_
-#define _LIBSPIRV_UTIL_BINARY_H_
+#ifndef LIBSPIRV_BINARY_H_
+#define LIBSPIRV_BINARY_H_
#include <libspirv/libspirv.h>
#include "instruction.h"
const spv_opcode_desc opcodeEntry,
const spv_operand_table operandTable,
spv_operand_desc *pOperandEntry);
-#endif
+#endif // LIBSPIRV_BINARY_H_
// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
// MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
-#ifndef _LIBSPIRV_UTIL_DIAGNOSTIC_H_
-#define _LIBSPIRV_UTIL_DIAGNOSTIC_H_
+#ifndef LIBSPIRV_DIAGNOSTIC_H_
+#define LIBSPIRV_DIAGNOSTIC_H_
#include <libspirv/libspirv.h>
diagnostic_helper helper(position, pDiagnostic); \
helper.stream
-#endif
+#endif // LIBSPIRV_DIAGNOSTIC_H_
// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
// MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
-#ifndef _LIBSPIRV_UTIL_ENDIAN_H_
-#define _LIBSPIRV_UTIL_ENDIAN_H_
+#ifndef LIBSPIRV_ENDIAN_H_
+#define LIBSPIRV_ENDIAN_H_
#include <libspirv/libspirv.h>
/// @return result code
spv_result_t spvBinaryEndianness(const spv_binary binary,
spv_endianness_t *pEndian);
-#endif
+
+#endif // LIBSPIRV_ENDIAN_H_
// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
// MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
-#ifndef _CODEPLAY_SPIRV_EXT_INST_H_
-#define _CODEPLAY_SPIRV_EXT_INST_H_
+#ifndef LIBSPIRV_EXT_INST_H_
+#define LIBSPIRV_EXT_INST_H_
#include <libspirv/libspirv.h>
const uint32_t value,
spv_ext_inst_desc *pEntry);
-#endif
+#endif // LIBSPIRV_EXT_INST_H_
// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
// MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
-#ifndef _LIBSPIRV_UTIL_INSTRUCTION_H_
-#define _LIBSPIRV_UTIL_INSTRUCTION_H_
+#ifndef LIBSPIRV_INSTRUCTION_H_
+#define LIBSPIRV_INSTRUCTION_H_
#include <cstdint>
#include <vector>
inst->words.push_back(value);
}
-#endif // _LIBSPIRV_UTIL_INSTRUCTION_H_
+#endif // LIBSPIRV_INSTRUCTION_H_
// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
// MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
-#ifndef _LIBSPIRV_UTIL_OPCODE_H_
-#define _LIBSPIRV_UTIL_OPCODE_H_
+#ifndef LIBSPIRV_OPCODE_H_
+#define LIBSPIRV_OPCODE_H_
#include "instruction.h"
#include <libspirv/libspirv.h>
/// @return zero if false, non-zero otherwise
int32_t spvOpcodeGeneratesType(Op op);
-#endif
+#endif // LIBSPIRV_OPCODE_H_
// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
// MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
-#ifndef _CODEPLAY_SPIRV_OPERAND_H_
-#define _CODEPLAY_SPIRV_OPERAND_H_
+#ifndef LIBSPIRV_OPERAND_H_
+#define LIBSPIRV_OPERAND_H_
#include <deque>
spv_operand_pattern_t spvAlternatePatternFollowingImmediate(
const spv_operand_pattern_t& pattern);
-#endif
+#endif // LIBSPIRV_OPERAND_H_
// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
// MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
-#ifndef _LIBSPIRV_PRINT_H_
-#define _LIBSPIRV_PRINT_H_
+#ifndef LIBSPIRV_PRINT_H_
+#define LIBSPIRV_PRINT_H_
#include <iostream>
#include <sstream>
};
}
-#endif
+#endif // LIBSPIRV_PRINT_H_
// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
// MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
-#ifndef _LIBSPIRV_UTIL_TEXT_H_
-#define _LIBSPIRV_UTIL_TEXT_H_
+#ifndef LIBSPIRV_TEXT_H_
+#define LIBSPIRV_TEXT_H_
#include <libspirv/libspirv.h>
#include "operand.h"
/// @return result code
spv_result_t spvTextToLiteral(const char *textValue, spv_literal_t *pLiteral);
-#endif
+#endif // LIBSPIRV_TEXT_H_
// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
// MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
-#ifndef _LIBSPIRV_UTIL_TEXT_HANDLER_H_
-#define _LIBSPIRV_UTIL_TEXT_HANDLER_H_
+#ifndef LIBSPIRV_TEXT_HANDLER_H_
+#define LIBSPIRV_TEXT_HANDLER_H_
#include <iomanip>
#include <limits>
uint32_t bound_;
};
}
-#endif // _LIBSPIRV_UTIL_TEXT_HANDLER_H_
-
+#endif // _LIBSPIRV_TEXT_HANDLER_H_
// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
// MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
-#ifndef _LIBSPIRV_UTIL_VALIDATE_H_
-#define _LIBSPIRV_UTIL_VALIDATE_H_
+#ifndef LIBSPIRV_VALIDATE_H_
+#define LIBSPIRV_VALIDATE_H_
#include "instruction.h"
#include <libspirv/libspirv.h>
const spv_ext_inst_table extInstTable,
spv_position position, spv_diagnostic *pDiagnostic);
-#endif
+#endif // LIBSPIRV_VALIDATE_H_
// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
// MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
-#ifndef _TEST_FIXTURE_H_
-#define _TEST_FIXTURE_H_
+
+#ifndef LIBSPIRV_TEST_TEST_FIXTURE_H_
+#define LIBSPIRV_TEST_TEST_FIXTURE_H_
#include "UnitSPIRV.h"
} // namespace spvtest
-#endif // _TEXT_FIXTURE_H_
+#endif // LIBSPIRV_TEST_TEST_FIXTURE_H_
// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
// MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
-#ifndef _CODEPLAY_UNITBIL_H_
-#define _CODEPLAY_UNITBIL_H_
+#ifndef LIBSPIRV_TEST_UNITSPIRV_H_
+#define LIBSPIRV_TEST_UNITSPIRV_H_
#include <libspirv/libspirv.h>
#include "../source/assembly_grammar.h"
} // namespace spvtest
-#endif
+#endif // LIBSPIRV_TEST_UNITSPIRV_H_