Add per-instruction source locations to the Cretonne IR.

Source locations are opaque 32-bit entities that can be used to
represent WebAssembly byte-code positions or some other source
identifier.
This commit is contained in:
Jakob Stoklund Olesen
2017-09-20 16:42:30 -07:00
parent 16eb689dd1
commit b2a314a229
8 changed files with 156 additions and 24 deletions

View File

@@ -25,6 +25,7 @@ syn match ctonName /%\w\+\>/
syn match ctonNumber /-\?\<[0-9_]\+\>/
syn match ctonNumber /-\?\<0x[0-9a-fA-F_]\+\(\.[0-9a-fA-F_]*\)\?\(p[+-]\?\d\+\)\?\>/
syn match ctonHexSeq /#\x\+\>/
syn match ctonSourceLoc /@[0-9a-f]\+\>/
syn region ctonCommentLine start=";" end="$" contains=ctonFilecheck
@@ -38,5 +39,6 @@ hi def link ctonNumber Number
hi def link ctonHexSeq Number
hi def link ctonCommentLine Comment
hi def link ctonFilecheck SpecialComment
hi def link ctonSourceLoc LineNr
let b:current_syntax = "cton"