summaryrefslogtreecommitdiffstats
path: root/llvm/utils
Commit message (Collapse)AuthorAgeFilesLines
...
* Suppress compiler warning.Daniel Dunbar2009-12-231-0/+2
| | | | llvm-svn: 91959
* Fixes to the X86 disassembler:Sean Callanan2009-12-221-3/+3
| | | | | | | | Made LEA memory operands emit only 4 MCInst operands. Made the scale operand equal 1 for instructions that have no SIB byte. llvm-svn: 91919
* Fix a bug in !subst where TableGen would go and resubstitute text it hadDavid Greene2009-12-211-1/+3
| | | | | | | just substituted. This could cause infinite looping in certain pathological cases. llvm-svn: 91843
* .llx is no more.Chris Lattner2009-12-192-2/+1
| | | | llvm-svn: 91784
* fix build and while at it remove a redudant includeNuno Lopes2009-12-192-2/+1
| | | | llvm-svn: 91774
* More bzero -> memset that I missed.Daniel Dunbar2009-12-192-13/+13
| | | | llvm-svn: 91757
* Add missing newlines at EOF (for clang++).Daniel Dunbar2009-12-192-2/+2
| | | | llvm-svn: 91756
* Table-driven disassembler for the X86 architecture (16-, 32-, and 64-bit Sean Callanan2009-12-198-0/+2425
| | | | | | | | | | | | | | | | | | | | incarnations), integrated into the MC framework. The disassembler is table-driven, using a custom TableGen backend to generate hierarchical tables optimized for fast decode. The disassembler consumes MemoryObjects and produces arrays of MCInsts, adhering to the abstract base class MCDisassembler (llvm/MC/MCDisassembler.h). The disassembler is documented in detail in - lib/Target/X86/Disassembler/X86Disassembler.cpp (disassembler runtime) - utils/TableGen/DisassemblerEmitter.cpp (table emitter) You can test the disassembler by running llvm-mc -disassemble for i386 or x86_64 targets. Please let me know if you encounter any problems with it. llvm-svn: 91749
* Fix a comment.Dan Gohman2009-12-191-2/+2
| | | | llvm-svn: 91741
* Fix an issue in googletest where a name was used before it was defined.Eli Friedman2009-12-181-1/+6
| | | | llvm-svn: 91718
* Make 'set_option' work with list options.Mikhail Glushenkov2009-12-181-10/+23
| | | | | | This works now: (set_option "list_opt", ["val_1", "val_2", "val_3"]) llvm-svn: 91679
* Add a 'set_option' action for use in OptionPreprocessor.Mikhail Glushenkov2009-12-171-16/+64
| | | | llvm-svn: 91594
* Refactoring, no functionality change.Mikhail Glushenkov2009-12-171-120/+149
| | | | llvm-svn: 91593
* s/TokenizeCmdline/TokenizeCmdLine/Mikhail Glushenkov2009-12-171-14/+13
| | | | llvm-svn: 91592
* Add @earlyclobber TableGen constraintJim Grosbach2009-12-161-4/+24
| | | | llvm-svn: 91554
* Remove superfluous 'extern' variable that was causing a warning with clang.Bill Wendling2009-12-161-1/+1
| | | | llvm-svn: 91552
* Some command lines don't like numbers with leading zeros. Remove them.Bill Wendling2009-12-151-1/+5
| | | | llvm-svn: 91463
* lit: Improve error when gtest discovery fails.Daniel Dunbar2009-12-151-3/+8
| | | | llvm-svn: 91458
* Revert 90628, which was incorrect.Dan Gohman2009-12-152-8/+10
| | | | llvm-svn: 91448
* whitespaceJim Grosbach2009-12-151-26/+26
| | | | llvm-svn: 91442
* Convert llvmc tests to FileCheck.Mikhail Glushenkov2009-12-151-1/+1
| | | | llvm-svn: 91420
* Support hook invocation from 'append_cmd'.Mikhail Glushenkov2009-12-151-37/+62
| | | | llvm-svn: 91419
* Validate the generated C++ code in llvmc tests.Mikhail Glushenkov2009-12-151-19/+20
| | | | | | | | | | Checks that the code generated by 'tblgen --emit-llvmc' can be actually compiled. Also fixes two bugs found in this way: - forward_transformed_value didn't work with non-list arguments - cl::ZeroOrOne is now called cl::Optional llvm-svn: 91404
* Allow $CALL(Hook, '$INFILE') for non-join tools.Mikhail Glushenkov2009-12-151-37/+74
| | | | llvm-svn: 91402
* NNT: Make sure stderr for build commands goes to log file, as intended but ↵Daniel Dunbar2009-12-151-4/+4
| | | | | | misdirected. llvm-svn: 91379
* NNT: Use [e]grep -a when scanning logs, its possibly they will have non-textDaniel Dunbar2009-12-141-5/+5
| | | | | | | characters in them, in which case the grep will just return 'Binary file matches' and the whole thing falls over. llvm-svn: 91302
* NNT: Always create the -sentdata.txt file.Daniel Dunbar2009-12-141-4/+11
| | | | llvm-svn: 91301
* Remove unneeded ';' and a class/struct mismatch (noticed by clang).Daniel Dunbar2009-12-093-3/+3
| | | | llvm-svn: 90934
* lit: Prevent crash-on-invalid (when run on directory which has no test suite).Daniel Dunbar2009-12-081-1/+1
| | | | llvm-svn: 90871
* Simplify a bit.Mikhail Glushenkov2009-12-071-13/+5
| | | | llvm-svn: 90785
* Throw 'const char*' instead of 'std::string'.Mikhail Glushenkov2009-12-071-11/+10
| | | | llvm-svn: 90784
* Deprecate 'unpack_values'.Mikhail Glushenkov2009-12-071-45/+41
| | | | | | Use 'forward_values' + 'comma_separated' instead. llvm-svn: 90774
* Implement 'forward_value' and 'forward_transformed_value'.Mikhail Glushenkov2009-12-071-28/+143
| | | | llvm-svn: 90770
* Refactoring, no functionality change.Mikhail Glushenkov2009-12-071-98/+163
| | | | llvm-svn: 90764
* Minor code simplification.Dan Gohman2009-12-052-10/+8
| | | | llvm-svn: 90628
* OptParser: Emit HelpText field for option groups.Daniel Dunbar2009-12-041-1/+12
| | | | llvm-svn: 90599
* Forward -save-temps to llvm-gcc.Mikhail Glushenkov2009-12-011-0/+3
| | | | llvm-svn: 90214
* Add a soft link so that in an apple style build we can find libLTO.dylib.Eric Christopher2009-12-011-0/+8
| | | | llvm-svn: 90189
* Fix FileCheck crash when fuzzy scanning starting at the end of the file.Daniel Dunbar2009-11-291-1/+1
| | | | llvm-svn: 90065
* Sketch TableGen disassembler emitter, based on patch by Sean Callanan.Daniel Dunbar2009-11-254-0/+66
| | | | llvm-svn: 89833
* Delete some dead and non-obvious code.Dan Gohman2009-11-242-55/+0
| | | | llvm-svn: 89729
* Remove ISD::DEBUG_LOC and ISD::DBG_LABEL, which are no longer used.Dan Gohman2009-11-231-1/+0
| | | | | | | | Note that "hasDotLocAndDotFile"-style debug info was already broken; people wanting this functionality should implement it in the AsmPrinter/DwarfWriter code. llvm-svn: 89711
* FileCheck, PR5239: Try to find the intended match on failures, but looking for aDaniel Dunbar2009-11-221-4/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | good nearby fuzzy match. Frequently the input is nearly correct, and just showing the user the a nearby sensible match is enough to diagnose the problem. - The "fuzzyness" is pretty simple and arbitrary, but worked on my three test cases. If you encounter problems, or places you think FileCheck should have guessed but didn't, please add test cases to PR5239. For example, previously FileCheck would report this: -- t.cpp:21:55: error: expected string not found in input // CHECK: define void @_Z2f25f2_s1([[i64_i64_ty]] %a0) ^ <stdin>:19:30: note: scanning from here define void @_Z2f15f1_s1(%1) nounwind { ^ <stdin>:19:30: note: with variable "i64_i64_ty" equal to "%0" -- and now it also reports this: -- <stdin>:27:1: note: possible intended match here define void @_Z2f25f2_s1(%0) nounwind { ^ -- which makes it clear that the CHECK just has an extra ' %a0' in it, without having to check the input. llvm-svn: 89631
* FileCheck: When a string using variable references fails to match, printDaniel Dunbar2009-11-221-4/+50
| | | | | | | additional information about the current definitions of the variables used in the string. llvm-svn: 89628
* Allow '_' in FileCheck variable names, it is nice to have at least oneDaniel Dunbar2009-11-221-2/+3
| | | | | | | separate character. - Chris, OK? llvm-svn: 89626
* Fix whitespace.Bob Wilson2009-11-223-288/+267
| | | | llvm-svn: 89582
* Fix pr5470. Tablegen handles template arguments by temporarily setting theirBob Wilson2009-11-221-8/+20
| | | | | | | | | | | values, resolving references to them, and then removing the definitions. If a template argument is set to an undefined value, we need to resolve references to that argument to an explicit undefined value. The current code leaves the reference to the template argument as it is, which causes an assertion failure later when the definition of the template argument is removed. llvm-svn: 89581
* Fix some spelling in comments.Bob Wilson2009-11-212-4/+4
| | | | llvm-svn: 89566
* Avoid a redundant assertion.Bob Wilson2009-11-211-2/+1
| | | | llvm-svn: 89565
* TableGen/OptParser: When ordering options, make "sentinel" options appear beforeDaniel Dunbar2009-11-191-3/+10
| | | | | | everything else. llvm-svn: 89368
OpenPOWER on IntegriCloud