diff options
Diffstat (limited to 'runtime/queries/llvm/locals.scm')
-rw-r--r-- | runtime/queries/llvm/locals.scm | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/runtime/queries/llvm/locals.scm b/runtime/queries/llvm/locals.scm new file mode 100644 index 00000000..1946c287 --- /dev/null +++ b/runtime/queries/llvm/locals.scm @@ -0,0 +1,14 @@ +; Scopes + +(function_body) @local.scope + +; Definitions + +(argument + (value (var (local_var) @local.definition))) + +(instruction + (local_var) @local.definition) + +; References +(local_var) @local.reference |