summaryrefslogtreecommitdiffstats
path: root/llvm
Commit message (Collapse)AuthorAgeFilesLines
...
* Add some bits that I found useful when converting InsertValueInst andJay Foad2011-07-131-1/+30
| | | | | | | ExtractValueInst APIs to use ArrayRef: a new constructor taking a (begin, end) range, and operators == and != for element-wise comparison. llvm-svn: 135039
* Add to RuntimeDyld support different object formatsDanil Malyshev2011-07-135-599/+694
| | | | llvm-svn: 135037
* stop leaking all named struct types with an empty name. ThanksChris Lattner2011-07-133-8/+18
| | | | | | to Benjamin Kramer for steering me in the right direction here. llvm-svn: 135031
* Add an entry.Evan Cheng2011-07-131-0/+18
| | | | llvm-svn: 135024
* AVX Codegen support for 256-bit versions of vandps, vandpd, vorps, vorpd, ↵Bruno Cardoso Lopes2011-07-133-8/+143
| | | | | | vxorps, vxorpd llvm-svn: 135023
* Don't emit the FDE end label if the last thing emitted was a compact unwind andBill Wendling2011-07-132-8/+18
| | | | | | not the FDE llvm-svn: 135020
* Add an assert (which should never trigger) that triggers on a testcase I'm ↵Eli Friedman2011-07-131-1/+3
| | | | | | looking at. llvm-svn: 135018
* Improve codegen for select's:Evan Cheng2011-07-137-116/+103
| | | | | | | | | | | | | | | | | | | | if (x != 0) x = 1 if (x == 1) x = 1 Previous codegen looks like this: mov r1, r0 cmp r1, #1 mov r0, #0 moveq r0, #1 The naive lowering select between two different values. It should recognize the test is equality test so it's more a conditional move rather than a select: cmp r0, #1 movne r0, #0 rdar://9758317 llvm-svn: 135017
* Assign variable before we test it.Bill Wendling2011-07-131-2/+1
| | | | llvm-svn: 135015
* Fix obvious think-o.Bill Wendling2011-07-131-1/+1
| | | | llvm-svn: 135014
* Clean up the handling of an EBP/RBP unwind frame pointer. In particular, don'tBill Wendling2011-07-131-23/+26
| | | | | | | | assert when the frame pointer is -1 (i.e., the function is "frameless"). Still to do: "frameless" unwind information. llvm-svn: 135013
* There is a cyclic dependency between MC and Target if this method is ↵Bill Wendling2011-07-122-7/+4
| | | | | | out-of-line. llvm-svn: 135006
* Remove the const from Type after of Jay deconstify work.Francois Pichet2011-07-121-1/+1
| | | | llvm-svn: 135000
* Delete StructType bodies when destroying a StructType.Benjamin Kramer2011-07-121-0/+4
| | | | | | Leak found by valgrind. llvm-svn: 134994
* Add check for predicate w/o S bit.Jim Grosbach2011-07-121-0/+2
| | | | llvm-svn: 134987
* Improve test cases from r134746.Jim Grosbach2011-07-122-5/+21
| | | | | | | Use memory barriers to force if-conversion off for these tests instead of the internal llc command line option ifcvt-limit. llvm-svn: 134986
* Reverted 134901 because of 134959. Did not use svn merge -r but rather:Garrison Venn2011-07-121-24/+24
| | | | | | | | | | | | | 1,$s/llvm::Type::getInt\(..\)Ty(builder.getContext())/builder.getInt\1Ty()/g 1,$s/builder.getInt\(..*\)Ty()->getPointerTo()/builder.getInt\1PtrTy()/g vi sub commands (second one was not a reversion but requested by Tobias Grosser. Mod was tested, but other examples have failed to build as they are currently being thrashed with the const qualifier removal change. llvm-svn: 134985
* Second attempt at de-constifying LLVM Types in FunctionType::get(),Jay Foad2011-07-1236-154/+129
| | | | | | StructType::get() and TargetData::getIntPtrType(). llvm-svn: 134982
* VectorType is also a SequentialTypeTobias Grosser2011-07-121-1/+1
| | | | llvm-svn: 134979
* Remove IntegerType constness from TargetDataTobias Grosser2011-07-122-2/+2
| | | | llvm-svn: 134978
* Fix the BrainF build.Francois Pichet2011-07-121-1/+1
| | | | llvm-svn: 134975
* simplify assertions to not be completely redundant.Chris Lattner2011-07-121-15/+2
| | | | llvm-svn: 134968
* make the IRBuilder type methods return non-const types.Chris Lattner2011-07-122-13/+13
| | | | llvm-svn: 134959
* Comment correction.Andrew Trick2011-07-121-2/+3
| | | | llvm-svn: 134958
* Revert r134893 and r134888 (and related patches in other trees). It was causingBill Wendling2011-07-1238-131/+156
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | an assert on Darwin llvm-gcc builds. Assertion failed: (castIsValid(op, S, Ty) && "Invalid cast!"), function Create, file /Users/buildslave/zorg/buildbot/smooshlab/slave-0.8/build.llvm-gcc-i386-darwin9-RA/llvm.src/lib/VMCore/Instructions.cpp, li\ ne 2067. etc. http://smooshlab.apple.com:8013/builders/llvm-gcc-i386-darwin9-RA/builds/2354 --- Reverse-merging r134893 into '.': U include/llvm/Target/TargetData.h U include/llvm/DerivedTypes.h U tools/bugpoint/ExtractFunction.cpp U unittests/Support/TypeBuilderTest.cpp U lib/Target/ARM/ARMGlobalMerge.cpp U lib/Target/TargetData.cpp U lib/VMCore/Constants.cpp U lib/VMCore/Type.cpp U lib/VMCore/Core.cpp U lib/Transforms/Utils/CodeExtractor.cpp U lib/Transforms/Instrumentation/ProfilingUtils.cpp U lib/Transforms/IPO/DeadArgumentElimination.cpp U lib/CodeGen/SjLjEHPrepare.cpp --- Reverse-merging r134888 into '.': G include/llvm/DerivedTypes.h U include/llvm/Support/TypeBuilder.h U include/llvm/Intrinsics.h U unittests/Analysis/ScalarEvolutionTest.cpp U unittests/ExecutionEngine/JIT/JITTest.cpp U unittests/ExecutionEngine/JIT/JITMemoryManagerTest.cpp U unittests/VMCore/PassManagerTest.cpp G unittests/Support/TypeBuilderTest.cpp U lib/Target/MBlaze/MBlazeIntrinsicInfo.cpp U lib/Target/Blackfin/BlackfinIntrinsicInfo.cpp U lib/VMCore/IRBuilder.cpp G lib/VMCore/Type.cpp U lib/VMCore/Function.cpp G lib/VMCore/Core.cpp U lib/VMCore/Module.cpp U lib/AsmParser/LLParser.cpp U lib/Transforms/Utils/CloneFunction.cpp G lib/Transforms/Utils/CodeExtractor.cpp U lib/Transforms/Utils/InlineFunction.cpp U lib/Transforms/Instrumentation/GCOVProfiling.cpp U lib/Transforms/Scalar/ObjCARC.cpp U lib/Transforms/Scalar/SimplifyLibCalls.cpp U lib/Transforms/Scalar/MemCpyOptimizer.cpp G lib/Transforms/IPO/DeadArgumentElimination.cpp U lib/Transforms/IPO/ArgumentPromotion.cpp U lib/Transforms/InstCombine/InstCombineCompares.cpp U lib/Transforms/InstCombine/InstCombineAndOrXor.cpp U lib/Transforms/InstCombine/InstCombineCalls.cpp U lib/CodeGen/DwarfEHPrepare.cpp U lib/CodeGen/IntrinsicLowering.cpp U lib/Bitcode/Reader/BitcodeReader.cpp llvm-svn: 134949
* TypeMap had a destructor that destroyed the types it held. DenseMap did not, soNick Lewycky2011-07-121-14/+18
| | | | | | destroy those types in ~LLVMContext. llvm-svn: 134945
* indvars: Code reorganization in preparation forAndrew Trick2011-07-121-589/+624
| | | | | | | | | | | | | | | | | LinearFunctionTestReplace rewrite. No functionality. I've been wanting to group the indvar subphases into sections and order them by their logical sequence. My next checkin adds functions related to LFTR, and doing the reorg now should help reviewers. Since, most of the code in IndVarSimplify.cpp has recently been replaced or will be replaced soon, obscuring blame should not be an issue. This seems like an ideal time to shuffle the code around. I'm happy to take more suggestions for cleaning up the code. Or if you've been wanting to cleanup anything in this file yourself, now is a good time. llvm-svn: 134941
* Revert r134921, 134917, 134908 and 134907. They're causing failuresEric Christopher2011-07-1131-1712/+1002
| | | | | | in multiple buildbots. llvm-svn: 134936
* fix some examplesJohn Wiegley2011-07-116-11/+11
| | | | llvm-svn: 134933
* Fix LTO after the recent MC subtarget refactoring.Cameron Zwarich2011-07-112-0/+2
| | | | llvm-svn: 134930
* Most MCCodeEmitter's don't meed MCContext.Evan Cheng2011-07-113-7/+3
| | | | llvm-svn: 134922
* Use get(0 Instead of Create()David Greene2011-07-116-137/+137
| | | | | | Respond to some feedback asking for a name change. llvm-svn: 134921
* Disassembler doesn't need TargetMachine anymore.Evan Cheng2011-07-111-17/+0
| | | | llvm-svn: 134920
* struct Init -> class Init.Evan Cheng2011-07-113-3/+3
| | | | llvm-svn: 134917
* Fix BuildDavid Greene2011-07-111-1/+1
| | | | | | Update the tag for Init to match how it's defined. llvm-svn: 134908
* [AVX] Make Inits FoldableDavid Greene2011-07-1131-998/+1708
| | | | | | | | | | | | | | | | | | Manage Inits in a FoldingSet. This provides several benefits: - Memory for Inits is properly managed - Duplicate Inits are folded into Flyweights, saving memory - It enforces const-correctness, protecting against certain classes of bugs The above benefits allow Inits to be used in more contexts, which in turn provides more dynamism to TableGen. This enhanced capability will be used by the AVX code generator to a fold common patterns together. llvm-svn: 134907
* Resynchronize EDInfo.h and EDEmitter.cpp.Shantonu Sen2011-07-113-25/+42
| | | | | | | | | | | | The enum names as well as order (i.e. value) had skewed, which means that consumers of the tablegen-ed table would see different values than intended. Make both files have a superset of enums, and add classification as needed for numMCOperands. Reviewed by Owen Anderson llvm-svn: 134905
* Fix recognition of ARM 'adcs' mnemonic.Jim Grosbach2011-07-112-23/+57
| | | | | | The 'CS' is not a predication suffix in this case. llvm-svn: 134903
* Simplify printing of ARM shifted immediates.Jim Grosbach2011-07-1112-58/+22
| | | | | | | | | Print shifted immediate values directly rather than as a payload+shifter value pair. This makes for more readable output assembly code, simplifies the instruction printer, and is consistent with how Thumb immediates are displayed. llvm-svn: 134902
* Modified demo to work with non const Type parameters as is required by newGarrison Venn2011-07-111-15/+16
| | | | | | | | | | | type system. However most of these modifications were due to IRBuilder (IRBuilderBase), not having been modified to NOT return such const qualified free types. If IRBuilder does not change, as can also be seen in its instruction creation methods, to use const free types, it may be useful to have ExceptionDemo drop IRBuilder usage. Modifying builder.getInt32Ty() to llvm::Type::getInt32Ty(builder.getContext()) is pretty ugly. llvm-svn: 134901
* test/CodeGen/PowerPC/vector.ll: Tweak redirection >%t >%t to >%t >>%t. See ↵NAKAMURA Takumi2011-07-111-1/+1
| | | | | | also r134814 (test/CodeGen/X86/vector.ll). llvm-svn: 134900
* De-constify Types in StructType::get() and TargetData::getIntPtrType().Jay Foad2011-07-1113-32/+19
| | | | llvm-svn: 134893
* Add a missing test for r134882.Cameron Zwarich2011-07-111-0/+8
| | | | llvm-svn: 134889
* De-constify Types in FunctionType::get().Jay Foad2011-07-1131-124/+112
| | | | llvm-svn: 134888
* Remove mentions of type planes.Jay Foad2011-07-111-4/+4
| | | | llvm-svn: 134887
* - Eliminate MCCodeEmitter's dependency on TargetMachine. It now uses MCInstrInfoEvan Cheng2011-07-1146-157/+386
| | | | | | | | | | | | and MCSubtargetInfo. - Added methods to update subtarget features (used when targets automatically detect subtarget features or switch modes). - Teach X86Subtarget to update MCSubtargetInfo features bits since the MCSubtargetInfo layer can be shared with other modules. - These fixes .code 16 / .code 32 support since mode switch is updated in MCSubtargetInfo so MC code emitter can do the right thing. llvm-svn: 134884
* Don't duplicate the work done by a gep into a "bitcast" if the gep hasRafael Espindola2011-07-112-0/+24
| | | | | | | | more than one use. Fixes PR10322. llvm-svn: 134883
* Fix <rdar://problem/9751331>.Cameron Zwarich2011-07-111-3/+3
| | | | llvm-svn: 134882
* Silence -Wunused-variable in release builds.Chandler Carruth2011-07-101-0/+2
| | | | llvm-svn: 134868
* Make the destructor virtual to silence GCC's -Wnon-virtual-dtor. Let meChandler Carruth2011-07-101-1/+1
| | | | | | know if there is some problem with this destructor being virtual... llvm-svn: 134867
OpenPOWER on IntegriCloud