[PATCH] D19582: [X86] Add support for llvm.thread.pointer

Bruno Cardoso Lopes via llvm-commits llvm-commits at lists.llvm.org
Wed May 11 09:33:50 PDT 2016


bruno added a reviewer: manmanren.
bruno added a comment.

Hi Marcin,

Would this work for all x86 platforms? Is this supposed to be Linux specific? If so, lacks appropriate checking.

@Manman, would this work out-of-the-box for Darwin?


================
Comment at: lib/Target/X86/X86ISelLowering.cpp:17827
@@ +17826,3 @@
+    Value *Ptr = Constant::getNullValue(
+        Type::getInt8PtrTy(*DAG.getContext(), Subtarget.is64Bit() ? 257 : 256));
+    return DAG.getLoad(PtrVT, dl, DAG.getEntryNode(),
----------------
What these constants mean? Please document it a comment


Repository:
  rL LLVM

http://reviews.llvm.org/D19582





More information about the llvm-commits mailing list