summaryrefslogtreecommitdiffstats
path: root/llvm/tools
Commit message (Collapse)AuthorAgeFilesLines
* make the lexer unique strings it lexes instead of passing them back asChris Lattner2009-06-243-7/+29
| | | | | | std::strings. llvm-svn: 74036
* Start flushing out MCContext.Daniel Dunbar2009-06-231-0/+2
| | | | | | - Lives inside new library lib/MC (LLVMMC.a) llvm-svn: 74013
* Temporary copy-pasto to make examples compile.Mikhail Glushenkov2009-06-232-8/+70
| | | | llvm-svn: 74001
* 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. llvm-svn: 74000
* refactor a bunch of X86 specific stuff out to its own file.Chris Lattner2009-06-234-199/+234
| | | | llvm-svn: 73982
* CMake: remove support for llvm-config-generated dependencies in the buildDouglas Gregor2009-06-231-1/+3
| | | | llvm-svn: 73979
* implement a trivial binary expression parser, we can now parse all of ↵Chris Lattner2009-06-234-7/+84
| | | | | | 176.gcc.llc.s llvm-svn: 73950
* get a definition of strull on windows, thanks to Howard Su.Chris Lattner2009-06-231-0/+1
| | | | llvm-svn: 73929
* Recognize and handle ARM v7 target triples for Darwin.Bob Wilson2009-06-221-0/+5
| | | | llvm-svn: 73889
* Include cstdio to get EOF, needed with gcc-4.4.Duncan Sands2009-06-221-1/+2
| | | | llvm-svn: 73879
* process memory operands with a parenthesized expression for a displacement,Chris Lattner2009-06-221-2/+12
| | | | | | like "(4+5)(%eax)". llvm-svn: 73878
* 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 ^ llvm-svn: 73877
* implement parser support for '*' operands, as in "call *%eax".Chris Lattner2009-06-221-6/+13
| | | | llvm-svn: 73876
* implement memory operand parsing.Chris Lattner2009-06-222-14/+132
| | | | llvm-svn: 73875
* start implementing some simple operand parsing.Chris Lattner2009-06-222-15/+121
| | | | llvm-svn: 73867
* rename SourceMgr::PrintError to PrintMessage.Chris Lattner2009-06-215-16/+21
| | | | llvm-svn: 73861
* set up the top-level parsing loop.Chris Lattner2009-06-213-0/+59
| | | | llvm-svn: 73860
* 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). llvm-svn: 73859
* add string literals.Chris Lattner2009-06-213-2/+35
| | | | llvm-svn: 73858
* hopefully fix the build on linux.Chris Lattner2009-06-211-0/+1
| | | | llvm-svn: 73857
* implement enough of a lexer to get through Olden/health/Output/health.llc.sChris Lattner2009-06-213-10/+184
| | | | | | without errors. llvm-svn: 73855
* oh yeah, cmake needs to be told explicitly about new files :)Chris Lattner2009-06-211-0/+1
| | | | llvm-svn: 73849
* some baby steps.Chris Lattner2009-06-213-2/+201
| | | | llvm-svn: 73848
* start wiring up support for asm parsing.Chris Lattner2009-06-211-12/+45
| | | | llvm-svn: 73846
* fix build problem pointed out by John Thompson!Chris Lattner2009-06-181-1/+1
| | | | llvm-svn: 73739
* fix file headerChris Lattner2009-06-181-7/+3
| | | | llvm-svn: 73733
* Add a skeleton driver for new machine code level fun. llvm-mc is meantChris Lattner2009-06-185-1/+86
| | | | | | | to be a test driver of other components in the system, which will develop over time. llvm-svn: 73732
* switch to using llvm/Target/TargetSelect.hChris Lattner2009-06-173-25/+12
| | | | llvm-svn: 73611
* Fix libLTO by #include'ing the initializers for all targets and all asmNick Lewycky2009-06-171-9/+11
| | | | | | | | printers. While I'm here, alphabetize. llvm-svn: 73606
* Another small documentation update.Mikhail Glushenkov2009-06-172-12/+13
| | | | llvm-svn: 73596
* Use Doug's new LLVM_NATIVE_ARCH macro in config.h to link in the nativeChris Lattner2009-06-171-0/+21
| | | | | | target so that the JIT works in LLI, not just the interpreter. llvm-svn: 73595
* Remove support for building LLVM libraries into "relinked" Chris Lattner2009-06-161-2/+2
| | | | | | | | | | object files. Now we always build LLVM libraries into archives (.a files). This makes the 'make' build work more like the cmake build, among other things. Doing this exposed some latent circular library dependencies, so I think that llvm-config wasn't quite right for .o files anyway. llvm-svn: 73579
* Introduce new headers whose inclusion forces linking andDouglas Gregor2009-06-161-0/+2
| | | | | | | | | initialization of all targets (InitializeAllTargets.h) or assembler printers (InitializeAllAsmPrinters.h). This is a step toward the elimination of relinked object files, so that we can build normal archives. llvm-svn: 73543
* Documentation update.Mikhail Glushenkov2009-06-162-22/+52
| | | | llvm-svn: 73448
* Remove the gcc= option. llvm-gcc uses only as=Rafael Espindola2009-06-151-12/+5
| | | | | | | | Look for as in the path. Doing it here instead of llvm-gcc because llvm-gcc has nothing as convenient as sys::Program::FindProgramByName. llvm-svn: 73383
* Bug fix:Rafael Espindola2009-06-091-1/+1
| | | | | | string::find returns string::npos if the substring is not found. llvm-svn: 73145
* A basic PIC16 toolchain driver.Mikhail Glushenkov2009-06-078-0/+287
| | | | | | Nice addition to the examples and also a starting point for Sanjiv to work on. llvm-svn: 73013
* Add option for specifying the path to assembler, "as". This overrides the pathNick Lewycky2009-06-071-0/+10
| | | | | | to gcc. llvm-svn: 73008
* Add new function attribute - noimplicitfloatDevang Patel2009-06-051-0/+7
| | | | | | | Update code generator to use this attribute and remove NoImplicitFloat target option. Update llc to set this attribute when -no-implicit-float command line option is used. llvm-svn: 72959
* Add new function attribute - noredzone. Devang Patel2009-06-041-1/+9
| | | | | | | Update code generator to use this attribute and remove DisableRedZone target option. Update llc to set this attribute when -disable-red-zone command line option is used. llvm-svn: 72894
* CMake: Use explicit dependencies for Xcode (as well as MSVC), to makeDouglas Gregor2009-06-041-3/+3
| | | | | | the CMake-generated Xcode project build properly. llvm-svn: 72883
* <rdar://problem/6944342> libLTO for darwin should add -static when assembling .sNick Kledzik2009-06-041-0/+4
| | | | llvm-svn: 72881
* <rdar://problem/6940611> libLTO.dylib needs to let linker specify path to ↵Nick Kledzik2009-06-044-11/+36
| | | | | | | | | | | assembler Add lto_codegen_set_assembler_path() API which allows the linker to specify the path to the assembler tool to run. When assembler is used (instead of compiler) different command line options are used. Add LTO_API_VERSION #define so clients (linkers) can conditionalize use of new APIs. llvm-svn: 72823
* <rdar://problem/6941517> C++ static constructors not preserved for static ↵Nick Kledzik2009-06-031-13/+14
| | | | | | | | executable using LTO Move setRelocationModel() to be called before TargetMachine is instantiated. llvm-svn: 72816
* Change LTO to run the global opt pass twice.Daniel Dunbar2009-06-032-2/+1
| | | | | | | | | | | | | | | | | | | | | - This matches llvm-ld. It took a bit of archeology to figure out what the right thing to do was (whether this was intentionally added or intentionally removed). My final conclusion is that Chris added this intentionally here: http://llvm.org/viewvc/llvm-project?view=rev&revision=16913 but the changes weren't propogated to llvm-ld until here: http://llvm.org/viewvc/llvm-project?view=rev&revision=34058 which was after lto.cpp had been cloned off (of llvm-ld), here: http://llvm.org/viewvc/llvm-project?view=rev&revision=29494 From the commit message, it looks like the motivation for running global opt again is because we ran it prior to inlining. Based on that I updated the comment and also only run the pass if we actually ran the inliner. Chris, please review. llvm-svn: 72811
* Add createStandardLTOPasses to StandardPasses.h, and move lto and llvm-ld over.Daniel Dunbar2009-06-032-119/+9
| | | | | | | - I know it sounds crazy, but I think all the pass lists are now coalesced into StandardPasses.h. llvm-svn: 72805
* Switch opt to using StandardPasses.hDaniel Dunbar2009-06-031-126/+21
| | | | | | - No functionality change, but please check if you don't believe me. llvm-svn: 72789
* CMake: Implements and documents option LLVM_ENABLE_ASSERTS.Oscar Fuentes2009-06-031-1/+0
| | | | llvm-svn: 72774
* update comments about .objc_ symbols being generatedNick Kledzik2009-06-011-2/+20
| | | | llvm-svn: 72708
* <rdar://problem/6927148> libLTO needs to handle i386 magic objc class symbolsNick Kledzik2009-06-012-18/+152
| | | | | | | Parse __OBJC data structures and synthesize magic .objc_ symbols. Also, alter mangler so that objc method names are readable. llvm-svn: 72700
OpenPOWER on IntegriCloud