diff options
| author | Yong He <yonghe@outlook.com> | 2018-05-02 23:01:48 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-05-02 23:01:48 -0400 |
| commit | 78935493587ec65a199d844327613021667acc1b (patch) | |
| tree | d516c031a4e927aa5444bfa1d1a158f58e957050 /source/slang/compiler.h | |
| parent | 384df864fdd2c518924d32295a13894f16295d43 (diff) | |
| parent | 235d6aac8a78e9ecc2f1fb1e17d1f61c3f592b76 (diff) | |
Merge pull request #543 from csyonghe/master
Speedup type checking using cached overload resolution results.
Diffstat (limited to 'source/slang/compiler.h')
| -rw-r--r-- | source/slang/compiler.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/slang/compiler.h b/source/slang/compiler.h index 4cda366f0..e7c40bdc8 100644 --- a/source/slang/compiler.h +++ b/source/slang/compiler.h @@ -445,6 +445,7 @@ namespace Slang char const* text, CodeGenTarget target); + struct TypeCheckingCache; // class Session @@ -535,6 +536,10 @@ namespace Slang Dictionary<Name*, SyntaxClass<RefObject> > mapNameToSyntaxClass; + // cache used by type checking, implemented in check.cpp + TypeCheckingCache* typeCheckingCache = nullptr; + TypeCheckingCache* getTypeCheckingCache(); + void destroyTypeCheckingCache(); // Session(); |
