1. May 19, 2013
  2. May 18, 2013
    • Hal Finkel's avatar
      Check InlineAsm clobbers in PPCCTRLoops · 2f474f0e
      Hal Finkel authored
      We don't need to reject all inline asm as using the counter register (most does
      not). Only those that explicitly clobber the counter register need to prevent
      the transformation.
      
      llvm-svn: 182191
      2f474f0e
    • Tim Northover's avatar
      AArch64: add CMake dependency to fix very parallel builds · fd2639f7
      Tim Northover authored
      llvm-svn: 182190
      fd2639f7
    • Serge Pavlov's avatar
      Removed invalid character. · 11120067
      Serge Pavlov authored
      llvm-svn: 182189
      11120067
    • Jordan Rose's avatar
      [analyzer] New edges: include an edge to the end-of-path location. · 933e5ba7
      Jordan Rose authored
      llvm-svn: 182188
      933e5ba7
    • Jordan Rose's avatar
      [analyzer] "Fix" ParentMap to handle non-syntactic OpaqueValueExprs. · c3f1cb3b
      Jordan Rose authored
      Constructs like PseudoObjectExpr, where an expression can appear more than
      once in the AST, use OpaqueValueExprs to guard against inadvertent
      re-processing of the shared expression during AST traversal. The most
      common form of this is to share expressions between the syntactic
      "as-written" form of, say, an Objective-C property access 'obj.prop', and
      the underlying "semantic" form '[obj prop]'.
      
      However, some constructs can produce OpaqueValueExprs that don't appear in
      the syntactic form at all; in these cases the ParentMap wasn't ever traversing
      the children of these expressions. This patch fixes that by checking to see
      if an OpaqueValueExpr's child has ever been traversed before. There's also a
      bit of reset logic when visiting a PseudoObjectExpr to handle the case of
      updating the ParentMap, which some external clients depend on.
      
      This still isn't exactly the right fix because we probably want the parent
      of the OpaqueValueExpr itself to be its location in the syntactic form if
      it's syntactic and the PseudoObjectExpr or BinaryConditionalOperator itself
      if it's semantic. Whe I originally wrote the code to do this, I didn't realize
      that OpaqueValueExprs themselves are shared in the AST, not just their source
      expressions. This patch doesn't change the existing behavior so as not to
      break anything inadvertently relying on it; we'll come back to this later.
      
      llvm-svn: 182187
      c3f1cb3b
    • Jordan Rose's avatar
      [analyzer] Add a debug dump for PathPieces, a list of PathDiagnosticPieces. · 7c40d078
      Jordan Rose authored
      Originally implemented by Ted, extended by me.
      
      llvm-svn: 182186
      7c40d078
    • Jordan Rose's avatar
      Revert "[analyzer; alternate edges] improve support for edges with PseudoObjectExprs." · 433b0f54
      Jordan Rose authored
      Ted and I spent a long time discussing this today and found out that neither
      the existing code nor the new code was doing what either of us thought it
      was, which is never good. The good news is we found a much simpler way to
      fix the motivating test case (an ObjCSubscriptExpr).
      
      This reverts r182083, but pieces of it will come back in subsequent commits.
      
      llvm-svn: 182185
      433b0f54
    • David Majnemer's avatar
      X86: Bad peephole interaction between adc, MOV32r0 · 5ba473af
      David Majnemer authored
      The peephole tries to reorder MOV32r0 instructions such that they are
      before the instruction that modifies EFLAGS.
      
      The problem is that the peephole does not consider the case where the
      instruction that modifies EFLAGS also depends on the previous state of
      EFLAGS.
      
      Instead, walk backwards until we find an instruction that has a def for
      EFLAGS but does not have a use.
      If we find such an instruction, insert the MOV32r0 before it.
      If it cannot find such an instruction, skip the optimization.
      
      llvm-svn: 182184
      5ba473af
    • Sean Callanan's avatar
      Fixed a problem where the dynamic checkers (i.e., · e8cde68a
      Sean Callanan authored
      the Objective-C object checker and the pointer
      checker) were not always installed into expressions.
      
      <rdar://problem/13882566>
      
      llvm-svn: 182183
      e8cde68a
    • Rafael Espindola's avatar
      Handle local enum types too. · b6ed1531
      Rafael Espindola authored
      Thanks to John McCall for pointing this out.
      
      llvm-svn: 182182
      b6ed1531
    • Matt Arsenault's avatar
      Remove duplicated comment · e858e960
      Matt Arsenault authored
      The same comment is already made in the header
      
      llvm-svn: 182181
      e858e960
    • Matt Arsenault's avatar
      Add LLVMContext argument to getSetCCResultType · 75865923
      Matt Arsenault authored
      llvm-svn: 182180
      75865923
    • Greg Clayton's avatar
      <rdar://problem/11398407> · 6ecb232b
      Greg Clayton authored
      Name matching was working inconsistently across many places in LLDB. Anyone doing name lookups where you want to look for all types of names should used "eFunctionNameTypeAuto" as the sole name type mask. This will ensure that we get consistent "lookup function by name" results. We had many function calls using as mask like "eFunctionNameTypeBase | eFunctionNameTypeFull | eFunctionNameTypeMethod | eFunctionNameTypeSelector". This was due to the function lookup by name evolving over time, but as it stands today, use eFunctionNameTypeAuto when you want general name lookups. Either ModuleList::FindFunctions() or Module::FindFunctions() will figure out the right kinds of names to lookup and remove the "eFunctionNameTypeAuto" and replace it with the exact subset of what the name can be.
      
      This checkin also changes eFunctionNameTypeAny over to use eFunctionNameTypeAuto to reflect this.
      
      llvm-svn: 182179
      6ecb232b
    • Adrian Prantl's avatar
      Drop the const from the isa test. · b39fc142
      Adrian Prantl authored
      llvm-svn: 182178
      b39fc142
    • David Blaikie's avatar
      Fix the UBSan CMake build broken in r182118 · 97c3018a
      David Blaikie authored
      llvm-svn: 182177
      97c3018a
    • Adrian Prantl's avatar
      ObjC Debug Info: Emit the correct method names for accessors for · 6e785ec0
      Adrian Prantl authored
      properties declared in a protocol.
      
      rdar://problem/13798000
      
      llvm-svn: 182176
      6e785ec0
    • JF Bastien's avatar
      Support unaligned load/store on more ARM targets · 97b08c40
      JF Bastien authored
      This patch matches GCC behavior: the code used to only allow unaligned
      load/store on ARM for v6+ Darwin, it will now allow unaligned load/store
      for v6+ Darwin as well as for v7+ on Linux and NaCl.
      
      The distinction is made because v6 doesn't guarantee support (but LLVM
      assumes that Apple controls hardware+kernel and therefore have
      conformant v6 CPUs), whereas v7 does provide this guarantee (and
      Linux/NaCl behave sanely).
      
      The patch keeps the -arm-strict-align command line option, and adds
      -arm-no-strict-align. They behave similarly to GCC's -mstrict-align and
      -mnostrict-align.
      
      I originally encountered this discrepancy in FastIsel tests which expect
      unaligned load/store generation. Overall this should slightly improve
      performance in most cases because of reduced I$ pressure.
      
      llvm-svn: 182175
      97b08c40
    • Enrico Granata's avatar
      <rdar://problem/13928053> · 5a9c4fe2
      Enrico Granata authored
      Fix the fact that an empty NSString (e.g. one obtained from @"" would show no summary)
      
      llvm-svn: 182173
      5a9c4fe2
    • Rafael Espindola's avatar
      Fix the configure build. · e6211f7a
      Rafael Espindola authored
      llvm-svn: 182172
      e6211f7a
    • Sebastian Pop's avatar
    • DeLesley Hutchins's avatar
      Thread safety analysis: add two new attributes to the thread safety analysis: · b6824317
      DeLesley Hutchins authored
      assert_exclusive_lock and assert_shared_lock.  These attributes are used to
      mark functions that dynamically check (i.e. assert) that a lock is held.
      
      llvm-svn: 182170
      b6824317
    • Rafael Espindola's avatar
      Convert obj2yaml to use yamlio. · f5bb53f1
      Rafael Espindola authored
      llvm-svn: 182169
      f5bb53f1
    • Rafael Espindola's avatar
      Fix the build in c++11 mode. · 5986ce0e
      Rafael Espindola authored
      The errors were:
      
      non-constant-expression cannot be narrowed from type 'int64_t' (aka 'long') to 'uint32_t' (aka 'unsigned int') in initializer list
      
      and
      
      non-constant-expression cannot be narrowed from type 'long' to 'uint32_t' (aka 'unsigned int') in initializer list
      
      llvm-svn: 182168
      5986ce0e
    • Rafael Espindola's avatar
      Use the awesome CHECK-DAG! · 94c2fea6
      Rafael Espindola authored
      llvm-svn: 182167
      94c2fea6
    • Matt Kopec's avatar
      The Linux process plugin wasn't returning the correct linux signals. This fixes that. · 841a5488
      Matt Kopec authored
      Thus, this patch also negates a previous fix for handling SIGCHLD.
      
      llvm-svn: 182166
      841a5488
    • Matt Arsenault's avatar
      Replace redundant code · 04126234
      Matt Arsenault authored
      Use EVT::changeExtendedVectorElementTypeToInteger instead of doing the
      same thing that it does
      
      llvm-svn: 182165
      04126234