aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/IR/UseTest.cpp
AgeCommit message (Collapse)AuthorFilesLines
2015-02-15Format: Modernize using variadic templates.Benjamin Kramer1-4/+4
Introduces a subset of C++14 integer sequences in STLExtras. This is just enough to support unpacking a std::tuple into the arguments of snprintf, we can add more of it when it's actually needed. Also removes an ancient macro hack that leaks a macro into the global namespace. Clean up users that made use of the convenient hack. llvm-svn: 229337
2015-01-14[cleanup] Re-sort all the #include lines in LLVM usingChandler Carruth1-1/+1
utils/sort_includes.py. I clearly haven't done this in a while, so more changed than usual. This even uncovered a missing include from the InstrProf library that I've added. No functionality changed here, just mechanical cleanup of the include order. llvm-svn: 225974
2014-08-19Modernize the .ll parsing interface.Rafael Espindola1-2/+2
* Use StringRef instead of std::string& * Return a std::unique_ptr<Module> instead of taking an optional module to write to (was not really used). * Use current comment style. * Use current naming convention. llvm-svn: 215989
2014-08-01IR: Add Value::reverseUseList()Duncan P. N. Exon Smith1-0/+43
I'm going to use this to improve `verify-uselistorder`. Part of PR5680. llvm-svn: 214594
2014-07-26IR/UseTest.cpp: Avoid std::to_string() to appease mingw32 bot.NAKAMURA Takumi1-5/+10
llvm-svn: 213994
2014-07-24Fix r213824 on windowsDuncan P. N. Exon Smith1-0/+2
llvm-svn: 213866
2014-07-24IR: Add Value::sortUseList()Duncan P. N. Exon Smith1-0/+62
Add `Value::sortUseList()`, templated on the comparison function to use. The sort is an iterative merge sort that uses a binomial vector of already-merged lists to limit the size overhead to `O(1)`. This is part of PR5680. llvm-svn: 213824