summaryrefslogtreecommitdiffstats
path: root/llvm/lib
Commit message (Collapse)AuthorAgeFilesLines
* Disable JIT symbol table for now.Evan Cheng2008-05-151-1/+1
| | | | llvm-svn: 51152
* Use of UINT_MAX requires climits, at least whenDuncan Sands2008-05-151-0/+1
| | | | | | compiling with gcc 4.3. llvm-svn: 51145
* Fix a bunch of 80col violations that arose from the Create API change. Tweak ↵Gabor Greif2008-05-1520-66/+110
| | | | | | makefile targets to find these better. llvm-svn: 51143
* Make use of vector load and store operations to implement memcpy, memmove, ↵Evan Cheng2008-05-153-106/+188
| | | | | | and memset. Currently only X86 target is taking advantage of these. llvm-svn: 51140
* Move the operator new and operator delete out of line. This fixes an issue withNate Begeman2008-05-151-0/+19
| | | | | | | operator new() referring to the static initTags function, which has to be in the same linkage unit as any file including User.h. llvm-svn: 51136
* Don't assume underlying APInt type is limitedDale Johannesen2008-05-141-1/+1
| | | | | | to 64 bits. llvm-svn: 51135
* Situations can arise when you have a function called that returns a 'void', butBill Wendling2008-05-141-2/+2
| | | | | | | | | | is bitcast to return a floating point value. The result of the instruction may not be used by the program afterwards, and LLVM will happily remove all instructions except the call. But, on some platforms, if a value is returned as a floating point, it may need to be removed from the stack (like x87). Thus, we can't get rid of the bitcast even if there isn't a use of the value. llvm-svn: 51134
* Remove undefined behavior in hex string->APFloatDale Johannesen2008-05-141-1/+1
| | | | | | conversion. Try 0x1.0000a4p+0f. Neil, please review. llvm-svn: 51132
* Use a better idiom to silence compiler warnings.Evan Cheng2008-05-141-20/+5
| | | | llvm-svn: 51131
* rename SimplifyCFG.cpp -> SimplifyCFGPass.cppChris Lattner2008-05-141-1/+1
| | | | llvm-svn: 51130
* Silence warnings.Evan Cheng2008-05-141-2/+2
| | | | llvm-svn: 51129
* Really silence compiler warnings.Evan Cheng2008-05-141-2/+2
| | | | llvm-svn: 51126
* Really silence compiler warnings.Evan Cheng2008-05-141-5/+20
| | | | llvm-svn: 51123
* CommonLinkage (missed a file)Dale Johannesen2008-05-141-1/+2
| | | | llvm-svn: 51120
* Generated files for CommonLinkage.Dale Johannesen2008-05-143-1740/+1752
| | | | llvm-svn: 51119
* Add CommonLinkage; currently tentative definitionsDale Johannesen2008-05-1421-30/+67
| | | | | | | | | | are represented as "weak", but there are subtle differences in some cases on Darwin, so we need both. The intent is that "common" will behave identically to "weak" unless somebody changes their target to do something else. No functional change as yet. llvm-svn: 51118
* Silence some compiler warnings.Evan Cheng2008-05-143-5/+13
| | | | llvm-svn: 51115
* Simplify internalize pass. Add test case.Devang Patel2008-05-141-19/+21
| | | | | | Patch by Matthijs Kooijman! llvm-svn: 51114
* When bit-twiddling CondCode values for integer comparisons producesDan Gohman2008-05-141-0/+1
| | | | | | SETOEQ, is it does with (SETEQ & SETULE), map it to SETEQ. llvm-svn: 51112
* Detabification. Fixed indentation and spacing.Sanjiv Gupta2008-05-1416-606/+525
| | | | | | | Changed cout to DOUT, and TODOs to FIXMEs. Other changes as per coding conventions. llvm-svn: 51105
* Fix typo in ParameterAttribute fields usage. Add an includeNicolas Geoffray2008-05-141-2/+3
| | | | | | to make the Cpp backend output compilable. llvm-svn: 51095
* Fixed the file description header at the top to remove the developer name.Sanjiv Gupta2008-05-141-2/+2
| | | | llvm-svn: 51094
* Doh. Alignment is in bytes, not in bits.Evan Cheng2008-05-141-2/+2
| | | | llvm-svn: 51092
* Change target-specific classes to use more precise static types.Dan Gohman2008-05-1424-52/+49
| | | | | | | This eliminates the need for several awkward casts, including the last dynamic_cast under lib/Target. llvm-svn: 51091
* Whitespace cleanups.Dan Gohman2008-05-141-1/+1
| | | | llvm-svn: 51089
* Make PreVerifyID, IntSigsEnd, and KillSigsEnd const.Dan Gohman2008-05-142-3/+5
| | | | llvm-svn: 51088
* Split the loop unroll mechanism logic out into a utility function.Dan Gohman2008-05-142-379/+385
| | | | | | Patch by Matthijs Kooijman! llvm-svn: 51083
* Fix Analysis/BasicAA/pure-const-dce.ll. This turned out to be a correctnessOwen Anderson2008-05-131-1/+38
| | | | | | | | bug as well as a missed optimization. We weren't properly checking for local dependencies before moving on to non-local ones when doing non-local read-only call CSE. llvm-svn: 51082
* Merge of r51073-51074 from use-diet branch.Gabor Greif2008-05-132-1/+30
| | | | | | | | | | | Do not rely on std::swap<Use>, provide a (faster) member function instead. This change is primarily necessitated by MSVC++'s incompatibility with declaring std::swap<Use> to be a friend of Use. Also contains some minor tweaks to Use inline functions, to undo pointless changes that sneaked in with the last merge. llvm-svn: 51078
* Dominance Frontier is cfg only pass.Devang Patel2008-05-131-1/+1
| | | | llvm-svn: 51075
* Fix memdep's handling of invokes when finding the dependency of another callOwen Anderson2008-05-131-1/+1
| | | | | | instruction. This fixes some Ada miscompiles reported in PR2324. llvm-svn: 51069
* Fix for PR 2323, infinite loop in tail dup.Dale Johannesen2008-05-131-4/+15
| | | | llvm-svn: 51063
* add a noteChris Lattner2008-05-131-0/+18
| | | | llvm-svn: 51062
* - Fix the pasto in the fix for a previous pasto.Evan Cheng2008-05-131-4/+4
| | | | | | - Incorporate Chris' comment suggestion. llvm-svn: 51061
* add a noteChris Lattner2008-05-131-0/+24
| | | | llvm-svn: 51060
* Fix one more encoding bug.Nate Begeman2008-05-131-1/+1
| | | | llvm-svn: 51057
* - Don't treat anyext 16-bit load as a 32-bit load if it's volatile.Evan Cheng2008-05-131-2/+2
| | | | | | - Correct a pasto. llvm-svn: 51054
* Make the non-local CSE safety checks slightly more thorough.Owen Anderson2008-05-131-6/+8
| | | | llvm-svn: 51035
* Adding files for Microchip's PIC16 target.Sanjiv Gupta2008-05-1323-0/+3323
| | | | | | | | | | | | | | | | | A brief description about PIC16: =============================== PIC16 is an 8-bit microcontroller with only one 8-bit register which is the accumulator. All arithmetic/load/store operations are 8-bit only. The architecture has two address spaces: program and data. The program memory is divided into 2K pages and the data memory is divided into banks of 128 byte, with only 80 usable bytes, resulting in an non-contiguous data memory. It supports direct data memory access (by specifying the address as part of the instruction) and indirect data and program memory access (in an unorthodox fashion which utilize a 16 bit pointer register). Two classes of registers exist: (8-bit class which is only one accumulator) (16-bit class, which contains one or more 16 bit pointer(s)) llvm-svn: 51027
* Instead of a vector load, shuffle and then extract an element. Load the ↵Evan Cheng2008-05-134-83/+89
| | | | | | | | | | | element from address with an offset. pshufd $1, (%rdi), %xmm0 movd %xmm0, %eax => movl 4(%rdi), %eax llvm-svn: 51026
* Add support for non-local CSE of read-only calls.Owen Anderson2008-05-131-12/+45
| | | | llvm-svn: 51024
* Derive GetResultInst from UnaryInstruction, this simplifies code and removes ↵Gabor Greif2008-05-131-8/+6
| | | | | | a FIXME. llvm-svn: 51023
* Change class' public PassInfo variables to by initialized with theDan Gohman2008-05-1316-36/+31
| | | | | | | | | | | address of the PassInfo directly instead of calling getPassInfo. This eliminates a bunch of dynamic initializations of static data. Also, fold RegisterPassBase into PassInfo, make a bunch of its data members const, and rearrange some code to initialize data members in constructors instead of using setter member functions. llvm-svn: 51022
* 80 col / tabs fixesNate Begeman2008-05-132-6/+7
| | | | llvm-svn: 51021
* Fix and encoding error in the psrad xmm, imm8 instruction.Nate Begeman2008-05-131-1/+1
| | | | llvm-svn: 51020
* On x86, it's safe to treat i32 load anyext as a normal i32 load. Ditto for ↵Evan Cheng2008-05-132-27/+28
| | | | | | i8 anyext load to i16. llvm-svn: 51019
* Clean up the use of static and anonymous namespaces. This turned upDan Gohman2008-05-13124-705/+783
| | | | | | | several things that were neither in an anonymous namespace nor static but not intended to be global. llvm-svn: 51017
* Teach Legalize how to scalarize VSETCCNate Begeman2008-05-122-0/+37
| | | | | | Teach X86 a few more vsetcc patterns. Custom lowering for unsupported ones is next. llvm-svn: 51009
* Xform bitconvert(build_pair(load a, load b)) to a single load if the load ↵Evan Cheng2008-05-124-74/+55
| | | | | | locations are at the right offset from each other. llvm-svn: 51008
* Be more aggressive about tail-merging small blocksDale Johannesen2008-05-121-1/+12
| | | | | | | if those blocks consist entirely of common instructions; merging will not add an extra branch in this case. llvm-svn: 51006
OpenPOWER on IntegriCloud