ychen added inline comments.

================
Comment at: llvm/docs/LangRef.rst:24541
+
+      declare ptr @llvm.threadlocal.address(ptr) nounwind readnone willreturn
+
----------------
Like @jyknight already did, any idea what it would take to change the parameter 
type from pointer to token? Looking at the test changes, it looks like OpenMP 
is impacted a lot. I suggest splitting this patch into Clang and LLVM parts to 
gain insights from the frontend experts.


================
Comment at: llvm/lib/IR/IRBuilder.cpp:533
+  if (!isa<GlobalValue>(Ptr) || !cast<GlobalValue>(Ptr)->isThreadLocal()) {
+    llvm::outs() << "Non Global Value wanted.\n";
+    Ptr->dump();
----------------
Here and below `llvm::outs()` are for debugging and should be removed?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D125291/new/

https://reviews.llvm.org/D125291

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to