1. Oct 14, 2012
  2. Oct 13, 2012
    • Benjamin Kramer's avatar
      X86: Fix accidentally swapped operands. · ecd15d7f
      Benjamin Kramer authored
      llvm-svn: 165871
      ecd15d7f
    • Chandler Carruth's avatar
      Teach SROA to cope with wrapper aggregates. These show up a lot in ABI · ba931992
      Chandler Carruth authored
      type coercion code, especially when targetting ARM. Things like [1
      x i32] instead of i32 are very common there.
      
      The goal of this logic is to ensure that when we are picking an alloca
      type, we look through such wrapper aggregates and across any zero-length
      aggregate elements to find the simplest type possible to form a type
      partition.
      
      This logic should (generally speaking) rarely fire. It only ends up
      kicking in when an alloca is accessed using two different types (for
      instance, i32 and float), and the underlying alloca type has wrapper
      aggregates around it. I noticed a significant amount of this occurring
      looking at stepanov_abstraction generated code for arm, and suspect it
      happens elsewhere as well.
      
      Note that this doesn't yet address truly heinous IR productions such as
      PR14059 is concerning. Those result in mismatched *sizes* of types in
      addition to mismatched access and alloca types.
      
      llvm-svn: 165870
      ba931992
    • Chandler Carruth's avatar
      Speculatively harden the conversion logic. I have no idea if this will · 482c6178
      Chandler Carruth authored
      help the dragonegg builders, and no test case at this point, but this
      was one dimly plausible case I spotted by inspection. Hopefully will get
      a testcase from those bots soon-ish, and will tidy this up with proper
      testing.
      
      llvm-svn: 165869
      482c6178
    • Benjamin Kramer's avatar
      X86: Promote i8 cmov when both operands are coming from truncates of the same width. · d6b9362f
      Benjamin Kramer authored
      X86 doesn't have i8 cmovs so isel would emit a branch. Emitting branches at this
      level is often not a good idea because it's too late for many optimizations to
      kick in. This solution doesn't add any extensions (truncs are free) and tries
      to avoid introducing partial register stalls by filtering direct copyfromregs.
      
      I'm seeing a ~10% speedup on reading a random .png file with libpng15 via
      graphicsmagick on x86_64/westmere, but YMMV depending on the microarchitecture.
      
      llvm-svn: 165868
      d6b9362f
    • Chandler Carruth's avatar
      Silence a warning in -assert builds. · 0fb8a778
      Chandler Carruth authored
      llvm-svn: 165867
      0fb8a778
    • Jordan Rose's avatar
      [analyzer] Remove the "direct bindings only" Environment lookup. · 690c063b
      Jordan Rose authored
      This was only used by OSAtomicChecker and makes it more
      difficult to update values for expressions that the environment
      may look through instead (it's not the same as IgnoreParens).
      With this gone, we can have bindExpr bind to the inner
      expression that getSVal will find.
      
      Groundwork for <rdar://problem/12137950>
      
      llvm-svn: 165866
      690c063b
    • Jordan Rose's avatar
      [analyzer] Remove unneeded 'inlineCall' checker callback. · 88b690dd
      Jordan Rose authored
      I believe the removed assert in CheckerManager says it best:
      
      	InlineCall is a special hacky callback to allow intrusive
      	evaluation of the call (which simulates inlining). It is
      	currently only used by OSAtomicChecker and should go away
      	at some point.
      
      OSAtomicChecker has gone away; inlineCall can now go away as well!
      
      llvm-svn: 165865
      88b690dd
    • Chandler Carruth's avatar
      Clean up how we rewrite loads and stores to the whole alloca. When these · 891fec0b
      Chandler Carruth authored
      are single value types, the load and store should be directly based upon
      the alloca and then bitcasting can fix the type as needed afterward.
      This might in theory improve some of the IR coming out of SROA, but
      I don't expect big changes yet and don't have any test cases on hand.
      This is really just a cleanup/refactoring patch. The next patch will
      cause this code path to be hit a lot more, actually get SROA to promote
      more allocas and include several more test cases.
      
      llvm-svn: 165864
      891fec0b
    • Chandler Carruth's avatar
      Fix the bootstrap of CompilerRT with host compilers that don't support · eea8a482
      Chandler Carruth authored
      emulating 128-bit arithmetic on 32-bit x86 targets. This should get the
      bootstrap back for GCC 4.6 at least.
      
      Suggestions on better ways to do the detection here are welcome...
      
      llvm-svn: 165863
      eea8a482
    • Greg Clayton's avatar
    • Greg Clayton's avatar
      <rdar://problem/12491387> · 998255bf
      Greg Clayton authored
      I added the ability for a process plug-in to implement custom commands. All the lldb_private::Process plug-in has to do is override:
      
      virtual CommandObject *
      GetPluginCommandObject();
      
      This object returned should be a multi-word command that vends LLDB commands. There is a sample implementation in ProcessGDBRemote that is hollowed out. It is intended to be used for sending a custom packet, though the body of the command execute function has yet to be implemented! 
      
      llvm-svn: 165861
      998255bf
    • Argyrios Kyrtzidis's avatar
      Don't neglect to "return *this". · 88db3171
      Argyrios Kyrtzidis authored
      llvm-svn: 165860
      88db3171
    • Chad Rosier's avatar
      Update for r165858. · ce17b0f5
      Chad Rosier authored
      llvm-svn: 165859
      ce17b0f5
    • Chad Rosier's avatar
      [ms-inline asm] Remove the MatchInstruction() function. Previously, this was · 49963555
      Chad Rosier authored
      the interface between the front-end and the MC layer when parsing inline
      assembly.  Unfortunately, this is too deep into the parsing stack. Specifically,
      we're unable to handle target-independent assembly (i.e., assembly directives,
      labels, etc.).  Note the MatchAndEmitInstruction() isn't the correct
      abstraction either.  I'll be exposing target-independent hooks shortly, so this
      is really just a cleanup.
      
      llvm-svn: 165858
      49963555
    • Greg Clayton's avatar
      <rdar://problem/12490588> · eaafa732
      Greg Clayton authored
      From SBType, we can now get a lldb::BasicType enumeration out of an existing type.
      
      llvm-svn: 165857
      eaafa732
    • Greg Clayton's avatar
      Provide an SSL context ref in case SLL is needed for communication. · 01db0c68
      Greg Clayton authored
      llvm-svn: 165856
      01db0c68