Skip to content
  1. Jul 17, 2012
  2. Jul 16, 2012
    • Ted Kremenek's avatar
      This test appears to fail on win32. · a0d18e51
      Ted Kremenek authored
      llvm-svn: 160322
      a0d18e51
    • Ted Kremenek's avatar
      Add hack (provided by Jonathan Sauer) to fall back to assuming Xcode is installed in /Developer · 4abbade5
      Ted Kremenek authored
      when using Python < 2.7.0.  This is the case on Snow Leopard, where the tools are always
      installed in /Developer.  This isn't a proper fix for really figuring out where Xcode
      is installed, but should work to fix an obvious problem on Snow Leopard.
      
      llvm-svn: 160321
      4abbade5
    • Ted Kremenek's avatar
      This test appears to be passing on win32. · cf74cef1
      Ted Kremenek authored
      llvm-svn: 160320
      cf74cef1
    • Jordan Rose's avatar
      Don't crash when emitting fixits following Unicode characters. · fb12a53d
      Jordan Rose authored
      This code is very sensitive to the difference between "columns" as printed
      and "bytes" (SourceManager columns). All variables are now named explicitly
      and our assumptions are (hopefully) documented as both comment and assertion.
      
      Whether parseable fixits should use byte offsets or Unicode character counts
      is pending discussion on the mailing list; currently the implementation uses
      bytes (and has no problems on lines containing multibyte characters).
      This has been added to the user manual.
      
      <rdar://problem/11877454>
      
      llvm-svn: 160319
      fb12a53d
    • David Blaikie's avatar
      Simplify float comparison checks by using early return. · 1f4ff15c
      David Blaikie authored
      Found while investigating PR13330
      
      llvm-svn: 160318
      1f4ff15c
    • Nuno Lopes's avatar
      teach ConstantRange that zero times X is always zero · 986cc181
      Nuno Lopes authored
      llvm-svn: 160317
      986cc181
    • Greg Clayton's avatar
      Enable the "symbolicate" interactive command to symbolicate all crash logs if... · 784933b7
      Greg Clayton authored
      Enable the "symbolicate" interactive command to symbolicate all crash logs if no indexes are supplied. This can be handy to use as:
      
      (lldb) script import lldb.macosx.crashlog
      (lldb) crashlog -i /tmp/*.crash
      % symbolicate --crashed-only
      
      This will symbolicate all of the crash logs only for the crashed thread.
      
      Also print out the crash log index number in the output of the interactive "image" command:
      
      (lldb) script import lldb.macosx.crashlog
      (lldb) crashlog -i /tmp/*.crash
      % image LLDB.framework
      ...
      
      This then allows you to symbolicate a crash log by index accurately when you looked for an image of a specific version
      
      llvm-svn: 160316
      784933b7
    • Ted Kremenek's avatar
      Fix copy-paste mistake for CMake dependency. · 816255dc
      Ted Kremenek authored
      llvm-svn: 160315
      816255dc
    • Anna Zaks's avatar
      [analyzer] Make CmpRuns external-user friendly. · 9b7d7140
      Anna Zaks authored
      CmpRuns can be used for static analyzer bug report comparison. However,
      we want to make sure external users do not rely on the way bugs are
      represented (plist files). Make sure that we have a user
      friendly/documented API for CmpRuns script.
      
      llvm-svn: 160314
      9b7d7140
    • Ted Kremenek's avatar
      Looks like libTooling might also depend on ClangDiagnosticCommon. · 42bff962
      Ted Kremenek authored
      llvm-svn: 160313
      42bff962
    • Evan Cheng's avatar
      For something like · 75315b87
      Evan Cheng authored
      uint32_t hi(uint64_t res)
      {
              uint_32t hi = res >> 32;
              return !hi;
      }
      
      llvm IR looks like this:
      define i32 @hi(i64 %res) nounwind uwtable ssp {
      entry:
        %lnot = icmp ult i64 %res, 4294967296
        %lnot.ext = zext i1 %lnot to i32
        ret i32 %lnot.ext
      }
      
      The optimizer has optimize away the right shift and truncate but the resulting
      constant is too large to fit in the 32-bit immediate field. The resulting x86
      code is worse as a result:
              movabsq $4294967296, %rax       ## imm = 0x100000000
              cmpq    %rax, %rdi
              sbbl    %eax, %eax
              andl    $1, %eax
      
      This patch teaches the x86 lowering code to handle ult against a large immediate
      with trailing zeros. It will issue a right shift and a truncate followed by
      a comparison against a shifted immediate.
              shrq    $32, %rdi
              testl   %edi, %edi
              sete    %al
              movzbl  %al, %eax
      
      It also handles a ugt comparison against a large immediate with trailing bits
      set. i.e. X >  0x0ffffffff -> (X >> 32) >= 1
      
      rdar://11866926
      
      llvm-svn: 160312
      75315b87
    • Nadav Rotem's avatar
      Minor cleanup and docs. · 60f7904d
      Nadav Rotem authored
      llvm-svn: 160311
      60f7904d
Loading