Skip to content

Commit fba839a

Browse files
committed
sil-opt: add an -enable-experimental-concurrency option.
1 parent 7f2185d commit fba839a

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
@@ -99,6 +99,10 @@ static llvm::cl::opt<bool>
9999
DisableObjCInterop("disable-objc-interop",
100100
llvm::cl::desc("Disable Objective-C interoperability."));
101101

102+
static llvm::cl::opt<bool>
103+
EnableExperimentalConcurrency("enable-experimental-concurrency",
104+
llvm::cl::desc("Enable experimental concurrency model."));
105+
102106
static llvm::cl::opt<bool>
103107
VerifyExclusivity("enable-verify-exclusivity",
104108
llvm::cl::desc("Verify the access markers used to enforce exclusivity."));
@@ -341,6 +345,10 @@ int main(int argc, char **argv) {
341345
Invocation.getLangOptions().DisableAvailabilityChecking = true;
342346
Invocation.getLangOptions().EnableAccessControl = false;
343347
Invocation.getLangOptions().EnableObjCAttrRequiresFoundation = false;
348+
349+
Invocation.getLangOptions().EnableExperimentalConcurrency =
350+
EnableExperimentalConcurrency;
351+
344352
Invocation.getLangOptions().EnableObjCInterop =
345353
EnableObjCInterop ? true :
346354
DisableObjCInterop ? false : llvm::Triple(Target).isOSDarwin();

0 commit comments

Comments
 (0)