From 65103bc9a0c72117d3c9410e361947cdd568ae55 Mon Sep 17 00:00:00 2001 From: Ellie Hermaszewska Date: Sat, 13 May 2023 06:33:26 +0800 Subject: 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 --- source/slang/slang-check-modifier.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'source/slang/slang-check-modifier.cpp') diff --git a/source/slang/slang-check-modifier.cpp b/source/slang/slang-check-modifier.cpp index 2d5f6aad7..b1f36ca2b 100644 --- a/source/slang/slang-check-modifier.cpp +++ b/source/slang/slang-check-modifier.cpp @@ -725,6 +725,18 @@ namespace Slang deprecatedAttr->message = message; } + else if (auto knownBuiltinAttr = as(attr)) + { + SLANG_ASSERT(attr->args.getCount() == 1); + + String name; + if(!checkLiteralStringVal(attr->args[0], &name)) + { + return false; + } + + knownBuiltinAttr->name = name; + } else { if(attr->args.getCount() == 0) -- cgit v1.2.3