aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Add file commentChris Lattner2003-07-312-0/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7444 91177308-0d34-0410-b5e6-96231b3b80d8
* Tighten up interfaceChris Lattner2003-07-312-6/+6
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7443 91177308-0d34-0410-b5e6-96231b3b80d8
* Added function to determine if an Instruction may trap.Tanya Lattner2003-07-312-1/+24
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7442 91177308-0d34-0410-b5e6-96231b3b80d8
* Add commentsChris Lattner2003-07-301-1/+19
| | | | | | | Make the register classes optionally take code fragments for allocation_order_* git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7441 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support for code fragmentsChris Lattner2003-07-306-14/+58
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7440 91177308-0d34-0410-b5e6-96231b3b80d8
* Initial support for the 'code' type.Chris Lattner2003-07-306-2/+26
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7439 91177308-0d34-0410-b5e6-96231b3b80d8
* Ignore intrinsic functions -- don't mangle their names or rewrite calls to them.Misha Brukman2003-07-301-1/+6
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7438 91177308-0d34-0410-b5e6-96231b3b80d8
* We no longer need to preprocess SparcV9.td before sending it through tablegenChris Lattner2003-07-302-30/+30
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7437 91177308-0d34-0410-b5e6-96231b3b80d8
* Move err() to the lexer, implement file inclusion capabilities directly in ↵Chris Lattner2003-07-304-18/+176
| | | | | | tblgen git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7436 91177308-0d34-0410-b5e6-96231b3b80d8
* Add test of file inclusion capability for bugpointChris Lattner2003-07-302-0/+11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7435 91177308-0d34-0410-b5e6-96231b3b80d8
* CodeGeneratorBug.cpp:Misha Brukman2003-07-303-14/+39
| | | | | | | | | | | | | | | | | * Temporarily externing InputArgv to print it out for the benefit of LLI command needed to reproduce the result. * Print out the list of functions currently being tested * ListReducer now returns a bool if there was a failure, so test for it ListReducer.h: * Handle the case where there is no problem by returning true if failure is found. Also correctly handles the case when there is only 1 pass/function. Miscompilation.cpp: * ListReducer now returns a bool if there was a failure, so test for it git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7434 91177308-0d34-0410-b5e6-96231b3b80d8
* * Moved InputArgv out of anonymous scope to be extern'd in another file.Misha Brukman2003-07-301-32/+47
| | | | | | | | * Added DEBUG() statements to print out parameters passed to executing programs * Actually ADD parameters to a program running via the JIT (using vector<char*>) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7433 91177308-0d34-0410-b5e6-96231b3b80d8
* Minor reorganization, move ParseFile to the lexerChris Lattner2003-07-304-48/+44
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7432 91177308-0d34-0410-b5e6-96231b3b80d8
* Make tablegen take an input filename to parse if one is specified, otherwiseChris Lattner2003-07-304-12/+42
| | | | | | | use stdin. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7431 91177308-0d34-0410-b5e6-96231b3b80d8
* Initial tests for tblgenChris Lattner2003-07-303-0/+30
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7430 91177308-0d34-0410-b5e6-96231b3b80d8
* Directly support C style comments in tblgen, but allow them to actually nestChris Lattner2003-07-302-0/+26
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7429 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix a bug that brian reportedChris Lattner2003-07-301-4/+24
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7428 91177308-0d34-0410-b5e6-96231b3b80d8
* Moved definition of InputArgv into ExecutionDriver.cpp -- it is only used there.Misha Brukman2003-07-302-8/+6
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7427 91177308-0d34-0410-b5e6-96231b3b80d8
* Use a vector<char*> instead of char*[] so that we can add arbitrary number ofMisha Brukman2003-07-301-38/+35
| | | | | | | | parameters, such as command-line arguments that the executing program gets via bugpoint. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7423 91177308-0d34-0410-b5e6-96231b3b80d8
* Add variable to capture arguments that should be passed to the user programChris Lattner2003-07-301-2/+5
| | | | | | | This is unused so far. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7422 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support for "named positional arguments"Chris Lattner2003-07-302-30/+68
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7421 91177308-0d34-0410-b5e6-96231b3b80d8
* Revert change: default architecture is never set, it is guessed from inputMisha Brukman2003-07-301-8/+1
| | | | | | | | bytecode file. This means that LLC on X86 will compile to Sparc assembly given a 64-bit input bytecode file... git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7419 91177308-0d34-0410-b5e6-96231b3b80d8
* When emitting a constant, check for ConstantExpr beforeVikram S. Adve2003-07-301-14/+15
| | | | | | | ordinary (primitive) types since ConstantExprs may be of primitive type! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7418 91177308-0d34-0410-b5e6-96231b3b80d8
* 1. Make table size prime -- improves hashing performance vastly.Vikram S. Adve2003-07-301-24/+43
| | | | | | | | 2. Reduce #hashes from 2 to 1 for initial inserts. 3. Fix incorrect assertion from last checkin. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7417 91177308-0d34-0410-b5e6-96231b3b80d8
* Conform to the new interface for describing target registers... even thoughChris Lattner2003-07-301-14/+24
| | | | | | | it's currently not used. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7416 91177308-0d34-0410-b5e6-96231b3b80d8
* Add all of the necessary classes to describe the contents of the MRegister.h ↵Chris Lattner2003-07-301-1/+40
| | | | | | | | | implementation for a target. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7415 91177308-0d34-0410-b5e6-96231b3b80d8
* Only regenerate the .inc file if IT has changed, not just if the .td filesChris Lattner2003-07-301-4/+13
| | | | | | | have changed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7414 91177308-0d34-0410-b5e6-96231b3b80d8
* Use target specific interface instead of forcing it to be target-genericChris Lattner2003-07-302-8/+12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7413 91177308-0d34-0410-b5e6-96231b3b80d8
* Code generation passes don't need access to raw LLVM types, this method is ↵Chris Lattner2003-07-301-2/+1
| | | | | | unnecessary. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7412 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix coredump for when an ID is used illegally outside a recordChris Lattner2003-07-302-0/+8
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7411 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't pollute the namespace with template arguments after they have been ↵Chris Lattner2003-07-304-6/+48
| | | | | | resolved git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7410 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement TODO: disallow 'def's with template arguments.Chris Lattner2003-07-302-2/+12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7409 91177308-0d34-0410-b5e6-96231b3b80d8
* Allow specification of anonymous definitionsChris Lattner2003-07-302-8/+18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7408 91177308-0d34-0410-b5e6-96231b3b80d8
* Allow passing lists through variablesChris Lattner2003-07-304-10/+38
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7407 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement resolution of variables to the value of the variable once it gets ↵Chris Lattner2003-07-304-2/+44
| | | | | | a value git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7406 91177308-0d34-0410-b5e6-96231b3b80d8
* No this file is not actually Sparc.td :)Chris Lattner2003-07-291-7/+5
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7405 91177308-0d34-0410-b5e6-96231b3b80d8
* Do not use 'cpp' directlyChris Lattner2003-07-291-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7404 91177308-0d34-0410-b5e6-96231b3b80d8
* Add namespace specifier, add flags used by the X86 BEChris Lattner2003-07-291-5/+7
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7403 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't crash if there is no Inst class in the tablegen file!Chris Lattner2003-07-296-10/+24
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7402 91177308-0d34-0410-b5e6-96231b3b80d8
* * Cleaned up and corrected comments wrt instruction formatsMisha Brukman2003-07-291-18/+18
| | | | | | | * Enabled STXFSR instructions git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7400 91177308-0d34-0410-b5e6-96231b3b80d8
* Make emitFarCall() public, and add a few comments to functions.Misha Brukman2003-07-291-3/+27
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7399 91177308-0d34-0410-b5e6-96231b3b80d8
* Unify all constant evaluations that depend on register sizeVikram S. Adve2003-07-291-0/+16
| | | | | | | in TargetInstrInfo::ConvertConstantToIntType. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7398 91177308-0d34-0410-b5e6-96231b3b80d8
* Bug fix: after reallocating the hash table, we have to re-insert each valueVikram S. Adve2003-07-291-33/+25
| | | | | | | instead of copying table entries! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7396 91177308-0d34-0410-b5e6-96231b3b80d8
* Unify all constant evaluations that depend on register sizeVikram S. Adve2003-07-292-72/+104
| | | | | | | in ConvertConstantToIntType. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7395 91177308-0d34-0410-b5e6-96231b3b80d8
* Rename 'dump-asm' to 'dump-input' and really print it just before code-gen.Vikram S. Adve2003-07-291-6/+6
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7394 91177308-0d34-0410-b5e6-96231b3b80d8
* Bug fix: don't unnecessarily pretty-print control-characters, some ofVikram S. Adve2003-07-291-15/+4
| | | | | | | which were wrong (particularly, '\a' for '\007'). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7393 91177308-0d34-0410-b5e6-96231b3b80d8
* Add ConvertConstantToIntType() to unify all constant handlingVikram S. Adve2003-07-291-50/+16
| | | | | | | | | | that depends on machine register size. Moved insertCallerSavingCode() to PhyRegAlloc and moved isRegVolatile and modifiedByCall to TargetRegInfo: they are all machine independent. Remove several dead functions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7392 91177308-0d34-0410-b5e6-96231b3b80d8
* Add code to support stack spill/temp offsets that don't fit in theVikram S. Adve2003-07-291-238/+99
| | | | | | | | immed. field. Moved insertCallerSavingCode() to PhyRegAlloc: it is now machine independent. Remove all uses of PhyRegAlloc. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7391 91177308-0d34-0410-b5e6-96231b3b80d8
* All constant-evaluation code now unified intoVikram S. Adve2003-07-292-62/+16
| | | | | | | TargetInstrInfo::ConvertConstantToIntType(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7390 91177308-0d34-0410-b5e6-96231b3b80d8
* 1. Bug fix: Don't use branch operand reg. as temp. reg. whenVikram S. Adve2003-07-292-162/+652
| | | | | | | | | | | | spilling values used by an instruction in the delay slot of the branch (which will eventually be moved before the branch). 2. Bug fix: Delete the delay slot instr, not the branch instr, when moving delay slot instr. out!!!! 3. Move code to insert caller-saves moved here from SparcRegInfo: it is now machine-independent. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7389 91177308-0d34-0410-b5e6-96231b3b80d8