Skip to content

Commit f3ac271

Browse files
tex3dpow2clk
authored andcommitted
NFC: Make hlsl::IntrinsicOp enum values stable (microsoft#7231)
This change makes hlsl::IntrinsicOp enum values stable by: - adding hlsl_intrinsic_opcodes.json to capture assigned indices - adds this to the files generated by hctgen - generation assigns new indices after the last index - hlsl::IntrinsicOp enum values have explicit assignments - removes ENABLE_SPIRV_CODEGEN ifdefs around opcode definitions and lowering table entries to keep these stable whether or not the spirv build setting is enabled. Fixes microsoft#7230
1 parent ed52646 commit f3ac271

File tree

8 files changed

+801
-389
lines changed

8 files changed

+801
-389
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -686,6 +686,8 @@ add_subdirectory(include/dxc)
686686
# really depend on anything else in the build it is safe.
687687
list(APPEND LLVM_COMMON_DEPENDS HCTGen)
688688

689+
add_subdirectory(utils/hct)
690+
689691
if(EXISTS "${LLVM_MAIN_SRC_DIR}/external")
690692
add_subdirectory(external) # SPIRV change
691693
endif()

0 commit comments

Comments
 (0)