summaryrefslogtreecommitdiffstats
path: root/llvm/tools
Commit message (Collapse)AuthorAgeFilesLines
* Make llvm-bcanalyzer percentages more readable.Daniel Dunbar2009-09-251-5/+7
| | | | llvm-svn: 82772
* Strip trailing whitespace.Daniel Dunbar2009-09-251-60/+60
| | | | llvm-svn: 82771
* Print INST_INBOUNDS_GEP rather than UnknownCode30.Duncan Sands2009-09-251-47/+49
| | | | | | Likewise for constant inbounds GEP. llvm-svn: 82763
* pretty mechanical changes to match coding guidelines (blessed by sabre on IRC)Gabor Greif2009-09-231-41/+41
| | | | llvm-svn: 82603
* Fix llvm-config --src-root and --obj-root for CMake builds.Daniel Dunbar2009-09-221-0/+2
| | | | llvm-svn: 82529
* llvm-config: Remove unused variables.Daniel Dunbar2009-09-221-11/+0
| | | | llvm-svn: 82528
* Add an intel syntax MCInstPrinter implementation. You can nowChris Lattner2009-09-201-3/+5
| | | | | | transcode from AT&T to intel syntax with "llvm-mc foo.s -output-asm-variant=1" llvm-svn: 82385
* Remove the default value for ConstantStruct::get's isPacked parameter andNick Lewycky2009-09-191-2/+2
| | | | | | update the code which was broken by this. llvm-svn: 82327
* Write and read metadata attachments.Devang Patel2009-09-181-9/+16
| | | | llvm-svn: 82259
* Now that llc can read .ll files directly, teach it to recognize .ll asDan Gohman2009-09-161-1/+3
| | | | | | | an extension, so that the default output filename for foo.ll is foo.s, not foo.ll.s llvm-svn: 82071
* Fixed some problems with the logic of parsing line comments by addingKevin Enderby2009-09-162-9/+13
| | | | | | | isAtStartOfComment and using that instead in two places where a loop to check if the char was in MAI.getCommentString(). llvm-svn: 82059
* Make cmake generated llvm-config output correct JIT backend for non X86 targets.Xerxes Ranby2009-09-161-1/+1
| | | | llvm-svn: 82049
* use an accessor to simplify code.Chris Lattner2009-09-161-5/+2
| | | | llvm-svn: 81997
* Give llvm-link a -S option.Dan Gohman2009-09-151-3/+9
| | | | llvm-svn: 81859
* Don't bother using a PassManager just to print a Module.Dan Gohman2009-09-151-7/+2
| | | | llvm-svn: 81858
* Change MCAsmStreamer to take an MCInstPrinter instead of a Chris Lattner2009-09-141-5/+8
| | | | | | | | | | | full AsmPrinter, and change TargetRegistry to keep track of registered MCInstPrinters. llvm-mc is still linking in the entire target foo to get the code emitter stuff, but this is an important step in the right direction. llvm-svn: 81754
* Convert llvm-link to IRReader.Dan Gohman2009-09-123-16/+13
| | | | llvm-svn: 81632
* De-bork CMake build. llvm-extract depends on asmparserDouglas Gregor2009-09-111-1/+1
| | | | llvm-svn: 81574
* Fix llvm-extract's "writing bitcode to a terminal" warning, which wasn'tDan Gohman2009-09-115-34/+37
| | | | | | | | | | | | | | | working. To support this, add an is_displayed() function to raw_ostream, and generalize Process::StandardOutIsDisplayed and friends in order to support it. Also, call RemoveFileOnSignal before creating a file instead of after, so that the file isn't left behind if the program is interrupted between when the file is created and RemoveFileOnSignal is called. While here, add a -S to llvm-extract and port it to IRReader so that it supports assembly input. llvm-svn: 81568
* Added the ParseInstruction() hook for target specific assembler directives soKevin Enderby2009-09-102-2/+6
| | | | | | | | that things like .word can be parsed as target specific. Moved parsing .word out of AsmParser.cpp into X86AsmParser.cpp as it is 2 bytes on X86 and 4 bytes for other targets that support the .word directive. llvm-svn: 81461
* Allow llvmc to take .bc files as input.Mikhail Glushenkov2009-09-101-0/+1
| | | | llvm-svn: 81452
* fix leakage of ModuleNuno Lopes2009-09-101-4/+3
| | | | llvm-svn: 81445
* MC: Give target specific parsers access to the MCStreamer.Daniel Dunbar2009-09-101-0/+2
| | | | llvm-svn: 81416
* Add -output-prefix option to bugpoint (to change the default output name).Daniel Dunbar2009-09-074-11/+23
| | | | llvm-svn: 81154
* Fix an integer truncation noticed by MSVC.Benjamin Kramer2009-09-061-1/+1
| | | | llvm-svn: 81109
* opt: Add -S option to print output as LLVM assembly.Daniel Dunbar2009-09-051-5/+14
| | | | llvm-svn: 81082
* Added AsmToken enum constants to MCAsmLexer.h for '[', ']', '{', and '}' inKevin Enderby2009-09-041-0/+4
| | | | | | | preparation of supporting other targets. Then changed the lexer to parse these as tokens. llvm-svn: 81050
* Added the AsmToken::Hash enum constant to MCAsmLexer.h in preparation ofKevin Enderby2009-09-044-25/+48
| | | | | | | | supporting other targets. Changed the code to pass MCAsmInfo to the parser and the lexer. Then changed the lexer to use CommentString from MCAsmInfo instead of a literal '#' character. llvm-svn: 81046
* Removed the non-target independent AsmToken::Register enum constantKevin Enderby2009-09-033-16/+1
| | | | | | | | | | from MCAsmLexer.h in preparation of supporting other targets. Changed the X86AsmParser code to reflect this by removing AsmLexer::LexPercent and looking for AsmToken::Percent when parsing in places that used AsmToken::Register. Then changed X86ATTAsmParser::ParseRegister to parse out registers as an AsmToken::Percent followed by an AsmToken::Identifier. llvm-svn: 80929
* Make bugpoint use ParseIRFile instead of doing the same thing manually.Dan Gohman2009-09-031-12/+5
| | | | llvm-svn: 80927
* Use IRReader.h in opt, to support reading of LLVM Assembly files directly.Dan Gohman2009-09-033-13/+6
| | | | llvm-svn: 80922
* TAI -> MAIChris Lattner2009-09-031-4/+4
| | | | llvm-svn: 80899
* Tweak comment.Daniel Dunbar2009-09-031-1/+1
| | | | llvm-svn: 80891
* Unbreak my CMake build. Say you'll link again.Douglas Gregor2009-09-021-1/+1
| | | | llvm-svn: 80842
* Switch llc from ParseBitcodeFile to ParseIRFile. This lets llcDan Gohman2009-09-022-9/+5
| | | | | | transparently read either LLVM Assembly or LLVM Bitcode files. llvm-svn: 80829
* llvm-mc: Pass values to MCStreamer as MCExprs, not MCValues.Daniel Dunbar2009-08-311-27/+10
| | | | llvm-svn: 80578
* llvm-mc: Simplify EmitAssignment ('.set' is identical to '=').Daniel Dunbar2009-08-312-5/+5
| | | | llvm-svn: 80577
* llvm-mc: Remove MCAsmParser::Parse[Paren]RelocatableExpression.Daniel Dunbar2009-08-312-37/+27
| | | | llvm-svn: 80576
* llvm-mc: Add MCAsmParser::Parse[Paren]Expression forms which return an MCExpr.Daniel Dunbar2009-08-312-0/+10
| | | | llvm-svn: 80574
* llvm-mc: Add MCAsmParser::getContext.Daniel Dunbar2009-08-312-18/+13
| | | | llvm-svn: 80571
* llvm-mc: Switch MCExpr construction to using static member functions, and ↵Daniel Dunbar2009-08-312-19/+19
| | | | | | taking the MCContext (which now owns all MCExprs). llvm-svn: 80569
* llvm-mc: Move AsmExpr into MC lib (as MCExpr).Daniel Dunbar2009-08-315-384/+42
| | | | llvm-svn: 80567
* only print the override triple if it exists!Chris Lattner2009-08-311-2/+3
| | | | llvm-svn: 80534
* Fix some nasty callgraph dangling pointer problems in Chris Lattner2009-08-311-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | argpromotion and structretpromote. Basically, when replacing a function, they used the 'changeFunction' api which changes the entry in the function map (and steals/reuses the callgraph node). This has some interesting effects: first, the problem is that it doesn't update the "callee" edges in any callees of the function in the call graph. Second, this covers for a major problem in all the CGSCC pass stuff, which is that it is completely broken when functions are deleted if they *don't* reuse a CGN. (there is a cute little fixme about this though :). This patch changes the protocol that CGSCC passes must obey: now the CGSCC pass manager copies the SCC and preincrements its iterator to avoid passes invalidating it. This allows CGSCC passes to mutate the current SCC. However multiple passes may be run on that SCC, so if passes do this, they are now required to *update* the SCC to be current when they return. Other less interesting parts of this patch are that it makes passes update the CG more directly, eliminates changeFunction, and requires clients of replaceCallSite to specify the new callee CGN if they are changing it. llvm-svn: 80527
* llvm-mc: MCStreamer cleanups. - Remove EmitLocalSymbol, this is unsupported ↵Daniel Dunbar2009-08-301-9/+12
| | | | | | | | for now. - Switch Emit{CommonSymbol,Zerofill} to take alignment in bytes (for consistency). llvm-svn: 80484
* Since all std::cout is gone, also remove iostream include.Andreas Neustifter2009-08-281-1/+0
| | | | | | (See http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090824/085620.html) llvm-svn: 80349
* llvm-mc: Emit .lcomm as .zerofill.Daniel Dunbar2009-08-281-1/+7
| | | | llvm-svn: 80343
* llvm-mc: Unique zero fill sections.Daniel Dunbar2009-08-281-17/+9
| | | | llvm-svn: 80342
* Revert r80305, I forgot a dependent change.Daniel Dunbar2009-08-271-9/+17
| | | | | | | --- Reverse-merging r80305 into '.': U tools/llvm-mc/AsmParser.cpp llvm-svn: 80309
* llvm-mc: Unique sections in .zerofill.Daniel Dunbar2009-08-271-17/+9
| | | | llvm-svn: 80305
OpenPOWER on IntegriCloud