mirror of
https://github.com/KhronosGroup/SPIRV-Tools
synced 2024-11-22 11:40:05 +00:00
Rename endian.h to spirv_endian.h
If we later add a source/ as an -I include directory, then avoid confusing other headers that want to include the standard "endian.h" from /usr/include. Also rename source/endian.cpp to source/spirv_endian.cpp
This commit is contained in:
parent
224348faf0
commit
4c21571728
@ -103,7 +103,6 @@ set(SPIRV_SOURCES
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/source/assembly_grammar.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/source/binary.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/source/diagnostic.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/source/endian.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/source/ext_inst.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/source/instruction.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/source/opcode.h
|
||||
@ -111,6 +110,7 @@ set(SPIRV_SOURCES
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/source/print.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/source/spirv_constant.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/source/spirv_definition.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/source/spirv_endian.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/source/table.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/source/text.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/source/text_handler.h
|
||||
@ -120,11 +120,11 @@ set(SPIRV_SOURCES
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/source/binary.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/source/disassemble.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/source/diagnostic.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/source/endian.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/source/ext_inst.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/source/opcode.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/source/operand.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/source/print.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/source/spirv_endian.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/source/table.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/source/text.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/source/text_handler.cpp
|
||||
|
@ -34,12 +34,12 @@
|
||||
|
||||
#include "assembly_grammar.h"
|
||||
#include "diagnostic.h"
|
||||
#include "endian.h"
|
||||
#include "ext_inst.h"
|
||||
#include "libspirv/libspirv.h"
|
||||
#include "opcode.h"
|
||||
#include "operand.h"
|
||||
#include "spirv_constant.h"
|
||||
#include "spirv_endian.h"
|
||||
|
||||
spv_result_t spvBinaryHeaderGet(const spv_const_binary binary,
|
||||
const spv_endianness_t endian,
|
||||
|
@ -34,12 +34,12 @@
|
||||
#include "assembly_grammar.h"
|
||||
#include "binary.h"
|
||||
#include "diagnostic.h"
|
||||
#include "endian.h"
|
||||
#include "ext_inst.h"
|
||||
#include "libspirv/libspirv.h"
|
||||
#include "opcode.h"
|
||||
#include "print.h"
|
||||
#include "spirv_constant.h"
|
||||
#include "spirv_endian.h"
|
||||
#include "util/hex_float.h"
|
||||
|
||||
namespace {
|
||||
|
@ -31,10 +31,10 @@
|
||||
|
||||
#include <cstdlib>
|
||||
|
||||
#include "endian.h"
|
||||
#include "instruction.h"
|
||||
#include "libspirv/libspirv.h"
|
||||
#include "spirv_constant.h"
|
||||
#include "spirv_endian.h"
|
||||
#include "spirv_operands.h"
|
||||
|
||||
namespace {
|
||||
|
@ -24,7 +24,7 @@
|
||||
// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
// MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
|
||||
|
||||
#include "endian.h"
|
||||
#include "spirv_endian.h"
|
||||
|
||||
#include <cstring>
|
||||
|
@ -24,8 +24,8 @@
|
||||
// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
// MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
|
||||
|
||||
#ifndef LIBSPIRV_ENDIAN_H_
|
||||
#define LIBSPIRV_ENDIAN_H_
|
||||
#ifndef LIBSPIRV_SPIRV_ENDIAN_H_
|
||||
#define LIBSPIRV_SPIRV_ENDIAN_H_
|
||||
|
||||
#include "libspirv/libspirv.h"
|
||||
|
||||
@ -46,4 +46,4 @@ spv_result_t spvBinaryEndianness(const spv_const_binary binary,
|
||||
// Returns true if the given endianness matches the host's native endiannes.
|
||||
bool spvIsHostEndian(spv_endianness_t endian);
|
||||
|
||||
#endif // LIBSPIRV_ENDIAN_H_
|
||||
#endif // LIBSPIRV_SPIRV_ENDIAN_H_
|
@ -29,12 +29,12 @@
|
||||
|
||||
#include "binary.h"
|
||||
#include "diagnostic.h"
|
||||
#include "endian.h"
|
||||
#include "instruction.h"
|
||||
#include "libspirv/libspirv.h"
|
||||
#include "opcode.h"
|
||||
#include "operand.h"
|
||||
#include "spirv_constant.h"
|
||||
#include "spirv_endian.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <cassert>
|
||||
|
@ -35,8 +35,8 @@
|
||||
#include "../source/assembly_grammar.h"
|
||||
#include "../source/binary.h"
|
||||
#include "../source/diagnostic.h"
|
||||
#include "../source/endian.h"
|
||||
#include "../source/opcode.h"
|
||||
#include "../source/spirv_endian.h"
|
||||
#include "../source/text.h"
|
||||
#include "../source/text_handler.h"
|
||||
#include "../source/validate.h"
|
||||
|
Loading…
Reference in New Issue
Block a user