summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Mercilessly rip the cbackend out of llvm-dis. Leave a helpful error messageChris Lattner2004-02-13
| | | | | | | for those who have not heard the news. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11412 91177308-0d34-0410-b5e6-96231b3b80d8
* The cbackend has never had anything to do with llvm assembly writingChris Lattner2004-02-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11411 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support for -march=cChris Lattner2004-02-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11410 91177308-0d34-0410-b5e6-96231b3b80d8
* Convert the C backend into a target, for use with LLC. This allows us to useChris Lattner2004-02-13
| | | | | | | the lowerallocations pass to eliminate malloc/free warnings and hackish code git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11409 91177308-0d34-0410-b5e6-96231b3b80d8
* Change how we create the cwriter, and add a buttload of libraries that it nowChris Lattner2004-02-13
| | | | | | | needs. This will be fixed shortly git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11407 91177308-0d34-0410-b5e6-96231b3b80d8
* Change access to the cwriterChris Lattner2004-02-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11406 91177308-0d34-0410-b5e6-96231b3b80d8
* Make the cwriter use the lowerinvoke pass so that it can either use ↵Chris Lattner2004-02-13
| | | | | | | | | | | | "disabled exceptions" or "expensive exceptions" controlled by an option. Also refactor and eliminate a bunch of cruft. This is a temporary solution and causes millions of warnings to pour out of programs that use exceptions, but it should fix the problem with sparc and the 'write' declaration (PR190). Subsequent changes will make this stink much less git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11405 91177308-0d34-0410-b5e6-96231b3b80d8
* New testcase. The CFE should not generate illegal LLVM intrinsics, even ifChris Lattner2004-02-13
| | | | | | | the input program is horribly broken (like 126.gcc). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11401 91177308-0d34-0410-b5e6-96231b3b80d8
* Added check for target machine endian-ness and put the result intoJohn Criswell2004-02-13
| | | | | | | Makefile.config (ENDIAN variable is set to big or little). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11398 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support for a bunch more functionsChris Lattner2004-02-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11395 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove getAllocatedRegNum(). Use getReg() instead.Alkis Evlogimenos2004-02-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11393 91177308-0d34-0410-b5e6-96231b3b80d8
* Mark MachineBasicBlock::operator[] deprecated.Alkis Evlogimenos2004-02-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11392 91177308-0d34-0410-b5e6-96231b3b80d8
* Define DEPRECATED so that it can be used in function and variableAlkis Evlogimenos2004-02-13
| | | | | | | declarations. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11391 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support for fopen/fclose. Specifically with fopen, we were marking all ↵Chris Lattner2004-02-13
| | | | | | | | | | | of the operands as incomplete, though fopen is known to only read them. This just adds fclose for symmetry, though it doesn't gain anything. This makes the dsgraphs for 181.mcf much more precise. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11390 91177308-0d34-0410-b5e6-96231b3b80d8
* Use getNumVirtualRegs().Alkis Evlogimenos2004-02-13
| | | | | | | Whitespace cleanups. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11389 91177308-0d34-0410-b5e6-96231b3b80d8
* Add getNumVirtualRegs().Alkis Evlogimenos2004-02-13
| | | | | | | Whitespace cleanups. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11388 91177308-0d34-0410-b5e6-96231b3b80d8
* Bug fixedChris Lattner2004-02-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11385 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix compilation of 126.gcc: intrinsic functions cannot throw, so they are notChris Lattner2004-02-13
| | | | | | | | allowed in invoke instructions. Thus, if we are inlining a call to an intrinsic function into an invoke site, we don't need to turn the call into an invoke! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11384 91177308-0d34-0410-b5e6-96231b3b80d8
* Intrinsic functions cannot throwChris Lattner2004-02-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11383 91177308-0d34-0410-b5e6-96231b3b80d8
* Updated to list all code/directories that have additional or alternateJohn Criswell2004-02-13
| | | | | | | | | | licensing information. Also added note to indicate that warrany disclaimer and the no-endorsement clause applies to everything. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11382 91177308-0d34-0410-b5e6-96231b3b80d8
* Bug fixChris Lattner2004-02-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11381 91177308-0d34-0410-b5e6-96231b3b80d8
* exit(1) instead of abort()'ing on errorChris Lattner2004-02-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11380 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix buggy error message problemChris Lattner2004-02-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11379 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix spelling of `tendency'.Misha Brukman2004-02-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11378 91177308-0d34-0410-b5e6-96231b3b80d8
* Expose a pass ID for lower-invokeChris Lattner2004-02-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11377 91177308-0d34-0410-b5e6-96231b3b80d8
* Expose a pass ID that can be 'required'Chris Lattner2004-02-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11376 91177308-0d34-0410-b5e6-96231b3b80d8
* Squish warningChris Lattner2004-02-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11375 91177308-0d34-0410-b5e6-96231b3b80d8
* Restructure code to handle memcpy/memmoveChris Lattner2004-02-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11374 91177308-0d34-0410-b5e6-96231b3b80d8
* Right, memcpy READS memory too :)Chris Lattner2004-02-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11373 91177308-0d34-0410-b5e6-96231b3b80d8
* New testcase for support for memcpy/memmoveChris Lattner2004-02-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11372 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix off-by-one in Interpreter::getFirstVarArg(), which was punishingBrian Gaeke2004-02-13
| | | | | | | | any attempts by LLI to use varargs (possibly left over from the introduction of IntrinsicLowering??) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11370 91177308-0d34-0410-b5e6-96231b3b80d8
* Fine grainify namespacification, prune #includesChris Lattner2004-02-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11369 91177308-0d34-0410-b5e6-96231b3b80d8
* The Interpreter was failing the AtExit UnitTest. This fixes it.Brian Gaeke2004-02-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11367 91177308-0d34-0410-b5e6-96231b3b80d8
* Update the example here in the header file.Brian Gaeke2004-02-13
| | | | | | | I don't know about you guys, but I rarely read the .html manuals :-) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11366 91177308-0d34-0410-b5e6-96231b3b80d8
* Include <iosfwd>.Brian Gaeke2004-02-13
| | | | | | | Add prototypes for MachineBasicBlock's dump() and print() methods. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11365 91177308-0d34-0410-b5e6-96231b3b80d8
* Refactor MachineFunction::print() into MachineBasicBlock::print().Brian Gaeke2004-02-13
| | | | | | | Add MachineBasicBlock::dump(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11364 91177308-0d34-0410-b5e6-96231b3b80d8
* Add head-of-file comments and Doxygen comments. Tighten up a lot of whitespace.Brian Gaeke2004-02-13
| | | | | | | | | Rename SetMachineOperandConst's formal parameters to match other methods here. Mark some methods as being used only by the SPARC back-end. Fix a missing-paren bug in OutputValue(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11363 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support for memcpy and memmove intrinsics. Why isn't the cwriter usingChris Lattner2004-02-12
| | | | | | | the intrinsiclowering code?? :( git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11362 91177308-0d34-0410-b5e6-96231b3b80d8
* New featuresChris Lattner2004-02-12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11361 91177308-0d34-0410-b5e6-96231b3b80d8
* Be a bit more specific about what the alignment value means and the ↵Chris Lattner2004-02-12
| | | | | | restrictions on it git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11360 91177308-0d34-0410-b5e6-96231b3b80d8
* New testcase for PR233: [llvmgcc] Structure copies result in a LOT of codeChris Lattner2004-02-12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11359 91177308-0d34-0410-b5e6-96231b3b80d8
* Move ilist_trairs<MachineInstr> in MachineBasicBlock.Alkis Evlogimenos2004-02-12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11358 91177308-0d34-0410-b5e6-96231b3b80d8
* Add parent pointer to MachineInstr that points to owningAlkis Evlogimenos2004-02-12
| | | | | | | | | MachineBasicBlock. Also change opcode to a short and numImplicitRefs to an unsigned char so that overall MachineInstr's size stays the same. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11357 91177308-0d34-0410-b5e6-96231b3b80d8
* Fixed minor typos.John Criswell2004-02-12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11356 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support for the llvm.memmove intrinsicChris Lattner2004-02-12
| | | | | | | Patch graciously contributed by Reid Spencer! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11355 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support for the llvm.memmove intrinsic.Chris Lattner2004-02-12
| | | | | | | Patch graciously contributed by Reid Spencer! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11354 91177308-0d34-0410-b5e6-96231b3b80d8
* Urg, check in header I forgot. :(Chris Lattner2004-02-12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11353 91177308-0d34-0410-b5e6-96231b3b80d8
* Test that we get rep movs when calling memcpyChris Lattner2004-02-12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11352 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support for the rep movs[bwd] instructions, and emit them when codeChris Lattner2004-02-12
| | | | | | | generating the llvm.memcpy intrinsic. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11351 91177308-0d34-0410-b5e6-96231b3b80d8
* Document the llvm.memcpy intrinsic. Clean up some of the formatting of otherChris Lattner2004-02-12
| | | | | | | sections git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11350 91177308-0d34-0410-b5e6-96231b3b80d8