Skip to content

Commit

Permalink
Add emualted tls support.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel-Durov authored Nov 14, 2023
1 parent 3b07c59 commit afced49
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions llvm/lib/CodeGen/TargetPassConfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1122,6 +1122,10 @@ bool TargetPassConfig::addISelPasses() {
if (YkShadowStack) {
addPass(createYkShadowStackPass());
}

if (TM->useEmulatedTLS()){
addPass(createLowerEmuTLSPass());
}
// We insert the yk control point pass as late as possible. It has to run
// before instruction selection (or the machine IR won't reflect our
// patching), but after other passes which mutate the IR (e.g.
Expand Down

0 comments on commit afced49

Please sign in to comment.