From c9ece34d940565cdce3df56c5df1743252d807ca Mon Sep 17 00:00:00 2001 From: Ellie Hermaszewska Date: Thu, 17 Jul 2025 16:48:25 +0800 Subject: mention adding new stable names manually (#7802) --- docs/design/ir-instruction-definition.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'docs/design') diff --git a/docs/design/ir-instruction-definition.md b/docs/design/ir-instruction-definition.md index a7444e99e..f06323efb 100644 --- a/docs/design/ir-instruction-definition.md +++ b/docs/design/ir-instruction-definition.md @@ -87,11 +87,15 @@ To add a new IR instruction: 2. **Run the build**: The build system will automatically regenerate the C++ files. -3. **Update the stable names**: Run the validation script: +3. **Update the stable names**: Either - ```bash - ./external/lua/lua extras/check-ir-stable-names.lua update - ``` + - Run the validation script: + + ```bash + ./external/lua/lua extras/check-ir-stable-names.lua update + ``` + + - Or add a new ID to the mapping in `source/slang/slang-ir-insts-stable-names.lua`, this is checked for consistency in CI so it's safe to add manually. This assigns a permanent ID to your new instruction. -- cgit v1.2.3