summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* teach ConstantRange that zero times X is always zeroNuno Lopes2012-07-162-0/+14
| | | | llvm-svn: 160317
* Enable the "symbolicate" interactive command to symbolicate all crash logs ↵Greg Clayton2012-07-161-15/+18
| | | | | | | | | | | | | | | | | | | | | 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
* Fix copy-paste mistake for CMake dependency.Ted Kremenek2012-07-161-1/+1
| | | | llvm-svn: 160315
* [analyzer] Make CmpRuns external-user friendly.Anna Zaks2012-07-162-45/+63
| | | | | | | | | 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
* Looks like libTooling might also depend on ClangDiagnosticCommon.Ted Kremenek2012-07-161-0/+4
| | | | llvm-svn: 160313
* For something likeEvan Cheng2012-07-163-2/+94
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Minor cleanup and docs.Nadav Rotem2012-07-161-1/+3
| | | | llvm-svn: 160311
* Fix an off by one error when handling a packet where our read buffer size ↵Jim Ingham2012-07-161-2/+2
| | | | | | | | | | truncates the first chunk of the packet between the two chars representing the checksum. <rdar://problem/11882074> llvm-svn: 160310
* Add libEdit dependency on ClangDiagnosticCommon. Hopefully this will ↵Ted Kremenek2012-07-161-0/+4
| | | | | | unbreak the VS build. llvm-svn: 160309
* MIPS: Implement __builtin_mips_shll_qb builtin function overloading.Simon Atanasyan2012-07-163-0/+43
| | | | | | | This function has two versions. The first one is used for a register operand. The second one is used for an immediate number. llvm-svn: 160308
* MIPS: Create two definitions for __builtin_mips_shll_qb builtin.Simon Atanasyan2012-07-161-1/+3
| | | | | | | The first variant accepts immediate number as the second argument. The second variant accepts register operand as the second argument. llvm-svn: 160307
* Fix rejects-valid: explicit specialization of redeclared deleted function ↵David Blaikie2012-07-162-4/+3
| | | | | | | | template. Review by Richard Smith. llvm-svn: 160306
* Make ComputeDemandedBits return a deterministic result when computing an ↵Nadav Rotem2012-07-162-0/+13
| | | | | | | | | | | AssertZext value. In the added testcase the constant 55 was behind an AssertZext of type i1, and ComputeDemandedBits reported that some of the bits were both known to be one and known to be zero. Together with Michael Kuperstein <michael.m.kuperstein@intel.com> llvm-svn: 160305
* tsan: add platform suffix to Go runtime libraryDmitry Vyukov2012-07-161-3/+5
| | | | llvm-svn: 160304
* Revert "AMDGPU: Add core backend files for R600/SI codegen v6"Tom Stellard2012-07-16114-28329/+0
| | | | | | This reverts commit 4ea70107c5e51230e9e60f0bf58a0f74aa4885ea. llvm-svn: 160303
* Revert "include/llvm: Add R600 Intrinsics v6"Tom Stellard2012-07-162-37/+0
| | | | | | This reverts commit 600f7a90f3eef4c5108179b43e27cfd9e5de7cdc. llvm-svn: 160302
* Revert "Build script changes for R600/SI Codegen v6"Tom Stellard2012-07-166-17/+11
| | | | | | This reverts commit e3013202259ed1e006c21817c63cf25d75982721. llvm-svn: 160301
* Revert "test/CodeGen/R600: Add some basic tests v6"Tom Stellard2012-07-1627-212/+0
| | | | | | This reverts commit 11d3457afcda7848448dd7f11b2ede6552ffb9ea. llvm-svn: 160300
* Revert "Target/AMDGPU/R600KernelParameters.cpp: Fix two includes, ↵Tom Stellard2012-07-161-2/+2
| | | | | | | | <llvm/IRBuilder.h> and <llvm/TypeBuilder.h>" This reverts commit 0258a6bdd30802f5cc0e8e57c8e768fde2aef590. llvm-svn: 160299
* Revert "Target/AMDGPU: [CMake] Fix dependencies. 1) Add intrinsics_gen. Add ↵Tom Stellard2012-07-162-3/+1
| | | | | | | | AMDGPUCommonTableGen." This reverts commit ebc934ba32ee71abbb8f0f2eb6a0fbaa613ba0d2. llvm-svn: 160298
* Revert "Target/AMDGPU/R600KernelParameters.cpp: Don't use "and", "or" as ↵Tom Stellard2012-07-161-8/+8
| | | | | | | | conditional operator..." This reverts commit 29f28bc14ad5a907f5dc849f004fafeec0aab33a. llvm-svn: 160297
* Revert "Target/AMDGPU/AMDILIntrinsicInfo.cpp: Use llvm_unreachable() in ↵Tom Stellard2012-07-161-1/+1
| | | | | | | | nonreturn function, instead of assert(0)." This reverts commit 4ba4acc1bc2561b944a571edbb6a2dc78e357dfe. llvm-svn: 160296
* Revert "Target/AMDGPU: Fix includes, or msvc build failed."Tom Stellard2012-07-162-2/+2
| | | | | | This reverts commit fef4aa1b16fcf7a472559abbbcf4c1adc9eb5ca6. llvm-svn: 160295
* make ConstantRange::getSetSize() properly compute the size of wrapped and ↵Nuno Lopes2012-07-162-13/+19
| | | | | | | | full sets. Make it always return APInts with the same bitwidth for the same ConstantRange bitwidth to simply clients llvm-svn: 160294
* With r160248 in place this code is no longer needed.Chad Rosier2012-07-162-17/+1
| | | | llvm-svn: 160293
* [asan] a bit more refactoring, addressed some of the style comments from ↵Kostya Serebryany2012-07-161-17/+39
| | | | | | chandlerc, partially implemented crash callback merging (under flag) llvm-svn: 160290
* tsan: treat malloc() as memory access in GoDmitry Vyukov2012-07-161-0/+1
| | | | llvm-svn: 160289
* tsan: use dynamic shadow stack for GoDmitry Vyukov2012-07-167-6/+42
| | | | llvm-svn: 160288
* modern objective-c translator: conditionally includeFariborz Jahanian2012-07-161-1/+5
| | | | | | <string.h>. // rdar://11847319 llvm-svn: 160287
* MSVC's implementation of isalnum will assert on characters > 255, so we need ↵Aaron Ballman2012-07-161-1/+5
| | | | | | to use an unsigned char to ensure the integer promotion happens properly. This fixes an assert in debug builds with CodeGen\X86\utf8.ll llvm-svn: 160286
* Relax the complete-type checks that are happening under __invokable<Fp, ↵Howard Hinnant2012-07-162-1/+30
| | | | | | Args...> to only check Fp, and not Args... . This should be sufficient to give the desired high quality diagnostics under both bind and function. And this allows a test reported by Rich E on cfe-dev to pass. Tracked by <rdar://problem/11880602>. llvm-svn: 160285
* [asan] refactor instrumentation to allow merging the crash callbacks (not ↵Kostya Serebryany2012-07-162-54/+101
| | | | | | fully implemented yet, no functionality change except the BB order) llvm-svn: 160284
* tsan: increase number of dead threads for GoDmitry Vyukov2012-07-161-0/+4
| | | | llvm-svn: 160283
* tsan: Go runtime: support goroutine end eventDmitry Vyukov2012-07-162-0/+11
| | | | llvm-svn: 160282
* Fixing an MSVC warning -- the compiler did not like the cast added to work ↵Aaron Ballman2012-07-161-2/+10
| | | | | | around a g++ bug (it would claim to possibly emit incorrect code). llvm-svn: 160281
* Target/AMDGPU: Fix includes, or msvc build failed.NAKAMURA Takumi2012-07-162-2/+2
| | | | llvm-svn: 160280
* Target/AMDGPU/AMDILIntrinsicInfo.cpp: Use llvm_unreachable() in nonreturn ↵NAKAMURA Takumi2012-07-161-1/+1
| | | | | | function, instead of assert(0). llvm-svn: 160279
* Target/AMDGPU/R600KernelParameters.cpp: Don't use "and", "or" as conditional ↵NAKAMURA Takumi2012-07-161-8/+8
| | | | | | operator... llvm-svn: 160278
* Doubleword Shift Left Logical Plus 32Jack Carter2012-07-165-1/+102
| | | | | | | | | | | | | | | | | | | | | Mips shift instructions DSLL, DSRL and DSRA are transformed into DSLL32, DSRL32 and DSRA32 respectively if the shift amount is between 32 and 63 Here is a description of DSLL: Purpose: Doubleword Shift Left Logical Plus 32 To execute a left-shift of a doubleword by a fixed amount--32 to 63 bits Description: GPR[rd] <- GPR[rt] << (sa+32) The 64-bit doubleword contents of GPR rt are shifted left, inserting zeros into the emptied bits; the result is placed in GPR rd. The bit-shift amount in the range 0 to 31 is specified by sa. This patch implements the direct object output of these instructions. llvm-svn: 160277
* Target/AMDGPU: [CMake] Fix dependencies. 1) Add intrinsics_gen. Add ↵NAKAMURA Takumi2012-07-162-1/+3
| | | | | | AMDGPUCommonTableGen. llvm-svn: 160276
* Target/AMDGPU/R600KernelParameters.cpp: Fix two includes, <llvm/IRBuilder.h> ↵NAKAMURA Takumi2012-07-161-2/+2
| | | | | | and <llvm/TypeBuilder.h> llvm-svn: 160275
* Fix tests that failed on i686-win32 after r160248:Alexey Samsonov2012-07-162-3/+4
| | | | | | | | 1. FileCheck-ize epilogue.ll and allow another asm instruction to restore %rsp. 2. Remove check in widen_arith-3.ll that was hitting instruction in epilogue instead of vector add. llvm-svn: 160274
* test/CodeGen/R600: Add some basic tests v6Tom Stellard2012-07-1627-0/+212
| | | | llvm-svn: 160273
* Build script changes for R600/SI Codegen v6Tom Stellard2012-07-166-11/+17
| | | | llvm-svn: 160272
* include/llvm: Add R600 Intrinsics v6Tom Stellard2012-07-162-0/+37
| | | | llvm-svn: 160271
* AMDGPU: Add core backend files for R600/SI codegen v6Tom Stellard2012-07-16114-0/+28329
| | | | llvm-svn: 160270
* [asan] initialize asan error callbacks in runOnModule instead of doing that ↵Kostya Serebryany2012-07-161-8/+20
| | | | | | on-demand llvm-svn: 160269
* Fixing an obvious bug in a test.Alexander Kornienko2012-07-161-2/+1
| | | | llvm-svn: 160268
* tsan: fix buildDmitry Vyukov2012-07-162-0/+8
| | | | llvm-svn: 160267
* tsan: port Go runtime to DarwinDmitry Vyukov2012-07-164-12/+141
| | | | llvm-svn: 160266
OpenPOWER on IntegriCloud