]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commit
Implement [[eraseable]] attribute. When used with a function it instructs the AST...
authorDale Weiler <killfieldengine@gmail.com>
Thu, 29 Aug 2013 04:05:37 +0000 (00:05 -0400)
committerDale Weiler <killfieldengine@gmail.com>
Thu, 29 Aug 2013 04:05:37 +0000 (00:05 -0400)
commita7c1f6f021f3c924c11b338e289b8ed636b8f7f6
treece8501dcd3a20fe08c88c75417989ce1aead75c5
parentceb79f1897fabed29583f23dd54cbef0e7897217
Implement [[eraseable]] attribute. When used with a function it instructs the AST (which than transfers logic to the IR) that the function (or variable) is potentially unused (verified by checking the read count). This than propogates through the IR and prevents the IR from generating both the definition and global/function. The intrinsics system uses this as well to prevent intrinsic functions from being generated unless they're used.
ast.c
ast.h
intrin.c
ir.c
ir.h
parser.c