summaryrefslogtreecommitdiffstats
path: root/llvm/utils
Commit message (Collapse)AuthorAgeFilesLines
* Rename the 'Attributes' class to 'Attribute'. It's going to represent a ↵Bill Wendling2012-12-191-6/+6
| | | | | | single attribute in the future. llvm-svn: 170502
* Fix grammar-o.Bill Wendling2012-12-111-1/+1
| | | | llvm-svn: 169798
* Fix PR14568: Avoid the DFA packetizer from making an invalid readAnshuman Dasgupta2012-12-101-1/+10
| | | | | | | | | | beyond array bounds. No test case since I cannot reproduce an ICE with this bug. According to Carlos -- the bug reporter -- a segfault occurs only when LLVM is compiled with a specific version of GCC. llvm-svn: 169783
* s/AttrListPtr/AttributeSet/g to better label what this class is going to be ↵Bill Wendling2012-12-071-5/+5
| | | | | | in the near future. llvm-svn: 169651
* unittest/googletest/Makefile: Unbreak out-of-tree build.NAKAMURA Takumi2012-12-071-1/+1
| | | | | | | - Use SOURCES instead of Source. See Makefile.rules and MakefileGuide.html. - Don't assume the current directory. $(wildcard *.cc) doesn't match anything on corresponding build directory. llvm-svn: 169568
* Try to unbreak makefile build by excluding gtest-all.cc sourceAlexey Samsonov2012-12-061-0/+2
| | | | llvm-svn: 169564
* Modify the LLVM checkout of googletest:Alexey Samsonov2012-12-063-1/+59
| | | | | | | | | | | 1) don't delete gtest-all.cc (which is used to gather all gtest source files in a single file) 2) make including LLVMSupport headers optional (on by default). Sanitizer tools may want to use their own versions of googletest compiled with specific flags, instead of the common googletest library used for all other LLVM/Clang unittests. llvm-svn: 169559
* PR10867: Analogue of r169441 for when using external 'sh'. And actually run ↵Richard Smith2012-12-051-1/+1
| | | | | | the test! llvm-svn: 169446
* PR10867. lit would interpretRichard Smith2012-12-051-5/+10
| | | | | | | | | | | RUN: a RUN: b || true as "a && (b || true)" in Tcl mode, and as "(a && b) || true" in sh mode. Everyone seems to (quite reasonably) write tests assuming the Tcl behavior, so use that in sh mode too. llvm-svn: 169441
* RegisterPresssureTracker: Track live physical register by unit.Andrew Trick2012-12-051-2/+6
| | | | | | | | This is much simpler to reason about, more efficient, and fixes some corner cases involving implicit super-register defs. Fixed rdar://12797931. llvm-svn: 169425
* RegisterPressure API. Add support for physical register units.Andrew Trick2012-12-053-11/+115
| | | | | | | | | | | | | At build-time register pressure was always computed in terms of register units. But the compile-time API was expressed in terms of register classes because it was intended for virtual registers (and physical register units weren't yet used anywhere in codegen). Now that the codegen uses physreg units consistently, prepare for tracking register pressure also in terms of live units, not live registers. llvm-svn: 169360
* Copy clang/Driver/<Option parsing stuff> to llvm.Michael J. Spencer2012-12-054-1/+276
| | | | llvm-svn: 169344
* KillTheDoctor.cpp: Restore Win32 SDK headers before r169251.NAKAMURA Takumi2012-12-041-3/+3
| | | | llvm-svn: 169255
* Sort the #include lines for utils/...Chandler Carruth2012-12-0439-91/+79
| | | | | | | I've tried to find main moudle headers where possible, but the TableGen stuff may warrant someone else looking at it. llvm-svn: 169251
* Teach the include sorter to quickly skip files with an extension thatChandler Carruth2012-12-041-1/+5
| | | | | | | | doesn't look like it will have C++ code in it. Suggestions on a better heuristic are welcome. llvm-svn: 169248
* Teach the include sorter to skip files under test trees and under INPUTSChandler Carruth2012-12-041-0/+5
| | | | | | | trees. This allows running the input sorter on the entire clang repository cleanly now. llvm-svn: 169247
* Teach the include sorting script about the gtest headers; sort them withChandler Carruth2012-12-041-1/+1
| | | | | | the system headers. llvm-svn: 169242
* Address review comments from Matt on the sort_includes.py script.Chandler Carruth2012-12-041-10/+9
| | | | | | | | | | | | | | | 1) Teach it to handle files with #include on the first line -- these do actually exist in LLVM. 2) Support llvm-c and clang-c include projects. 3) Nuke some stail imports. 4) Switch to using os.path to split the file extension off. 5) Remove debugging leftovers. 6) Add docstring (a really puny one) for the sort function. I'm continuing te avoid stripping the whitespace on the RHS to preserve whatever newline characters happen to be in the original file. llvm-svn: 169222
* Teach the include sorter to not choke on include guards. ;]Chandler Carruth2012-12-031-1/+1
| | | | | | | Kind of important when prepping the include/... tree version of the sort changes. llvm-svn: 169132
* Add a completely hack-ish tool to sort includes according to the codingChandler Carruth2012-12-031-0/+79
| | | | | | | | | | | | | | | standards. I am a terrible Python programmer. Patches more the welcome. Please tell me how this should look if it should look differently. It's just a tiny little script so it didn't make sense to go through pre-commit review, especially as someone who actually knows python may want to just rip it apart and do it The Right Way. I will be preparing a commit shortly that uses this script to canonicalize *all* of the #include lines in LLVM. Really, all of them. llvm-svn: 169125
* Remove 'deplibs' keyword, since it's no longer used.Bill Wendling2012-12-031-1/+1
| | | | llvm-svn: 169116
* Bring vim keyword lists up to date.Benjamin Kramer2012-12-021-36/+33
| | | | llvm-svn: 169110
* Fix a bug in FileCheck that wouldn't let define variables as follows:Eli Bendersky2012-12-021-4/+47
| | | | | | | | | | | | ; CHECK: [[VAR:[a-z]]] The problem was that to find the end of the regex var definition, it was simplistically looking for the next ]] and finding the incorrect one. A better approach is to count nesting of brackets (taking escaping into account). This way the brackets that are part of the regex can be discovered and skipped properly, and the ]] ending is detected in the right place. llvm-svn: 169109
* Support referencing variables defined on the same line.Eli Bendersky2012-12-011-16/+40
| | | | | | | See http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20121126/157198.html and related discussions. llvm-svn: 169101
* Update the emacs mode to recognize fadd, fsum, fmul, fdiv, frem, fcmp, icmpMichael Ilseman2012-12-011-3/+4
| | | | llvm-svn: 169064
* Vim mode updated to recognize fast-math flagsMichael Ilseman2012-11-301-1/+1
| | | | llvm-svn: 169055
* lit: Add a simple test suite for checking test runner parallelism.Daniel Dunbar2012-11-301-0/+23
| | | | llvm-svn: 169038
* Clean up whitespace and add commentsEli Bendersky2012-11-301-7/+8
| | | | llvm-svn: 169002
* Make FileCheck return 2 in case of an error as documented,Eli Bendersky2012-11-301-2/+2
| | | | | | instead of 1 or true (?!) llvm-svn: 169001
* Add an MCPhysReg typedef to replace naked uint16_t.Jakob Stoklund Olesen2012-11-291-7/+7
| | | | | | Use this type for arrays of physical registers. llvm-svn: 168850
* Remove all references to TargetInstrInfoImpl.Jakob Stoklund Olesen2012-11-281-2/+2
| | | | | | This class has been merged into its super-class TargetInstrInfo. llvm-svn: 168760
* lit: Bump the version to .3.Daniel Dunbar2012-11-281-1/+1
| | | | llvm-svn: 168750
* Remove unused internal linkage variable.Richard Smith2012-11-271-2/+0
| | | | llvm-svn: 168729
* Generalize matching of add_executable to add_XXX_executable.Ted Kremenek2012-11-221-1/+1
| | | | llvm-svn: 168490
* Make the AttrListPtr object a part of the LLVMContext.Bill Wendling2012-11-201-1/+1
| | | | | | | | | When code deletes the context, the AttributeImpls that the AttrListPtr points to are now invalid. Therefore, instead of keeping a separate managed static for the AttrListPtrs that's reference counted, move it into the LLVMContext and delete it when deleting the AttributeImpls. llvm-svn: 168354
* really fix permissionsPawel Wodnicki2012-11-171-0/+0
| | | | llvm-svn: 168256
* fix permissionsPawel Wodnicki2012-11-171-1/+1
| | | | llvm-svn: 168255
* adding whose code is it anywa toolsPawel Wodnicki2012-11-171-0/+125
| | | | llvm-svn: 168254
* Remove hard coded registers in ARM ldrexd and strexd instructionsWeiming Zhao2012-11-161-0/+1
| | | | | | | | | This patch replaces the hard coded GPR pair [R0, R1] of Intrinsic:arm_ldrexd and [R2, R3] of Intrinsic:arm_strexd with even/odd GPRPair reg class. Similar to the lowering of atomic_64 operation. llvm-svn: 168207
* FileCheck: remove useless 'continue' at the end of a 'while(){}' loop.Dmitri Gribenko2012-11-151-1/+0
| | | | llvm-svn: 168048
* Remove the CellSPU port.Eric Christopher2012-11-142-2/+2
| | | | | | Approved by Chris Lattner. llvm-svn: 167984
* Support for [[@LINE]], [[@LINE+<offset>]], [[@LINE-<offset>]] expressions inAlexander Kornienko2012-11-141-27/+94
| | | | | | FileCheck. llvm-svn: 167978
* Added %(line), %(line+<number>), %(line-<number>) substitutions to litAlexander Kornienko2012-11-141-0/+11
| | | | llvm-svn: 167971
* Simplify the SmallVector pretty printer for LLDB a bit and make it work with ↵Benjamin Kramer2012-11-101-15/+9
| | | | | | reference types. llvm-svn: 167674
* Fix issue with invalid flat operand numberEvandro Menezes2012-11-091-3/+1
| | | | | | | Avoid iterating over list of operands beyond the number of operands in it. PS: this fixes issue with revision #167634. llvm-svn: 167635
* Fix issue with invalid flat operand numberEvandro Menezes2012-11-091-1/+6
| | | | | | Avoid iterating over list of operands beyond the number of operands in it. llvm-svn: 167634
* Add support of RTM from TSX extensionMichael Liao2012-11-081-8/+9
| | | | | | | | - Add RTM code generation support throught 3 X86 intrinsics: xbegin()/xend() to start/end a transaction region, and xabort() to abort a tranaction region llvm-svn: 167573
* Fix a build problem with xlc. The error message wasRafael Espindola2012-11-022-2/+2
| | | | | | | | | "../llvm-git/utils/TableGen/CodeGenSchedule.cpp", line 1594.12: 1540-0218 (S) The call does not match any parameter list for "operator+". "../llvm-git/include/llvm/ADT/STLExtras.h", line 130.1: 1540-1283 (I) "template <class _Iterator, class Func> llvm::operator+(mapped_iterator<_Iterator,Func>::difference_type, const mapped_iterator<_Iterator,Func> &)" is not a viable candidate. Patch by Kai. llvm-svn: 167311
* Generate a table-driven version of TRI::composeSubRegIndices().Jakob Stoklund Olesen2012-11-011-26/+102
| | | | | | | | | | Explicitly allow composition of null sub-register indices, and handle that common case in an inlinable stub. Use a compressed table implementation instead of the previous nested switches which generated pretty bad code. llvm-svn: 167190
* Don't return false when the function's return type is a pointer.Kaelyn Uhrain2012-10-251-2/+2
| | | | llvm-svn: 166719
OpenPOWER on IntegriCloud