aboutsummaryrefslogtreecommitdiffstats
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
...
* Suppress may-be-used-uninitialized warning.Daniel Dunbar2009-06-301-1/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74529 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix CMake buildDouglas Gregor2009-06-301-0/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74527 91177308-0d34-0410-b5e6-96231b3b80d8
* llvm-mc: Accept relocatable expressions for .org, assignments, .byte, etc.Daniel Dunbar2009-06-301-12/+16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74498 91177308-0d34-0410-b5e6-96231b3b80d8
* llvm-mc: Rewrite binary subtraction for relocatable expressions, we can't alwaysDaniel Dunbar2009-06-301-26/+33
| | | | | | | legally negate an MCValue. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74497 91177308-0d34-0410-b5e6-96231b3b80d8
* llvm-mc: Evaluation for relocatable expressions.Daniel Dunbar2009-06-304-40/+132
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74496 91177308-0d34-0410-b5e6-96231b3b80d8
* Normalize SourceMgr messages.Daniel Dunbar2009-06-305-13/+19
| | | | | | | | | | | | | - Don't print "Parsing" in front of every message. - Take additional "type" argument which is prepended to the message (with ": ") if given. - Update clients to print errors (warnings) as: <filename>:<line number>: error(warning): ... git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74489 91177308-0d34-0410-b5e6-96231b3b80d8
* llvm-mc: Parse symbol attribute directives.Daniel Dunbar2009-06-302-0/+60
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74487 91177308-0d34-0410-b5e6-96231b3b80d8
* Clang is now production quality (at least for C).Mikhail Glushenkov2009-06-301-3/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74484 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a way to access argv[0] in hooks.Mikhail Glushenkov2009-06-301-0/+22
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74483 91177308-0d34-0410-b5e6-96231b3b80d8
* llvm-mc: Parse .{,b,p2}align{,w,l} directives.Daniel Dunbar2009-06-292-2/+98
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74478 91177308-0d34-0410-b5e6-96231b3b80d8
* llvm-mc: Diagnose misuse (mix) of defined symbols and labels.Daniel Dunbar2009-06-291-6/+40
| | | | | | | | | | | | | | | | | | - For example, we diagnose errors on: -- a: a = 10 -- - For now we reject code like: -- .long a a = 10 -- which "as" accepts (on Darwin). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74476 91177308-0d34-0410-b5e6-96231b3b80d8
* llvm-mc: Recognize C++ style comments.Daniel Dunbar2009-06-291-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74463 91177308-0d34-0410-b5e6-96231b3b80d8
* llvm-mc: Recognize C++ style comments.Daniel Dunbar2009-06-291-5/+9
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74462 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix uninitialized variable warning.Daniel Dunbar2009-06-291-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74457 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't build LLVMC when configured with --disable-pic (it needs requires sharedDaniel Dunbar2009-06-291-2/+2
| | | | | | | module support to build). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74456 91177308-0d34-0410-b5e6-96231b3b80d8
* MC: Improve expression parsing and implement evaluation of absolute expressionsDaniel Dunbar2009-06-292-0/+249
| | | | | | | (missed files). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74450 91177308-0d34-0410-b5e6-96231b3b80d8
* MC: Improve expression parsing and implement evaluation of absolute expressions.Daniel Dunbar2009-06-295-56/+170
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74448 91177308-0d34-0410-b5e6-96231b3b80d8
* Indentation.Evan Cheng2009-06-262-9/+6
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74281 91177308-0d34-0410-b5e6-96231b3b80d8
* MC: Parse .org directives.Daniel Dunbar2009-06-252-1/+31
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74218 91177308-0d34-0410-b5e6-96231b3b80d8
* MC: Parse .set and assignments.Daniel Dunbar2009-06-254-3/+55
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74208 91177308-0d34-0410-b5e6-96231b3b80d8
* Update documentation.Mikhail Glushenkov2009-06-251-3/+6
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74191 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a JITEventListener interface that gets called back when a new function isJeffrey Yasskin2009-06-251-2/+5
| | | | | | | | | | emitted or the machine code for a function is freed. Chris mentioned that we may also want a notification when a stub is emitted, but that'll be a future change. I intend to use this to tell oprofile where functions are emitted and what lines correspond to what addresses. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74157 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove duplication.Mikhail Glushenkov2009-06-255-130/+4
| | | | | | Factor out common preprocessor-related bits to Makefile.rules. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74153 91177308-0d34-0410-b5e6-96231b3b80d8
* Basic .s parsing for .asci[iz], .fill, .space, {.byte, .short, ... }Daniel Dunbar2009-06-243-1/+157
| | | | | | | | - Includes some DG tests in test/MC/AsmParser, which are rather primitive since we don't have a -verify mode yet. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74139 91177308-0d34-0410-b5e6-96231b3b80d8
* Get rid of the global CFGOnly flag by threading a ShortNames parameters ↵Owen Anderson2009-06-241-1/+2
| | | | | | | | | through the GraphViz rendering code. Update other uses in the codebase for this change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74084 91177308-0d34-0410-b5e6-96231b3b80d8
* remove dead makefile flags.Chris Lattner2009-06-242-2/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74065 91177308-0d34-0410-b5e6-96231b3b80d8
* implement a bunch of synonyms for section switching.Chris Lattner2009-06-242-4/+115
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74062 91177308-0d34-0410-b5e6-96231b3b80d8
* add support for parsing and emitting .section directives. We can now parse Chris Lattner2009-06-242-1/+38
| | | | | | | | | | things like: .section __TEXT,__cstring,cstring_literals git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74058 91177308-0d34-0410-b5e6-96231b3b80d8
* add trivial support for passing label definitions through the MCStreamer.Chris Lattner2009-06-243-3/+11
| | | | | | | | This is suboptimal in several aspects, see the commented out assertion. I need to talk to Daniel about this. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74057 91177308-0d34-0410-b5e6-96231b3b80d8
* create an MCStreamer and provide it to AsmParser.Chris Lattner2009-06-244-4/+13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74039 91177308-0d34-0410-b5e6-96231b3b80d8
* make the lexer unique strings it lexes instead of passing them back asChris Lattner2009-06-243-7/+29
| | | | | | | std::strings. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74036 91177308-0d34-0410-b5e6-96231b3b80d8
* Start flushing out MCContext.Daniel Dunbar2009-06-231-0/+2
| | | | | | | - Lives inside new library lib/MC (LLVMMC.a) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74013 91177308-0d34-0410-b5e6-96231b3b80d8
* Temporary copy-pasto to make examples compile.Mikhail Glushenkov2009-06-232-8/+70
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74001 91177308-0d34-0410-b5e6-96231b3b80d8
* Make llvmc work again.Mikhail Glushenkov2009-06-231-2/+33
| | | | | | | | | | Chris recently broke llvmc with his Makefile changes (r75379). That patch made the global change .o -> .a, which caused built-in llvmc plugins to stop working since plugin initialization in llvmc is based on static variables not referenced from the main executable. This patch implements auto-generated forced references to the plugin libraries. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74000 91177308-0d34-0410-b5e6-96231b3b80d8
* refactor a bunch of X86 specific stuff out to its own file.Chris Lattner2009-06-234-199/+234
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73982 91177308-0d34-0410-b5e6-96231b3b80d8
* CMake: remove support for llvm-config-generated dependencies in the buildDouglas Gregor2009-06-231-1/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73979 91177308-0d34-0410-b5e6-96231b3b80d8
* implement a trivial binary expression parser, we can now parse all of ↵Chris Lattner2009-06-234-7/+84
| | | | | | 176.gcc.llc.s git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73950 91177308-0d34-0410-b5e6-96231b3b80d8
* get a definition of strull on windows, thanks to Howard Su.Chris Lattner2009-06-231-0/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73929 91177308-0d34-0410-b5e6-96231b3b80d8
* Recognize and handle ARM v7 target triples for Darwin.Bob Wilson2009-06-221-0/+5
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73889 91177308-0d34-0410-b5e6-96231b3b80d8
* Include cstdio to get EOF, needed with gcc-4.4.Duncan Sands2009-06-221-1/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73879 91177308-0d34-0410-b5e6-96231b3b80d8
* process memory operands with a parenthesized expression for a displacement,Chris Lattner2009-06-221-2/+12
| | | | | | | | like "(4+5)(%eax)". git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73878 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement full support for parsing primary expressions. We can now parseChris Lattner2009-06-225-5/+42
| | | | | | | | | | | | | all of health and voronoi (ignoring directives). We only get 409 lines into 176.gcc though because we don't have binary operators yet: Parsing 176.gcc.llc.s:409: unexpected token in operand list movsbl _arityvec+1(,%edi,8), %eax ^ git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73877 91177308-0d34-0410-b5e6-96231b3b80d8
* implement parser support for '*' operands, as in "call *%eax".Chris Lattner2009-06-221-6/+13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73876 91177308-0d34-0410-b5e6-96231b3b80d8
* implement memory operand parsing.Chris Lattner2009-06-222-14/+132
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73875 91177308-0d34-0410-b5e6-96231b3b80d8
* start implementing some simple operand parsing.Chris Lattner2009-06-222-15/+121
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73867 91177308-0d34-0410-b5e6-96231b3b80d8
* rename SourceMgr::PrintError to PrintMessage.Chris Lattner2009-06-215-16/+21
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73861 91177308-0d34-0410-b5e6-96231b3b80d8
* set up the top-level parsing loop.Chris Lattner2009-06-213-0/+59
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73860 91177308-0d34-0410-b5e6-96231b3b80d8
* stub out parser for asm files. Change invariant on lexer to alwaysChris Lattner2009-06-215-14/+102
| | | | | | | | | print its error message when it returns an asmtok::Error token. Compute a proper error code for llvm-mc in 'lex' mode. Add new -as-lex option to enable lexing mode (vs parsing mode). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73859 91177308-0d34-0410-b5e6-96231b3b80d8
* add string literals.Chris Lattner2009-06-213-2/+35
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73858 91177308-0d34-0410-b5e6-96231b3b80d8
* hopefully fix the build on linux.Chris Lattner2009-06-211-0/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73857 91177308-0d34-0410-b5e6-96231b3b80d8