From c34a7b6627d4c07531daf7d99dceaf7f89bd1c0a Mon Sep 17 00:00:00 2001 From: Ellie Hermaszewska Date: Tue, 1 Aug 2023 12:43:51 +0800 Subject: Generalize collectInductionValues (#3031) * Generalize collectInductionValues * Support affine transformations of loop index as induction variables * Test for generalized induction value collection * Neaten inductive variable finding * Store the type of implication success when finding inductive variables * Test that loop induction finding does not alway succeed * Support chains of additions and branches of additions in induction variable finding * Use c++17 for downstream compilers --- source/compiler-core/slang-nvrtc-compiler.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source/compiler-core/slang-nvrtc-compiler.cpp') diff --git a/source/compiler-core/slang-nvrtc-compiler.cpp b/source/compiler-core/slang-nvrtc-compiler.cpp index e2f3e678c..c756955ec 100644 --- a/source/compiler-core/slang-nvrtc-compiler.cpp +++ b/source/compiler-core/slang-nvrtc-compiler.cpp @@ -784,8 +784,9 @@ SlangResult NVRTCDownstreamCompiler::compile(const DownstreamCompileOptions& inO // Neither of these options are strictly required, for general use of nvrtc, // but are enabled to make use withing Slang work more smoothly { - // Require c++14, as makes initialization construction with {} available and so simplifies code generation - cmdLine.addArg("-std=c++14"); + // Require c++17, the default at the time of writing, since we share + // some functionality between slang itself and the compiled code + cmdLine.addArg("-std=c++17"); // Disable all warnings // This is arguably too much - but nvrtc does not appear to have a mechanism to switch off individual warnings. -- cgit v1.2.3