[llvm-commits] Segmented stacks, current status.

Anton Korobeynikov anton at korobeynikov.info
Mon Jun 27 08:10:58 PDT 2011


Hello Sanjoy,

> I am a GSoC student, working on implementing segmented stacks for LLVM.
> I have attached a set of patches that add preliminary support for
> segmented stacks and variable length allocas for review.
I did only quick scan over the patches (I'm planning to review them
later), but this hunk looks really suspicious:

+    TlsReg = X86::FS;
+    TlsOffset = 0x70;
+
...
+  } else {
+    TlsReg = X86::GS;
+    TlsOffset = 0x30;

Are you sure this will work on all subtargets we support?

-- 
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University



More information about the llvm-commits mailing list