Chris,> We used to have a 'lowerconstantexpr' pass in transforms/scalar. I don't > know how to see deleted files in svn though.They should be "seen" in the certain revision, before they were deleted. -- With best regards, Anton Korobeynikov. Faculty of Mathematics & Mechanics, Saint Petersburg State University.
On Jul 3, 2007, at 15:08, Anton Korobeynikov wrote:> Chris, > >> We used to have a 'lowerconstantexpr' pass in transforms/scalar. >> I don't >> know how to see deleted files in svn though. > > They should be "seen" in the certain revision, before they were > deleted.If you know the exact path, you should be able to 'svn log FILENAME' to discover the revision before it was deleted. 'svn log FOLDER' or a binary search with 'svn ls FOLDER at REV' might be useful, too. Once you find the REVBEFORE deletion and the REVAFTER deletion, FILENAME can be recovered in several ways… To just print the file contents to stdout: svn cat FILENAME at REVBEFORE To revert the change, re-adding the file to the working copy: svn merge -R REVAFTER:REVBEFORE FILENAME To resurrect the file out of history, re-adding it to the working copy: svn copy FILENAME at REVBEFORE FILENAME The last two will be equivalent for a single file deletion. The former is more general, though; it can revert an entire change, not just resurrect a file. — Gordon
How hard would it be to compile this pass and add it to the passes that opt can run? Is this something I should be able to do relatively quickly? What was the name of the file(s) that implemented the pass? Thanks, Ben On 7/3/07, Chris Lattner <sabre at nondot.org> wrote:> On Tue, 3 Jul 2007, Anton Korobeynikov wrote: > >> We used to have a 'lowerconstantexpr' pass in transforms/scalar. I don't > >> know how to see deleted files in svn though. > > They should be "seen" in the certain revision, before they were deleted. > > How can you see these in viewcv? > > -Chris > > -- > http://nondot.org/sabre/ > http://llvm.org/ > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >
On 03 Jul 2007, at 22:59, Chris Lattner wrote:> On Tue, 3 Jul 2007, Anton Korobeynikov wrote: >> They should be "seen" in the certain revision, before they were >> deleted. > > How can you see these in viewcv?Add ?rev=XXXX as parameter to your viewcvs.cgi url. I don't know where llvm's viewcvs is located, but e.g. for our compiler: http://www.freepascal.org/cgi-bin/viewcvs.cgi/?rev=2000 Jonas
On Tue, 3 Jul 2007, Anton Korobeynikov wrote:>> We used to have a 'lowerconstantexpr' pass in transforms/scalar. I don't >> know how to see deleted files in svn though. > They should be "seen" in the certain revision, before they were deleted.How can you see these in viewcv? -Chris -- http://nondot.org/sabre/ http://llvm.org/