aboutsummaryrefslogtreecommitdiffstats
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* Substantial changes to refactor LLI to incorporate both the Jello JIT andChris Lattner2002-12-232-60/+80
| | | | | | | the traditional LLI interpreter git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5125 91177308-0d34-0410-b5e6-96231b3b80d8
* X86 target machine is now parameterizableChris Lattner2002-12-231-1/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5124 91177308-0d34-0410-b5e6-96231b3b80d8
* New files for miscompilation detectionChris Lattner2002-12-234-0/+567
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5120 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement the start of the miscompilation detection stuffChris Lattner2002-12-235-56/+65
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5119 91177308-0d34-0410-b5e6-96231b3b80d8
* brgBrian Gaeke2002-12-221-0/+3
| | | | | | | | | Add statistic for number of bytes of data area initialized. We used this statistic in collecting data for the paper, but I forgot to commit it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5112 91177308-0d34-0410-b5e6-96231b3b80d8
* Make stuff compiled with gccld not dump into the debugger if there's a problemChris Lattner2002-12-141-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5028 91177308-0d34-0410-b5e6-96231b3b80d8
* Pass command line arguments to mainChris Lattner2002-12-133-5/+24
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5027 91177308-0d34-0410-b5e6-96231b3b80d8
* Add statisticChris Lattner2002-12-131-3/+7
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5026 91177308-0d34-0410-b5e6-96231b3b80d8
* Made status output debug-only (for testing diffs against lli).Misha Brukman2002-12-133-10/+13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5022 91177308-0d34-0410-b5e6-96231b3b80d8
* brgBrian Gaeke2002-12-131-1/+1
| | | | | | | | | | | | | | InstSelectSimple.cpp: Add stub implementation of visitFreeInst. Add comments that mention how we are failing to implement malloc/free. Add initial implementation of visitAllocaInst. X86TargetMachine.cpp: Include llvm/Transforms/Scalar.h. Add LowerAllocations pass before instruction selection. jello/Makefile: Add scalaropts.a. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4994 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement branchesChris Lattner2002-12-132-13/+32
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4988 91177308-0d34-0410-b5e6-96231b3b80d8
* This checkin is brought to you by the brian gaeke allnighter fund.Brian Gaeke2002-12-121-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (lib/Target/X86) InstSelectSimple.cpp: Include llvm/DerivedTypes.h and iostream. Refactor visitMul out into a wrapper around doMultiply(), so that we can do multiplications on temporary values when we are doing getelementptrs. Refactor part of getReg out into makeAnotherReg, so that we can create registers willy-nilly to hold temporary values, when we are doing getelementptrs. Add stub implementations of visitMallocInst and visitAllocaInst. Add initial implementation of visitGetElementPtrInst. In copyConstantToRegister: We throw a *lot* of our asserts here. So, when we want to throw an assert, print out to stderr whatever expr or whatever constant made us barf. Support copying ConstantPointerNull to register, using a move immediate of zero. Rename FLDr4 and FLDr8 to FLDr32 and FLDr64, so that they match the meanings of the numbers in the other instruction names. All uses modified. Teach visitCallInst to extract byte- and short-class return values from subregs of EAX. Add a FIXME note about how we would do it for float-class return values. Add a FIXME note about how we would cast float to int and back. X86InstrInfo.def: Rename FLDr4 and FLDr8 to FLDr32 and FLDr64, so that they match the meanings of the numbers in the other instruction names. All uses modified. (tools/jello) GlobalVars.cpp: Include iostream. If we have to emit a floating-point constant to memory, gamble and use the same method as for ints. If we have to emit a ConstantPointerNull to memory, try using a "void *" and "NULL". Otherwise, if we are going to throw an assert, print out whatever constant made us barf, first. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4973 91177308-0d34-0410-b5e6-96231b3b80d8
* ipa.a only needs to be mentioned once, and spaces should be used instead ofMisha Brukman2002-12-121-6/+3
| | | | | | | tabs for readability. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4970 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix link errors due to new IPModRef pass.Vikram S. Adve2002-12-091-2/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4960 91177308-0d34-0410-b5e6-96231b3b80d8
* Repeat ipa.a. Since IPModRef is currently only used in analysis.o,Vikram S. Adve2002-12-091-1/+1
| | | | | | | it was causing linking errors. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4959 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support to count the number of dynamic instructions executed by LLIChris Lattner2002-12-081-4/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4955 91177308-0d34-0410-b5e6-96231b3b80d8
* Only build jello when compiling on X86Chris Lattner2002-12-061-2/+11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4938 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix to make jello compile on Sparc even though it won't run.Chris Lattner2002-12-061-0/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4937 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support for global value referencesChris Lattner2002-12-043-1/+24
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4908 91177308-0d34-0410-b5e6-96231b3b80d8
* Initial checkin of global var support codeChris Lattner2002-12-041-0/+90
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4904 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement simple global variable supportChris Lattner2002-12-041-1/+5
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4903 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement external function supportChris Lattner2002-12-041-1/+11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4902 91177308-0d34-0410-b5e6-96231b3b80d8
* Initial checkin of Unresolved function fault handlerChris Lattner2002-12-041-0/+58
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4900 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement lazy resolution of function callsChris Lattner2002-12-043-1/+37
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4899 91177308-0d34-0410-b5e6-96231b3b80d8
* Initial checkin of virtual machine implementation.Chris Lattner2002-12-034-54/+199
| | | | | | | We can now run very trivial test cases git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4894 91177308-0d34-0410-b5e6-96231b3b80d8
* Disable timing of bytecode loaderChris Lattner2002-12-031-0/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4887 91177308-0d34-0410-b5e6-96231b3b80d8
* Final tweak to printerChris Lattner2002-12-031-1/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4881 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement trivially simple debugger for MachineCodeEmitter interfaceChris Lattner2002-12-031-1/+14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4880 91177308-0d34-0410-b5e6-96231b3b80d8
* Add initial support for machine code emissionChris Lattner2002-12-021-0/+21
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4865 91177308-0d34-0410-b5e6-96231b3b80d8
* Build bugpointChris Lattner2002-11-201-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4790 91177308-0d34-0410-b5e6-96231b3b80d8
* Initial checkin of bugpointChris Lattner2002-11-208-0/+619
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4789 91177308-0d34-0410-b5e6-96231b3b80d8
* Move the function extractor pass from tools/extract into lib/Xform/IPOChris Lattner2002-11-192-182/+18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4759 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove extra target.a entryChris Lattner2002-11-191-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4756 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a timer to evaluate bytecode load time and space requirementsChris Lattner2002-11-101-0/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4679 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't build llc symbols by default.Vikram S. Adve2002-11-061-1/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4565 91177308-0d34-0410-b5e6-96231b3b80d8
* Give passnames to the printer classesChris Lattner2002-11-061-0/+6
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4559 91177308-0d34-0410-b5e6-96231b3b80d8
* No need to explicitly inclue ExportSymbols nowChris Lattner2002-11-045-6/+5
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4543 91177308-0d34-0410-b5e6-96231b3b80d8
* Simple passes that print out SCCs in the CFGs or in the CallGraph of a module.Vikram S. Adve2002-11-042-0/+186
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4532 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement a new -print-callgraph analysis that turns a callgraph into a dotChris Lattner2002-11-042-2/+90
| | | | | | | graph git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4524 91177308-0d34-0410-b5e6-96231b3b80d8
* Disable correlated expressions pass until it is reliable.Vikram S. Adve2002-11-031-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4512 91177308-0d34-0410-b5e6-96231b3b80d8
* Reassociate now worksChris Lattner2002-10-311-3/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4472 91177308-0d34-0410-b5e6-96231b3b80d8
* Return 0 instead of 1 for correct execution. Makes automated testing happy.Misha Brukman2002-10-301-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4449 91177308-0d34-0410-b5e6-96231b3b80d8
* Jello now buildsChris Lattner2002-10-291-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4430 91177308-0d34-0410-b5e6-96231b3b80d8
* * Privatize the TargetNameChris Lattner2002-10-292-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4418 91177308-0d34-0410-b5e6-96231b3b80d8
* Allow TargetMachine to refuse static code genChris Lattner2002-10-291-4/+8
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4415 91177308-0d34-0410-b5e6-96231b3b80d8
* Convert jello to use PassManagerChris Lattner2002-10-291-39/+26
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4414 91177308-0d34-0410-b5e6-96231b3b80d8
* Rename Sparc.h TargetMachineImpls.hChris Lattner2002-10-291-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4409 91177308-0d34-0410-b5e6-96231b3b80d8
* * Remove explicit strcmp callsChris Lattner2002-10-291-3/+3
| | | | | | | * Rename Sparc.h to TargetMachineImpls.h git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4406 91177308-0d34-0410-b5e6-96231b3b80d8
* After removing stuff from TargetMachine, we now no longer have to includeChris Lattner2002-10-281-1/+1
| | | | | | | it twice. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4311 91177308-0d34-0410-b5e6-96231b3b80d8
* Add codegen libraryChris Lattner2002-10-282-4/+24
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4305 91177308-0d34-0410-b5e6-96231b3b80d8