Skip to content

Commit 1b4378e

Browse files
committed
[SILOpt] Add a flag to enable experimental type wrappers feature
1 parent a925142 commit 1b4378e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tools/sil-opt/SILOpt.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,10 @@ static llvm::cl::opt<bool>
136136
EnableExperimentalDistributed("enable-experimental-distributed",
137137
llvm::cl::desc("Enable experimental distributed actors."));
138138

139+
static llvm::cl::opt<bool> EnableExperimentalTypeWrappers(
140+
"enable-experimental-type-wrappers",
141+
llvm::cl::desc("Enable experimental type wrappers."));
142+
139143
static llvm::cl::opt<bool>
140144
VerifyExclusivity("enable-verify-exclusivity",
141145
llvm::cl::desc("Verify the access markers used to enforce exclusivity."));
@@ -581,6 +585,10 @@ int main(int argc, char **argv) {
581585
Feature::DifferentiableProgramming);
582586
}
583587

588+
if (EnableExperimentalTypeWrappers) {
589+
Invocation.getLangOptions().Features.insert(Feature::TypeWrappers);
590+
}
591+
584592
Invocation.getLangOptions().EnableCXXInterop = EnableCxxInterop;
585593

586594
Invocation.getDiagnosticOptions().VerifyMode =

0 commit comments

Comments
 (0)