summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [ELF][MIPS] Factor out the code reading and sign-extending low 16-bits of ↵Simon Atanasyan2016-03-041-6/+8
| | | | | | 32-bit word. NFC llvm-svn: 262708
* [ELF][MIPS] Factor out the code writing relocation result into low 16-bit of ↵Simon Atanasyan2016-03-041-17/+16
| | | | | | destination. NFC llvm-svn: 262707
* [ELF][MIPS] Factor out the code reading and calculating AHL addend into the ↵Simon Atanasyan2016-03-041-15/+14
| | | | | | separate function. NFC llvm-svn: 262706
* [ELF][MIPS] Use writeMipsHi16 to apply result of R_MIPS_PCHI16 relocation. NFCSimon Atanasyan2016-03-041-4/+3
| | | | llvm-svn: 262705
* [ELF][MIPS] Replace S and A arguments of the writeMipsHi16 function by the ↵Simon Atanasyan2016-03-041-6/+6
| | | | | | single argument V. NFC llvm-svn: 262704
* [ELF][MIPS] s/applyMipsHi16Reloc/writeMipsHi16/ NFCSimon Atanasyan2016-03-041-5/+5
| | | | llvm-svn: 262703
* Make headers self-contained again.Benjamin Kramer2016-03-042-0/+2
| | | | llvm-svn: 262702
* AMDGPU/SI: add llvm.amdgcn.image.atomic.* intrinsicsNikolay Haustov2016-03-047-32/+339
| | | | | | | | | | | These correspond to IMAGE_ATOMIC_* and are going to be used by Mesa for the GL_ARB_shader_image_load_store extension. Initial change by Nicolai H.hnle Differential Revision: http://reviews.llvm.org/D17401 llvm-svn: 262701
* [SemaExprCXX] Avoid calling isInSystemHeader for invalid source locationsPavel Labath2016-03-041-1/+2
| | | | | | | | | | | | | | | | | | | Summary: While diagnosing a CXXNewExpr warning, we were calling isInSystemHeader(), which expect to be called with a valid source location. This causes an assertion failure if the location is unknown. A quick grep shows it's not without precedent to guard calls to the function with a "Loc.isValid()". This fixes a test failure in LLDB, which always creates object with invalid source locations as it does not (always) have access to the source. Reviewers: nlewycky Subscribers: lldb-commits, cfe-commits Differential Revision: http://reviews.llvm.org/D17847 llvm-svn: 262700
* [OPENMP 4.0] Codegen for 'declare reduction' construct.Alexey Bataev2016-03-0417-31/+480
| | | | | | | Emit function for 'combiner' part of 'declare reduction' construct and 'initialilzer' part, if any. llvm-svn: 262699
* [clang-tidy] Make 'modernize-use-nullptr' check work on multiple nested ↵Haojian Wu2016-03-042-1/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | implicit cast expressions. Summary: For some test cases like: ``` int func(int, void*, void*); (double)func(0, 0, 0); ``` The AST contains several `ImplicitCastExpr`s, so we should not only check on the first sub expression. ``` `-CStyleCastExpr 0x7fe43a088938 <line:6:3, col:24> 'double' <NoOp> `-ImplicitCastExpr 0x7fe43a088920 <col:11, col:24> 'double' <IntegralToFloating> `-CallExpr 0x7fe43a0888a0 <col:11, col:24> 'int' |-ImplicitCastExpr 0x7fe43a088888 <col:11> 'int (*)(int, void *, void *)' <FunctionToPointerDecay> | `-DeclRefExpr 0x7fe43a0887d8 <col:11> 'int (int, void *, void *)' lvalue Function 0x7fe43a0886f0 'func1' 'int (int, void *, void *)' |-IntegerLiteral 0x7fe43a088800 <col:17> 'int' 0 |-ImplicitCastExpr 0x7fe43a0888e0 <col:20> 'void *' <NullToPointer> | `-IntegerLiteral 0x7fe43a088820 <col:20> 'int' 0 `-ImplicitCastExpr 0x7fe43a0888f8 <col:23> 'void *' <NullToPointer> `-IntegerLiteral 0x7fe43a088840 <col:23> 'int' 0 ``` Reviewers: alexfh Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D17849 llvm-svn: 262698
* [Coverage] Fix the start/end locations of switch statementsVedant Kumar2016-03-043-15/+25
| | | | | | | | | | | | While pushing switch statements onto the region stack we neglected to specify their start/end locations. This results in a crash (PR26825) if we end up in nested macro expansions without enough information to handle the relevant file exits. I added a test in switchmacro.c and fixed up a bunch of incorrect CHECK lines that specify strange end locations for switches. llvm-svn: 262697
* [OPENMP] Simplify handling of clauses with postupdates, NFC.Alexey Bataev2016-03-046-22/+15
| | | | | | | Clauses with post-update expressions always have pre-init statement. So OMPClauseWithPreInit now is the base for OMPClauseWithPostUpdate. llvm-svn: 262696
* [index] Distinguish USRs of anonymous enums by using their first enumerator.Argyrios Kyrtzidis2016-03-044-12/+34
| | | | | | rdar://24609949. llvm-svn: 262695
* [index] Include parameter types in the USRs for C functions marked with ↵Argyrios Kyrtzidis2016-03-042-1/+7
| | | | | | 'overloadable' attribute. llvm-svn: 262694
* [index] In ObjC++ handle objc type parameters for function USRs.Argyrios Kyrtzidis2016-03-042-0/+28
| | | | llvm-svn: 262693
* [OpenCL] Refine pipe builtin supportXiuli Pan2016-03-044-71/+79
| | | | | | | | | | | | | | Summary: Refine the type builtin support as the request with http://lists.llvm.org/pipermail/cfe-commits/Week-of-Mon-20160201/148637.html Reviewers: pekka.jaaskelainen, Anastasia, yaxunl Subscribers: rsmith, cfe-commits Differential Revision: http://reviews.llvm.org/D16876 llvm-svn: 262692
* [MIPS] initFeatureMap() to handle empty string argumentBhushan D. Attarde2016-03-041-0/+2
| | | | | | | | | | | SUMMARY: This patch sets CPU string to its default value when it is not supplied by caller. Reviewers: vkalintiris, dsanders Subscribers: mohit.bhakkad, sagar, jaydeep, cfe-commits Differential Revision: http://reviews.llvm.org/D16139 llvm-svn: 262691
* [Compiler-rt][safestack] Enable for MIPSMohit K. Bhakkad2016-03-041-1/+1
| | | | | | | | | | Reviewers: samsonov Subscribers: jaydeep, sagar, llvm-commits Differential Revision: http://reviews.llvm.org/D17846 llvm-svn: 262690
* [powerpc] pacify lint for java_race_pc.ccBill Seurer2016-03-041-2/+0
| | | | | | Fix blank lines. llvm-svn: 262689
* [X86] Pass __m64 types via SSE registers for GCC compatibilityDavid Majnemer2016-03-043-34/+76
| | | | | | | | | | For compatibility with GCC, classify __m64 as SSE. However, clang is a platform compiler for certain targets; retain our old behavior on those targets: classify __m64 as integer. This fixes PR26832. llvm-svn: 262688
* [VFS] Switch from close to SafelyCloseFileDescriptorDavid Majnemer2016-03-041-13/+3
| | | | | | | | The SafelyCloseFileDescriptor machinery does the right thing in the face of signals while close will do something platform specific which results in the FD potentially getting leaked. llvm-svn: 262687
* [index] Ignore ObjCTypeParamDecls during indexing.Argyrios Kyrtzidis2016-03-042-0/+8
| | | | llvm-svn: 262686
* Use check function.Rui Ueyama2016-03-041-4/+1
| | | | llvm-svn: 262685
* [ELF] Generalize symbol type handling.Davide Italiano2016-03-046-34/+33
| | | | | | | | | | | | | | | SymbolBody constructor and friends take isFunc and isTLS boolean arguments. ELF symbols have already a type so than be easily passed as argument. If we want to support another type, this scheme is not good enough, that is, the current code logic would require passing another `bool isObject` around. Up to two argument, this stretching exercise was a little bit goofy but still acceptable, but with more types to support, is just too much, IMHO. Change the code so that the type is passed instead. Differential Revision: http://reviews.llvm.org/D17871 llvm-svn: 262684
* Annotate our undefined behaviour to sneak it past the sanitizersJustin Bogner2016-03-043-1/+14
| | | | | | | | | | | We have known UB in some ilists where we static cast half nodes to (larger) derived types and use the address. See llvm.org/PR26753. This needs to be fixed, but in the meantime it'd be nice if running ubsan didn't complain. This adds annotations in the two places where ubsan complains while running check-all of a sanitized clang build. llvm-svn: 262683
* Fix a memory leak.Easwaran Raman2016-03-041-1/+4
| | | | llvm-svn: 262682
* CodeGen: Tune the SmallVector size in LiveRangeJustin Bogner2016-03-041-2/+2
| | | | | | | | | | | The vast majority of LiveRanges (ie, 4/5) have exactly 1 segment and 1 value number, and a good chunk of the rest have 2 of each, so allocating space for 4 is wasteful. This is especially noticeable when dealing with a very large number of vregs, and I have an internal case where dropping this to 2 shaves over 5% off of peak memory when compiling a particularly large function. llvm-svn: 262681
* [TSan] Fix compiler warning in Go sanity test.Alexey Samsonov2016-03-042-1/+2
| | | | llvm-svn: 262680
* Fix a use-after-free bug introduced in r262636Easwaran Raman2016-03-043-7/+16
| | | | llvm-svn: 262679
* [asan] Fix odr_c_test failure with gold linkerAlexey Samsonov2016-03-041-0/+3
| | | | | | | | | | | Summary: Adds another global to asan's odr_c_test to help force the target global to not lie at the start of bss with the gold linker where it is always aligned. Patch by Derek Bruening! llvm-svn: 262678
* Add hardware_concurrency interface to llvm::thread (NFC)Teresa Johnson2016-03-041-0/+1
| | | | | | Part of D15390. llvm-svn: 262677
* [gold] Handle modules that are not included in the link.Evgeniy Stepanov2016-03-041-75/+92
| | | | | | | | | | Gold has a newly added LDPT_GET_SYMBOLS_V3 callback that can distinguish between a module that is not included in the link, and one that is included but has its entire interface preempted by others. Fixes PR26674. llvm-svn: 262676
* [powerpc] activate java_race_pc.cc on powerpc64leBill Seurer2016-03-041-0/+1
| | | | | | | | | The test case compiler-rt/test/tsan/java_race_pc.cc fails on powerpc64 big endian but not little endian. Add missing blank line. llvm-svn: 262675
* Fix memory leak in tests.Easwaran Raman2016-03-032-0/+2
| | | | llvm-svn: 262674
* [libfuzzer] arbitrary function adapter.Mike Aizatsky2016-03-035-0/+299
| | | | | | | | | The adapter automates converting sequence of bytes into arbitrary arguments. Differential Revision: http://reviews.llvm.org/D17829 llvm-svn: 262673
* [docs] Add a description of current problem areas to the statepoint docsPhilip Reames2016-03-031-0/+35
| | | | | | Triggered by a question on llvm-dev about status llvm-svn: 262671
* [InstCombine] Combine A->B->A BitCastGuozhi Wei2016-03-033-0/+197
| | | | | | | | | | This patch enhances InstCombine to handle following case: A -> B bitcast PHI B -> A bitcast llvm-svn: 262670
* [powerpc] activate java_race_pc.cc on powerpc64leBill Seurer2016-03-031-2/+3
| | | | | | | The test case compiler-rt/test/tsan/java_race_pc.cc fails on powerpc64 big endian but not little endian. llvm-svn: 262669
* llvm/test/CodeGen/ARM/rem_crash.ll: Avoid unsupported targets to specify ↵NAKAMURA Takumi2016-03-031-1/+1
| | | | | | | | | | explicit triple. We will see it for targeting win32; LLVM ERROR: CPU: 'generic' does not support ARM mode execution! llvm-svn: 262668
* [libFuzzer] when interrupted, call _Exit() instead of exit()Kostya Serebryany2016-03-031-1/+1
| | | | llvm-svn: 262667
* Rename 'fatal' to 'check' when it doesn't always fail.Rafael Espindola2016-03-037-28/+28
| | | | llvm-svn: 262666
* [SCEVValidator] Fix loop exit values considered affine.Michael Kruse2016-03-032-1/+49
| | | | | | | | | | | | | | | | | | | | Index calculations can use the last value that come out of a loop. Ideally, ScalarEvolution can compute that exit value directly without depending on the loop induction variable, but not in all cases. This changes isAffine to not consider such loop exit values as affine to avoid that SCEVExpander adds uses of the original loop induction variable. This fix is analogous to r262404 that applies to general uses of loop exit values instead of index expressions and loop bouds as in this patch. This reduces the number of LNT test-suite fails with -polly-position=before-vectorizer -polly-unprofitable from 10 to 8. llvm-svn: 262665
* Pass scope and LoopInfo to SCEVValidator. NFC.Michael Kruse2016-03-038-48/+67
| | | | | | | | The scope will be required in the following fix. This commit separates the large changes that do not change behaviour from the small, but functional change. llvm-svn: 262664
* [OPENMP] firstprivate and private clauses of teams, host codegenerationCarlo Bertolli2016-03-033-0/+604
| | | | | | | | Add code generation support for firstprivate and private clauses of teams on the host. Add extensive regression tests including lambda functions and vla testing. http://reviews.llvm.org/D17582 llvm-svn: 262663
* Remove dead code.Rui Ueyama2016-03-031-4/+0
| | | | llvm-svn: 262662
* [X86][AVX512BW] Fixed 512-bit PSHUFB shuffle mask decode and added combine test.Simon Pilgrim2016-03-032-3/+18
| | | | | | PSHUFB decoder was assuming that input was 128 or 256-bit vector only. llvm-svn: 262661
* [ELF] Be slightly more consistent, use uint8_t instead of unsigned char.Davide Italiano2016-03-031-1/+1
| | | | llvm-svn: 262660
* [analyzer] ObjCDeallocChecker: Only check for nil-out when type is retainable.Devin Coughlin2016-03-032-1/+24
| | | | | | This fixes a crash when setting a property of struct type in -dealloc. llvm-svn: 262659
* [STATS] fix output formatting when sample count is 0Jonathan Peyton2016-03-031-8/+19
| | | | | | Force 0.0 to be displayed for all statistics which have sample count equal to 0 llvm-svn: 262658
OpenPOWER on IntegriCloud