diff options
| author | Ellie Hermaszewska <ellieh@nvidia.com> | 2023-05-13 06:33:26 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-12 15:33:26 -0700 |
| commit | 65103bc9a0c72117d3c9410e361947cdd568ae55 (patch) | |
| tree | 9dcb3dea5082d12366e078b3c7b62faa89ef5c73 /source/slang/slang-check-overload.cpp | |
| parent | 332f60c19336252d907b83882aa70665ca93a9d2 (diff) | |
Fusion pass for saturated_cooperation (#2874)
* Fusion pass for saturated_cooperation
* simplify assert
* regenerate vs projects
* missing test output files
* rename shadowing variable to appease msvc
* Fuse calls to sat_coop with differing inputs
* formatting
* add cpu test for hof simple
* Make higher-order functions into compute comparison tests
* comment tests
* remove redundant test
* Add test to confirm inlining in sat_coop fuse
* Add clarifying comment for sat coop fusing
* Add KnownBuiltin decoration
* s/CanUseFuncSignature/TypesFullyResolved for higher order function checking
* Add TODO
* spelling
* Correct detection of sat_coop calls
* Disable tests which are unsupported on testing infra
Diffstat (limited to 'source/slang/slang-check-overload.cpp')
| -rw-r--r-- | source/slang/slang-check-overload.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/slang/slang-check-overload.cpp b/source/slang/slang-check-overload.cpp index 5160f3c6f..4bd8506ed 100644 --- a/source/slang/slang-check-overload.cpp +++ b/source/slang/slang-check-overload.cpp @@ -1454,7 +1454,8 @@ namespace Slang // We could probably be broader than just parameters here // eventually. // Limit it for now though to make the specialization easier - ensureDecl(localDeclRef, DeclCheckState::CanUseFuncSignature); + // TODO: why can't this use DeclCheckState::CanUseFuncSignature + ensureDecl(localDeclRef, DeclCheckState::TypesFullyResolved); const auto type = localDeclRef.getDecl()->getType(); // We can only add overload candidates if this is known to be a function if(const auto funType = as<FuncType>(type)) |
