Skip to content

Latest commit

 

History

History
98 lines (88 loc) · 3.12 KB

README.md

File metadata and controls

98 lines (88 loc) · 3.12 KB

AMD GCN ISA

This extension provides a basic language support for the AMD GCN instruction set architecture, especially suitable for CLRadeonExtender assembler. This is based on the work of Dominik Baumeister.

Features

For files with the extensions

  • .isa
  • .isa.txt
  • .il
  • .il.txt
  • .gcn

the following tokens are emitted:

  • comment.block.amd-gcn-isa
  • comment.line.amd-gcn-isa
  • constant.numeric.float.amd-gcn-isa
  • constant.numeric.integer.amd-gcn-isa
  • constant.string.amd-gcn-isa
  • keyword.clrx.amd-gcn-isa
  • keyword.control.label.amd-gcn-isa
  • keyword.control.vector.amd-gcn-isa
  • keyword.control.scalar.amd-gcn-isa
  • keyword.vector.amd-gcn-isa
  • keyword.scalar.amd-gcn-isa
  • storage.type.amd-gcn-isa
  • support.variable.vector.amd-gcn-isa
  • support.variable.scalar.amd-gcn-isa

For a starting point it is recommended to add the following code snippet to your theme (on Windows it is in %APPDATA%\Code\User\settings.json file):

    "editor.tokenColorCustomizations":{
        "textMateRules": [
            {
                "scope": "constant.string.amd-gcn-isa",
                "settings": {
                    "foreground": "#a76c00"
                }
            },
            {
                "scope": "keyword.clrx.amd-gcn-isa",
                "settings": {
                    "foreground": "#999999"
                }
            },
            {
                "scope": "keyword.control.label.amd-gcn-isa",
                "settings": {
                    "foreground": "#33CC33"
                }
            },
            {
                "scope": "keyword.scalar.amd-gcn-isa",
                "settings": {
                    "foreground": "#CC33CC"
                }
            },
            {
                "scope": "keyword.vector.amd-gcn-isa",
                "settings": {
                    "foreground": "#33CCCC"
                }
            },
            {
                "scope": "storage.type.amd-gcn-isa",
                "settings": {
                    "foreground": "#CC3333"
                }
            },
            {
                "scope": "support.variable.vector.amd-gcn-isa",
                "settings": {
                    "foreground": "#CCCC33"
                }
            },
            {
                "scope": "support.variable.scalar.amd-gcn-isa",
                "settings": {
                    "foreground": "#6495ED"
                }
            }
        ]
    }

Release Notes

1.0.0

Initial release by Dominik Baumeister.

1.0.1

Extension to different types of commands and comments by Ivan Siutsou basing partly on the highlighting schemes of CLRadeonExtender.

1.0.2

Some improvements in highlighting and documentation.

License

This extension is under the MIT license. See License file for full license information.