diff options
| author | Yong He <yonghe@outlook.com> | 2024-02-20 12:24:00 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-20 12:24:00 -0800 |
| commit | 4d20fd329956ac89408b1628a8291fea01bc9a6d (patch) | |
| tree | 8e62d9c1ec05142fd25d0b31073fdb56d44691b0 /source/slang/slang-ir-lower-generics.cpp | |
| parent | 8e9b61e3bac69dbb37a1451b62302e688a017ced (diff) | |
Refactor compiler option representations. (#3598)
* Refactor compiler option representation.
* Fix binary compatibility.
* Add a test for specifying compiler options at link time.
* Fix binary compatibility.
* Fix binary compatibility.
* Fix backward compatibility on matrix layout.
* Fix.
* Fix.
* Fix.
* Fix gfx.
* Fix gfx.
* Fix dynamic dispatch.
* Polish.
Diffstat (limited to 'source/slang/slang-ir-lower-generics.cpp')
| -rw-r--r-- | source/slang/slang-ir-lower-generics.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/slang/slang-ir-lower-generics.cpp b/source/slang/slang-ir-lower-generics.cpp index f3aa2145e..fd8c9257b 100644 --- a/source/slang/slang-ir-lower-generics.cpp +++ b/source/slang/slang-ir-lower-generics.cpp @@ -205,19 +205,19 @@ namespace Slang } void lowerGenerics( - TargetRequest* targetReq, + TargetProgram* targetProgram, IRModule* module, DiagnosticSink* sink) { SLANG_PROFILE; SharedGenericsLoweringContext sharedContext(module); - sharedContext.targetReq = targetReq; + sharedContext.targetProgram = targetProgram; sharedContext.sink = sink; checkTypeConformanceExists(&sharedContext); - inferAnyValueSizeWhereNecessary(targetReq, module); + inferAnyValueSizeWhereNecessary(targetProgram, module); // Replace all `makeExistential` insts with `makeExistentialWithRTTI` // before making any other changes. This is necessary because a parameter of @@ -255,7 +255,7 @@ namespace Slang // real RTTI objects and witness tables. specializeRTTIObjects(&sharedContext, sink); - simplifyIR(sharedContext.targetReq, module, IRSimplificationOptions::getFast()); + simplifyIR(sharedContext.targetProgram, module, IRSimplificationOptions::getFast()); lowerTuples(module, sink); if (sink->getErrorCount() != 0) |
