summaryrefslogtreecommitdiffstats
path: root/llvm
Commit message (Collapse)AuthorAgeFilesLines
* While legalizing SDValues do not drop SDDbgValues, trasfer them to new legal ↵Devang Patel2011-01-272-1/+4
| | | | | | | | nodes. Take 2. This includes fix for dragonegg crash. llvm-svn: 124380
* Add support for specifying register name in cfi-register/offset/defRoman Divacky2011-01-272-4/+24
| | | | | | as well as register number. llvm-svn: 124379
* Introduce virtual ParseRegister method in TargetAsmParser.Roman Divacky2011-01-274-6/+21
| | | | | | Create override of this method in X86/ARM/MBlaze. llvm-svn: 124378
* Fix indentation.Jay Foad2011-01-271-9/+9
| | | | llvm-svn: 124375
* Add DenseSet::resize for API parity with DenseMap::resize.Nick Lewycky2011-01-271-0/+3
| | | | llvm-svn: 124370
* Fix surprising missed optimization in mergefunc where we forgot to considerNick Lewycky2011-01-272-3/+88
| | | | | | that relationships like "i8* null" is equivalent to "i32* null". llvm-svn: 124368
* Don't infinitely recurse! Patch by Marius Wachtler!Chris Lattner2011-01-271-1/+1
| | | | llvm-svn: 124366
* Avoid modifying the OneClassForEachPhysReg map while iterating over it.Bob Wilson2011-01-271-2/+6
| | | | | | | | | Linear scan regalloc is currently assuming that any register aliased with a member of a regclass must also be in at least one regclass. That is not always true. For example, for X86, RIP is in a regclass but IP is not. If you're unlucky, this can cause a crash by invalidating the iterator. llvm-svn: 124365
* Add a testcase for my last checkin.Eric Christopher2011-01-271-0/+21
| | | | llvm-svn: 124358
* Use the incoming VT not the VT of where we're trying to store to determineEric Christopher2011-01-271-2/+2
| | | | | | | | if we can store a value. Also, the exclusion is or, not and. Fixes rdar://8920247. llvm-svn: 124357
* lib/Target/X86/X86ISelDAGToDAG.cpp: __main should be WINCALL64 on Win64.NAKAMURA Takumi2011-01-271-1/+1
| | | | | | CALL64 marks %xmm* as dead. llvm-svn: 124354
* Try harder to not have unused variables.Matt Beaumont-Gay2011-01-271-0/+2
| | | | llvm-svn: 124350
* Opt-mode -Wunused-variable cleanupMatt Beaumont-Gay2011-01-271-4/+2
| | | | llvm-svn: 124346
* Reapply 124301Devang Patel2011-01-271-1/+5
| | | | llvm-svn: 124339
* Initialize variable to get rid of clang warning.Bill Wendling2011-01-261-1/+1
| | | | llvm-svn: 124331
* Simplify User::operator delete().Jay Foad2011-01-262-10/+4
| | | | llvm-svn: 124330
* Add a MnemonicIsValid method to the asm matcher.Bob Wilson2011-01-261-0/+11
| | | | | | Patch by Bill Wendling. llvm-svn: 124328
* Revert 124301.Devang Patel2011-01-261-5/+1
| | | | llvm-svn: 124327
* Fix spelling of CouldMatchAmbiguouslyWith method name.Bob Wilson2011-01-261-4/+4
| | | | llvm-svn: 124324
* Whitespace and 80-column fixes.Bob Wilson2011-01-261-119/+109
| | | | llvm-svn: 124323
* Revert r124302Devang Patel2011-01-261-3/+0
| | | | llvm-svn: 124320
* Add support for printing out floating point values from the ARM assemblyBill Wendling2011-01-261-2/+27
| | | | | | | parser. The parser will always give us a binary representation of the floating point number. llvm-svn: 124318
* Improve the AsmMatcher's ability to handle suboperands.Bob Wilson2011-01-263-172/+247
| | | | | | | | | | | | | | | When an operand class is defined with MIOperandInfo set to a list of suboperands, the AsmMatcher has so far required that operand to also define a custom ParserMatchClass, and InstAlias patterns have not been able to set the individual suboperands separately. This patch removes both of those restrictions. If a "compound" operand does not override the default ParserMatchClass, then the AsmMatcher will now parse its suboperands separately. If an InstAlias operand has the same class as the corresponding compound operand, then it will be handled as before; but if that check fails, TableGen will now try to match up a sequence of InstAlias operands with the corresponding suboperands. llvm-svn: 124314
* Temporarily revert 124275 to see if it brings the dragonegg buildbot back.Eric Christopher2011-01-262-88/+85
| | | | llvm-svn: 124312
* - Do not try to print nameless variable's info. Devang Patel2011-01-261-22/+28
| | | | | | - Print a summary of breakpoints in the beginning. llvm-svn: 124308
* [AVX] Add INSERT_SUBVECTOR and support it on x86. This provides aDavid Greene2011-01-266-1/+105
| | | | | | | | default implementation for x86, going through the stack in a similr fashion to how the codegen implements BUILD_VECTOR. Eventually this will get matched to VINSERTF128 if AVX is available. llvm-svn: 124307
* While legalizing SDValues do not drop SDDbgValues, trasfer them to new legal ↵Devang Patel2011-01-261-0/+3
| | | | | | nodes. llvm-svn: 124302
* Process valid SDDbgValues even if the node does not have any order assigned.Devang Patel2011-01-261-1/+5
| | | | llvm-svn: 124301
* Refactor.Devang Patel2011-01-261-19/+30
| | | | llvm-svn: 124300
* [AVX] Support EXTRACT_SUBVECTOR on x86. This provides a defaultDavid Greene2011-01-265-9/+47
| | | | | | | | implementation of EXTRACT_SUBVECTOR for x86, going through the stack in a similr fashion to how the codegen implements BUILD_VECTOR. Eventually this will get matched to VEXTRACTF128 if AVX is available. llvm-svn: 124292
* Add encoding testcases for ARM vcvtr variationsBruno Cardoso Lopes2011-01-261-0/+9
| | | | llvm-svn: 124289
* fix the encoding and add testcases for ARM nop, yield, wfe and wfi instructionsBruno Cardoso Lopes2011-01-264-0/+37
| | | | llvm-svn: 124288
* Fix PR9039, a use-after-free in reassociate. The issue was that theDuncan Sands2011-01-262-4/+46
| | | | | | | | operand being factorized (and erased) could occur several times in Ops, resulting in freed memory being used when the next occurrence in Ops was analyzed. llvm-svn: 124287
* AttrListPtr has an overloaded operator== which does this for us, we should useNick Lewycky2011-01-262-12/+7
| | | | | | it. No functionality change! llvm-svn: 124286
* Teach mergefunc that intptr_t is the same width as a pointer. We still can'tNick Lewycky2011-01-261-1/+7
| | | | | | | merge vector<intptr_t>::push_back() and vector<void*>::push_back() because Enumerate() doesn't realize that "i64* null" and "i8** null" are equivalent. llvm-svn: 124285
* There are no vectors of pointer or arrays, so we don't need to check vectorNick Lewycky2011-01-261-7/+1
| | | | | | elements for type equivalence. llvm-svn: 124284
* APInt has a method for determining whether a number is a power of 2Duncan Sands2011-01-261-1/+1
| | | | | | which is more efficient than countPopulation - use it. llvm-svn: 124283
* Fix memory corruption. If one of the SCEV creation functions calls another butNick Lewycky2011-01-261-0/+2
| | | | | | | doesn't return immediately after then the insert position in UniqueSCEVs will be out of date. No test because this is a memory corruption issue. Fixes PR9051! llvm-svn: 124282
* Separate out the constant bonus from the size reduction metrics. ReworkEric Christopher2011-01-262-85/+88
| | | | | | | | | a few loops accordingly. Should be no functional change. This is a step for more accurate cost/benefit analysis of devirt/inlining bonuses. llvm-svn: 124275
* Add needed braces.Bill Wendling2011-01-261-1/+2
| | | | llvm-svn: 124273
* Target/X86: Tweak win64's tailcall.NAKAMURA Takumi2011-01-269-18/+83
| | | | llvm-svn: 124272
* TableGen: PointerLikeRegClass can be accepted to operand.NAKAMURA Takumi2011-01-262-2/+4
| | | | llvm-svn: 124271
* Fix whitespace.NAKAMURA Takumi2011-01-268-191/+187
| | | | llvm-svn: 124270
* lib/Target/X86/X86RegisterInfo.cpp: Fix whitespace.NAKAMURA Takumi2011-01-261-3/+3
| | | | llvm-svn: 124268
* lib/Target/X86/X86RegisterInfo.cpp: Fix a typo in comment.NAKAMURA Takumi2011-01-261-1/+1
| | | | llvm-svn: 124267
* Coding style formatting changes.Eric Christopher2011-01-261-7/+2
| | | | llvm-svn: 124260
* Rename member variables to follow the rest of LLVM.Jakob Stoklund Olesen2011-01-262-295/+295
| | | | | | No functional change. llvm-svn: 124257
* Provide an interface to transfer SDDbgValue from one SDNode to another.Devang Patel2011-01-253-0/+32
| | | | llvm-svn: 124245
* [AVX] Fix a typo in the extract subvector type constraints to specifyDavid Greene2011-01-251-2/+2
| | | | | | the correct number of operands. llvm-svn: 124234
* Revert 124230. It was causing test failures.Bill Wendling2011-01-251-4/+2
| | | | llvm-svn: 124233
OpenPOWER on IntegriCloud