summaryrefslogtreecommitdiffstats
path: root/llvm
Commit message (Collapse)AuthorAgeFilesLines
* Add getFirstInsertionPt() method.Bill Wendling2011-08-162-0/+15
| | | | | | | | getFirstInsertionPt() returns an iterator to the first insertion point in a basic block. This is after all PHIs and any other instruction which is required to be at the top of the basic block (like LandingPadInst). llvm-svn: 137744
* I think there was some confusion about what I meant. :-) Replacing the comment.Bill Wendling2011-08-161-1/+4
| | | | llvm-svn: 137743
* Prefer diagnostics from target predicate in asm matcher.Jim Grosbach2011-08-161-2/+5
| | | | llvm-svn: 137742
* Remove unused Target argument from AsmParser construction methods.Jim Grosbach2011-08-166-11/+10
| | | | | | The argument is unused, and is a layering violation in any case. llvm-svn: 137735
* Remove unused forward declaration.Jim Grosbach2011-08-161-1/+0
| | | | llvm-svn: 137734
* Instead of always leaving the work to the generic legalizer whenBruno Cardoso Lopes2011-08-162-0/+139
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | there is no support for native 256-bit shuffles, be more smart in some cases, for example, when you can extract specific 128-bit parts and use regular 128-bit shuffles for them. Example: For this shuffle: shufflevector <4 x i64> %a, <4 x i64> %b, <4 x i32> <i32 1, i32 0, i32 7, i32 6> This was expanded to: vextractf128 $1, %ymm1, %xmm2 vpextrq $0, %xmm2, %rax vmovd %rax, %xmm1 vpextrq $1, %xmm2, %rax vmovd %rax, %xmm2 vpunpcklqdq %xmm1, %xmm2, %xmm1 vpextrq $0, %xmm0, %rax vmovd %rax, %xmm2 vpextrq $1, %xmm0, %rax vmovd %rax, %xmm0 vpunpcklqdq %xmm2, %xmm0, %xmm0 vinsertf128 $1, %xmm1, %ymm0, %ymm0 ret Now we get: vshufpd $1, %xmm0, %xmm0, %xmm0 vextractf128 $1, %ymm1, %xmm1 vshufpd $1, %xmm1, %xmm1, %xmm1 vinsertf128 $1, %xmm1, %ymm0, %ymm0 llvm-svn: 137733
* Remove unnecessary version check.Devang Patel2011-08-161-2/+1
| | | | llvm-svn: 137728
* Add test case for r137711.Akira Hatanaka2011-08-161-0/+36
| | | | llvm-svn: 137725
* ARM .align NOP padding uses different encoding pre-ARMv6.Jim Grosbach2011-08-165-14/+81
| | | | | | Patch by Kristof Beyls and James Malloy. llvm-svn: 137723
* Tidy up. Trailing whitespace.Jim Grosbach2011-08-161-45/+45
| | | | llvm-svn: 137721
* Revert r137562 because it caused PR10674Nadav Rotem2011-08-161-7/+0
| | | | llvm-svn: 137719
* Add a mechanism for optimisation plugins to register passes that all front ↵David Chisnall2011-08-162-1/+29
| | | | | | | | ends can use without needing to be aware of the plugin (or the plugin be aware of the front end). Before 3.0, I'd like to add a mechanism for automatically loading a set of plugins from a config file. API suggestions welcome... llvm-svn: 137717
* Remove unimplemented method. Fixes PR10658.Rafael Espindola2011-08-161-10/+0
| | | | | | Thanks to Jonas Gafele for noticing. llvm-svn: 137716
* cmake/modules/FindBison.cmake: It must be unneeded any more.NAKAMURA Takumi2011-08-161-52/+0
| | | | llvm-svn: 137715
* A few places where we want to skip the landingpad instruction for insertion.Bill Wendling2011-08-163-2/+8
| | | | llvm-svn: 137712
* Fix handling of double precision loads and stores when Mips1 is targeted. Akira Hatanaka2011-08-167-168/+74
| | | | | | | | | | | | | | | Mips1 does not support double precision loads or stores, therefore two single precision loads or stores must be used in place of these instructions. This patch treats double precision loads and stores as if they are legal instructions until MCInstLowering, instead of generating the single precision instructions during instruction selection or Prolog/Epilog code insertion. Without the changes made in this patch, llc produces code that has the same problem described in r137484 or bails out when MipsInstrInfo::storeRegToStackSlot or loadRegFromStackSlot is called before register allocation. llvm-svn: 137711
* Define function MipsMCInstLower::LowerOperand. Akira Hatanaka2011-08-162-25/+29
| | | | llvm-svn: 137707
* Add parameter Offset to MipsMCInstLower::LowerSymbolOperand. Akira Hatanaka2011-08-162-5/+5
| | | | llvm-svn: 137706
* Fix test.Eli Friedman2011-08-161-1/+1
| | | | llvm-svn: 137703
* Revert a bit of r137667; the logic in question can safely handle atomic ↵Eli Friedman2011-08-162-4/+25
| | | | | | load/store. llvm-svn: 137702
* Migrate this test from llvm/test/FrontendC++/ptr-to-method-devirt.cpp andEric Christopher2011-08-161-0/+39
| | | | | | FileCheckize. It is more properly an optimizer test. llvm-svn: 137700
* After talking with Bill, it seems like the LandingPad handling here is likelyEli Friedman2011-08-161-4/+1
| | | | | | to be wrong (or at least somewhat suspect). Leave a FIXME for Bill. llvm-svn: 137694
* Minor comment fixes.Eli Friedman2011-08-162-5/+7
| | | | llvm-svn: 137693
* Update SimplifyCFG for atomic operations.Eli Friedman2011-08-152-10/+69
| | | | | | | | This commit includes a mention of the landingpad instruction, but it's not changing the behavior around it. I think the current behavior is correct, though. Bill, can you double-check that? llvm-svn: 137691
* Add comments and test for atomic load/store and mem2reg.Eli Friedman2011-08-152-0/+16
| | | | llvm-svn: 137690
* Refactor.Devang Patel2011-08-152-49/+68
| | | | llvm-svn: 137689
* Add a test file for Thumb2 NEON.Owen Anderson2011-08-151-0/+1586
| | | | llvm-svn: 137687
* Specify a necessary fixed bit for VLD3DUP, and otherwise rearrange the ↵Owen Anderson2011-08-153-20/+27
| | | | | | Thumb2 NEON decoding hooks to bring us closer to correctness. llvm-svn: 137686
* While I'm here, remove the "_alt" hacks to a series of INSERT_SUBREG andBruno Cardoso Lopes2011-08-151-15/+25
| | | | | | also add the AVX versions of the 128-bit patterns llvm-svn: 137685
* Reorder declarations of vmovmskp* and also put the necessary AVXBruno Cardoso Lopes2011-08-152-31/+43
| | | | | | | predicate and TB encoding fields. This fix the encoding for the attached testcase. This fixes PR10625. llvm-svn: 137684
* Continue to hoist uses of getCompileUnit() up. The goal is to get rid of ↵Devang Patel2011-08-152-21/+24
| | | | | | uses of getCompileUnit(). llvm-svn: 137683
* Avoid evaluating Neon macro arguments more than once by disabling type checks.Bob Wilson2011-08-151-15/+8
| | | | | | | | | | It turns out that the use of "__extension__" in these macros was disabling the expected "incompatible pointer" warnings, so these type checks were not doing anything anyway. They introduced a serious bug by evaluating some macro arguments twice, which is a big problem for arguments with side effects. I'll have to find another way to get the right type checking. Radar 9947657. llvm-svn: 137680
* In places where it's using "getFirstNonPHI", skip the landingpad instruction ↵Bill Wendling2011-08-151-5/+8
| | | | | | if necessary. llvm-svn: 137679
* MCTargetAsmParser target match predicate support.Jim Grosbach2011-08-155-7/+30
| | | | | | | | Allow a target assembly parser to do context sensitive constraint checking on a potential instruction match. This will be used, for example, to handle Thumb2 IT block parsing. llvm-svn: 137675
* Add a finalize() hook, that'll let DIBuilder construct compile unit lazily.Devang Patel2011-08-153-0/+11
| | | | llvm-svn: 137673
* Don't sink the instruction to before a landingpad instruction.Bill Wendling2011-08-151-1/+1
| | | | llvm-svn: 137672
* This is somewhat déjà-vu, but avoid using getCompileUnit() as much as ↵Devang Patel2011-08-152-14/+14
| | | | | | possible. llvm-svn: 137668
* Update inter-procedural optimizations for atomic load/store.Eli Friedman2011-08-154-10/+16
| | | | llvm-svn: 137667
* Update instcombine for atomic load/store.Eli Friedman2011-08-154-31/+54
| | | | llvm-svn: 137664
* Refactor. Variables are part of compile unit so let CompileUnit create new ↵Devang Patel2011-08-154-123/+129
| | | | | | variable. llvm-svn: 137663
* Add some comments here because the lack of a check for volatile/atomic here ↵Eli Friedman2011-08-151-0/+4
| | | | | | is a bit unusual. llvm-svn: 137662
* Fix PR10656. It's only profitable to use 128-bit inserts and extractsBruno Cardoso Lopes2011-08-152-4/+26
| | | | | | | when AVX mode is one. Otherwise is just more work for the type legalizer. llvm-svn: 137661
* There is no need to maintain a set to keep track of variables that use ↵Devang Patel2011-08-152-8/+2
| | | | | | location expressions. In such cases, AT_location attribute's value will be a label. llvm-svn: 137659
* Fix warning.Devang Patel2011-08-152-2/+2
| | | | llvm-svn: 137658
* Add some more comprehensive VFP decoding tests.Owen Anderson2011-08-151-0/+213
| | | | llvm-svn: 137657
* Simplify. Let DbgVariable keep track of variable's DBG_VALUE machine ↵Devang Patel2011-08-152-55/+24
| | | | | | instruction. llvm-svn: 137656
* Duncan pointed out that the LandingPadInst might read memory. (It might alsoBill Wendling2011-08-153-6/+4
| | | | | | write to memory.) Marking it as such makes some checks for immobility go away. llvm-svn: 137655
* Fix llvm::CloneModule to correctly clone globals. Patch per bug report by ↵Eli Friedman2011-08-151-14/+13
| | | | | | Simon Moll on llvmdev. llvm-svn: 137654
* Fix predicates methods on Instruction to handle atomic load/store correctly.Eli Friedman2011-08-151-7/+15
| | | | llvm-svn: 137652
* Fix this test to avoid leaving a temporary file behind.Eric Christopher2011-08-151-1/+1
| | | | llvm-svn: 137651
OpenPOWER on IntegriCloud