diff options
| author | Ellie Hermaszewska <ellieh@nvidia.com> | 2025-07-17 16:48:25 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-17 08:48:25 +0000 |
| commit | c9ece34d940565cdce3df56c5df1743252d807ca (patch) | |
| tree | f9a3723670f52c2abf69d21d60fcd4dbcda0d794 /docs | |
| parent | 4dccdff89494116cc69802c7f3d1957d1b972775 (diff) | |
mention adding new stable names manually (#7802)
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/design/ir-instruction-definition.md | 12 |
1 files changed, 8 insertions, 4 deletions
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. |
