summaryrefslogtreecommitdiffstats
path: root/llvm/tools
Commit message (Collapse)AuthorAgeFilesLines
* Privatize the StructType table, which unfortunately involves routing ↵Owen Anderson2009-08-051-1/+2
| | | | | | contexts through a number of APIs. llvm-svn: 78258
* Make block and function count available via ProfileInfo.Daniel Dunbar2009-08-051-4/+3
| | | | | | - Part of optimal static profiling patch sequence by Andreas Neustifter. llvm-svn: 78247
* Use (void *)(intptr_t) to cast function addresses to void*Dan Gohman2009-08-052-11/+7
| | | | | | | for use with sys::Path::GetMainExecutable, to avoid warnings with -pedantic. llvm-svn: 78245
* Fix FindExecutable to use sys::Path::GetMainExecutable instead ofDan Gohman2009-08-056-47/+53
| | | | | | | | | | | | | just argv[0]. And remove the code for searching the current working directory and for searching PATH; the point of FindExecutable is not to find whatever version of the executable can be found by searching around, but to find an executable that accompanies the current executable. Update the tools to use sys::Program::FindProgramByName when they want PATH searching. llvm-svn: 78240
* Remove unnecessary ProfileInfoLoader methods.Daniel Dunbar2009-08-051-71/+56
| | | | | | - Part of optimal static profiling patch sequence by Andreas Neustifter. llvm-svn: 78199
* Pass user only if it's non-empty. Patch by Sandeep.Anton Korobeynikov2009-08-051-2/+4
| | | | llvm-svn: 78184
* Add save-temps option to bugpoint to keep temporary stuff.Anton Korobeynikov2009-08-054-6/+14
| | | | | | Patch by Sandeep Patel llvm-svn: 78183
* lli doesn't need <iostream> anymore.Dan Gohman2009-08-051-1/+0
| | | | llvm-svn: 78133
* Factor some of the constants+context related code out into a separate ↵Owen Anderson2009-08-042-2/+2
| | | | | | | | header, to make LLVMContextImpl.h not hideous. Also, fix some MSVC compile errors. llvm-svn: 78115
* No really, it's unused.Daniel Dunbar2009-08-043-5/+3
| | | | llvm-svn: 78047
* Provide target data from the module if the target machine doesn't have any.Daniel Dunbar2009-08-031-2/+13
| | | | llvm-svn: 77973
* Remove the GCC path from libLTO. This has been superceded by setAssemblerPath.Nick Lewycky2009-08-033-21/+1
| | | | llvm-svn: 77960
* Remove now unused arguments from TargetRegistry::lookupTarget.Daniel Dunbar2009-08-034-18/+4
| | | | llvm-svn: 77950
* Pass target triple string in to TargetMachine constructor.Daniel Dunbar2009-08-033-28/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | This is not just a matter of passing in the target triple from the module; currently backends are making decisions based on the build and host architecture. The goal is to migrate to making these decisions based off of the triple (in conjunction with the feature string). Thus most clients pass in the target triple, or the host triple if that is empty. This has one important change in the way behavior of the JIT and llc. For the JIT, it was previously selecting the Target based on the host (naturally), but it was setting the target machine features based on the triple from the module. Now it is setting the target machine features based on the triple of the host. For LLC, -march was previously only used to select the target, the target machine features were initialized from the module's triple (which may have been empty). Now the target triple is taken from the module, or the host's triple is used if that is empty. Then the triple is adjusted to match -march. The take away is that -march for llc is now used in conjunction with the host triple to initialize the subtarget. If users want more deterministic behavior from llc, they should use -mtriple, or set the triple in the input module. llvm-svn: 77946
* Make SectionKind::get() private.Chris Lattner2009-08-021-1/+1
| | | | llvm-svn: 77835
* update for API change.Chris Lattner2009-08-012-4/+5
| | | | llvm-svn: 77804
* All MCSections are now required to have a SectionKind.Chris Lattner2009-08-012-5/+7
| | | | llvm-svn: 77787
* llvm-mc: More quoted identifier support.Daniel Dunbar2009-08-012-43/+63
| | | | llvm-svn: 77761
* llvm-mc: Support quoted identifiers.Daniel Dunbar2009-07-311-5/+7
| | | | | | | | | - Uses MCAsmToken::getIdentifier which returns the (sub)string representing the meaningfull contents a string or identifier token. - Directives aren't done yet. llvm-svn: 77739
* Move a few more APIs back to 2.5 forms. The only remaining ones left to ↵Owen Anderson2009-07-314-7/+4
| | | | | | | | change back are metadata related, which I'm waiting on to avoid conflicting with Devang. llvm-svn: 77721
* fix some more issues where we expected GetSection to do "get or create"Chris Lattner2009-07-311-2/+12
| | | | llvm-svn: 77700
* fix a bunch of failing tests now that MCContext::GetSection doesn't create ↵Chris Lattner2009-07-312-4/+16
| | | | | | sections. llvm-svn: 77689
* Move more code back to 2.5 APIs.Owen Anderson2009-07-302-2/+2
| | | | llvm-svn: 77635
* Handle NamedMDNode.Devang Patel2009-07-301-0/+2
| | | | llvm-svn: 77633
* Move types back to the 2.5 API.Owen Anderson2009-07-292-5/+4
| | | | llvm-svn: 77516
* Move ConstantExpr to 2.5 API.Owen Anderson2009-07-291-1/+1
| | | | llvm-svn: 77494
* Add a bugpoint flag to disable block extraction.David Goodwin2009-07-281-1/+5
| | | | llvm-svn: 77389
* Update CMakeListsDaniel Dunbar2009-07-281-1/+0
| | | | llvm-svn: 77385
* Move X86 instruction parsing into X86/AsmParser.Daniel Dunbar2009-07-284-278/+2
| | | | llvm-svn: 77384
* Make expression parsing and error/warning reporting available through theDaniel Dunbar2009-07-281-24/+15
| | | | | | generic MCAsmParser interface. llvm-svn: 77381
* Provide generic MCAsmParser when constructing target specific parsers.Daniel Dunbar2009-07-282-21/+27
| | | | llvm-svn: 77362
* Change ConstantArray to 2.5 API.Owen Anderson2009-07-282-2/+2
| | | | llvm-svn: 77347
* Switch X86 assembly parser to using the generic lexer interface.Daniel Dunbar2009-07-281-28/+28
| | | | llvm-svn: 77341
* Expose Tokens to target specific assembly parsers.Daniel Dunbar2009-07-282-81/+6
| | | | llvm-svn: 77337
* Switch AsmLexer::Lex to returning a reference to the current token.Daniel Dunbar2009-07-283-9/+6
| | | | llvm-svn: 77328
* Drop some AsmLexer methods in favor of their AsmToken equivalents.Daniel Dunbar2009-07-284-37/+34
| | | | llvm-svn: 77323
* llvm-mc: Sink token enum into AsmToken.Daniel Dunbar2009-07-285-210/+213
| | | | llvm-svn: 77322
* Remove memory corruption bug. string.c_str() was returning a temporary that wasNick Lewycky2009-07-281-2/+2
| | | | | | dead before we used it. llvm-svn: 77304
* llvm-mc: Factor AsmToken class out of AsmLexer.Daniel Dunbar2009-07-282-83/+108
| | | | llvm-svn: 77292
* llvm-mc: Stop uniqueing string tokens, nothing actually uses this.Daniel Dunbar2009-07-282-20/+4
| | | | llvm-svn: 77287
* Pass true to the Internalize parameter of createStandardLTOPasses,Dan Gohman2009-07-271-1/+1
| | | | | | to match llvm-ld's default behavior. llvm-svn: 77273
* llvm-mc: Implement .abort fully in the front endDaniel Dunbar2009-07-273-7/+16
| | | | llvm-svn: 77272
* Move ConstantStruct back to 2.5 API.Owen Anderson2009-07-271-1/+1
| | | | llvm-svn: 77266
* llvm-mc: Move AsmLexer::getCurStrVal to StringRef based API.Daniel Dunbar2009-07-274-96/+103
| | | | | | - My DFS traversal of LLVM is, at least for now, nearly complete! :) llvm-svn: 77258
* Fix libLTO:Nick Lewycky2009-07-262-6/+13
| | | | | | | | | | | | * Call InitializeAllTargets on every path where we might query the TargetRegistry. This fixes PR4604. * flush the formatted_raw_ostream& or else not all of the assembly will make it to the .s file. (It doesn't do this in its destructor?!) * Due to a reversed conditional, libLTO was reporting many symbols as both defined and undefined, including two definitions of the same symbol name in its symbol list. llvm-svn: 77170
* Remove Value::getName{Start,End}, the last of the old Name APIs.Daniel Dunbar2009-07-261-2/+2
| | | | llvm-svn: 77152
* Factor commonality in triple match routines into helper template for registeringDaniel Dunbar2009-07-261-3/+3
| | | | | | classes, and migrate existing targets over. llvm-svn: 77126
* Add TargetRegistry::lookupTarget.Daniel Dunbar2009-07-264-7/+16
| | | | | | | | | | | | | | - This is a simplified mechanism which just looks up a target based on the target triple, with a few additional flags. - Remove getClosestStaticTargetForModule, the moral equivalent is now: lookupTarget(Mod->getTargetTriple, true, false, ...); - This no longer does the fuzzy matching with target data (based on endianness and pointer width) that getClosestStaticTargetForModule was doing, but this was deemed unnecessary. llvm-svn: 77111
* Remove Value::setName(const char*, unsigned).Daniel Dunbar2009-07-261-2/+2
| | | | llvm-svn: 77100
* One more getName -> getNameStrDaniel Dunbar2009-07-251-3/+3
| | | | llvm-svn: 77027
OpenPOWER on IntegriCloud