Coming back to the issues that I had integrating LLVM with MSSP, will the code in include/Support also be put in the llvm namespace? That will solve many problems and help prevent others. Rahul ---- Original message ---->Date: Sun, 9 Nov 2003 10:13:03 -0600 (CST) >From: Chris Lattner <sabre at nondot.org> >Subject: [LLVMdev] LLVM namespac'ification >To: LLVMdev List <llvmdev at cs.uiuc.edu> > > >This is just a heads up: Reid Spencer is working up a changeset for LLVM >which will put all of the LLVM classes into an 'llvm' namespace. This >will make it possible to integrate LLVM with other C++ packages that use >classes like 'Type' and 'User'. > >This should cause very little impact on the actual source base, other than >the 'namespace llvm' in header files, and a 'using namespace llvm' in the >.cpp files. > >If you have questions or concerns, llvmdev is the place for them! :) > >Thanks Reid! > >-Chris > >-- >http://llvm.cs.uiuc.edu/ >http://www.nondot.org/~sabre/Projects/ > > > >_______________________________________________ >LLVM Developers mailing list >LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu >http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev
On Sun, 9 Nov 2003, Rahul Joshi wrote:> Coming back to the issues that I had integrating LLVM with > MSSP, will the code in include/Support also be put in the > llvm namespace? That will solve many problems and help prevent > others.Absolutely. -Chris> ---- Original message ---- > >Date: Sun, 9 Nov 2003 10:13:03 -0600 (CST) > >From: Chris Lattner <sabre at nondot.org> > >Subject: [LLVMdev] LLVM namespac'ification > >To: LLVMdev List <llvmdev at cs.uiuc.edu> > > > > > >This is just a heads up: Reid Spencer is working up a changeset for LLVM > >which will put all of the LLVM classes into an 'llvm' namespace. This > >will make it possible to integrate LLVM with other C++ packages that use > >classes like 'Type' and 'User'. > > > >This should cause very little impact on the actual source base, other than > >the 'namespace llvm' in header files, and a 'using namespace llvm' in the > >.cpp files. > > > >If you have questions or concerns, llvmdev is the place for them! :) > > > >Thanks Reid! > > > >-Chris > > > >-- > >http://llvm.cs.uiuc.edu/ > >http://www.nondot.org/~sabre/Projects/ > > > > > > > >_______________________________________________ > >LLVM Developers mailing list > >LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > >http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev >-Chris -- http://llvm.cs.uiuc.edu/ http://www.nondot.org/~sabre/Projects/
Yes, pretty much. There are a few things that will go in the std namespace because its the way it is and a more natural fit. The other two namespaces already in use (cl and DOT) will be placed under the llvm namespace. The goal is to get everything that is currently at top level and put it in llvm. This means that in your programs, you wouldn't use: cl::XYZ anymore but: llvm::cl::XYZ. Or, you can use a "using namespace llvm" to retain backwards compatibility. Reid. On Sun, 2003-11-09 at 20:31, Rahul Joshi wrote:> Coming back to the issues that I had integrating LLVM with > MSSP, will the code in include/Support also be put in the > llvm namespace? That will solve many problems and help prevent > others. > > Rahul > > ---- Original message ---- > >Date: Sun, 9 Nov 2003 10:13:03 -0600 (CST) > >From: Chris Lattner <sabre at nondot.org> > >Subject: [LLVMdev] LLVM namespac'ification > >To: LLVMdev List <llvmdev at cs.uiuc.edu> > > > > > >This is just a heads up: Reid Spencer is working up a changeset for LLVM > >which will put all of the LLVM classes into an 'llvm' namespace. This > >will make it possible to integrate LLVM with other C++ packages that use > >classes like 'Type' and 'User'. > > > >This should cause very little impact on the actual source base, other than > >the 'namespace llvm' in header files, and a 'using namespace llvm' in the > >.cpp files. > > > >If you have questions or concerns, llvmdev is the place for them! :) > > > >Thanks Reid! > > > >-Chris > > > >-- > >http://llvm.cs.uiuc.edu/ > >http://www.nondot.org/~sabre/Projects/ > > > > > > > >_______________________________________________ > >LLVM Developers mailing list > >LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > >http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev_______________________ Reid Spencer President & CTO eXtensible Systems, Inc. rspencer at x10sys.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20031109/a8e7c072/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20031109/a8e7c072/attachment.sig>
On Sun, 9 Nov 2003, Reid Spencer wrote:> level and put it in llvm. This means that in your programs, you > wouldn't use: > cl::XYZ > anymore but: > llvm::cl::XYZ. > Or, you can use a "using namespace llvm" to retain backwards > compatibility.Note that the LLVM sourcebase itself won't use llvm:: - it will use a 'using namespace llvm;' in all .cpp files, to avoid uglification. -Chris -- http://llvm.cs.uiuc.edu/ http://www.nondot.org/~sabre/Projects/
Chris, What's the current status of the test suite. After putting everything in the llvm namespace and getting everything to link, I am getting only about 75% of the tests passing. Is this to be expected or have I broken something? Reid. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20031111/956f9809/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20031111/956f9809/attachment.sig>