summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [asan] Rename asan-instrument-allocas -> asan-instrument-dynamic-allocasVitaly Buka2016-08-2012-13/+13
| | | | | | | | | | Summary: Depends on D23707. Subscribers: kubabrecka Differential Revision: https://reviews.llvm.org/D23709 llvm-svn: 279377
* [asan] Cleanup instrumentation of dynamic allocasVitaly Buka2016-08-205-29/+49
| | | | | | | | | | Summary: Extract instrumenting dynamic allocas into separate method. Rename asan-instrument-allocas -> asan-instrument-dynamic-allocas Differential Revision: https://reviews.llvm.org/D23707 llvm-svn: 279376
* [X86][SSE] Added vector interleave test (PR21281)Simon Pilgrim2016-08-201-0/+151
| | | | llvm-svn: 279375
* [Sema] Don't crash on scanf on forward-declared enums.Benjamin Kramer2016-08-203-4/+35
| | | | | | | | This is valid in GNU C, which allows pointers to incomplete enums. GCC just pretends that the underlying type is 'int' in those cases, follow that behavior. llvm-svn: 279374
* [asan] Add support of lifetime poisoning into ComputeASanStackFrameLayoutVitaly Buka2016-08-204-33/+48
| | | | | | | | | | | | | | | Summary: We are going to combine poisoning of red zones and scope poisoning. PR27453 Reviewers: kcc, eugenis Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D23623 llvm-svn: 279373
* Move unittests/Support/IteratorTest.cpp to unittests/ADT/Duncan P. N. Exon Smith2016-08-203-1/+1
| | | | | | This testing stuff from ADT, not Support. Fix the file location. llvm-svn: 279372
* PR28423: Compare primary declaration contexts.Vassil Vassilev2016-08-202-1/+7
| | | | | | | | | | | In certain cases (mostly coming from modules), Sema's idea of the StdNamespace does not point to the first declaration of namespace std. Patch by Cristina Cristescu! Reviewed by Richard Smith. llvm-svn: 279371
* Reapply "[SLP] Initialize VectorizedValue when gathering"Matthew Simpson2016-08-202-8/+153
| | | | | | | | | | | The test case included in r279125 exposed existing undefined behavior in the SLP vectorizer that it did not introduce. This patch reapplies the original patch, but modifies the test case to avoid hitting the undefined behavior. This allows us to close PR28330 while keeping the UBSan bot happy. The undefined behavior the original test uncovered will be addressed in a follow-on patch. Reference: https://llvm.org/bugs/show_bug.cgi?id=28330 llvm-svn: 279370
* [SLP] Add command line option for minimum tree size (NFC)Matthew Simpson2016-08-201-1/+5
| | | | llvm-svn: 279369
* Add R_386_TLS_LE as a relocation having an implicit addend.Ed Schouten2016-08-202-3/+4
| | | | | | | | | | | | | | TLS on i386 in non-PIE/PIC code seems broken right now, because we don't properly add the addend encoded in the instruction to the resulting offset when processing R_386_TLS_LE relocations. Extend one of the existing tests for TLS on i686 to use an addend. PR: https://llvm.org/bugs/show_bug.cgi?id=29068 Reviewed by: ruiu Differential Revision: https://reviews.llvm.org/D23741 llvm-svn: 279368
* [analyzer] Make CloneDetector consider macro expansions.Artem Dergachev2016-08-204-7/+194
| | | | | | | | | | | | | | | | | So far macro-generated code was treated by the CloneDetector as normal code. This caused that some macros where reported as false-positive clones because large chunks of code coming from otherwise concise macro expansions were treated as copy-pasted code. This patch ensures that macros are treated in the same way as literals/function calls. This prevents macros that expand into multiple statements from being reported as clones. Patch by Raphael Isemann! Differential Revision: https://reviews.llvm.org/D23316 llvm-svn: 279367
* [analyzer] Make CloneDetector consider template arguments.Artem Dergachev2016-08-202-2/+74
| | | | | | | | | | | For example, code samples `isa<Stmt>(S)' and `isa<Expr>(S)' are no longer considered to be clones. Patch by Raphael Isemann! Differential Revision: https://reviews.llvm.org/D23555 llvm-svn: 279366
* Revert "[SLP] Initialize VectorizedValue when gathering" to fix ubsan bot.Vitaly Buka2016-08-202-161/+8
| | | | | | | | This reverts commit r279125. https://reviews.llvm.org/D23410 llvm-svn: 279363
* [CMake/ASan] Skip using libedit if ASan is enabled -- it leaks memory.Chandler Carruth2016-08-201-1/+2
| | | | | | | Note that you'll have to clear this variable from your CMake cache for it to take effect. llvm-svn: 279362
* [Profile] add test with large countsXinliang David Li2016-08-202-0/+15
| | | | llvm-svn: 279361
* [PM] Introduce an abstraction for all the analyses over a particular IRChandler Carruth2016-08-203-13/+35
| | | | | | | | | | | | | | | | | | unit for use in the PreservedAnalyses set. This doesn't have any important functional change yet but it cleans things up and makes the analysis substantially more efficient by avoiding querying through the type erasure for every analysis. I also think it makes it much easier to reason about how analyses are preserved when walking across pass managers and across IR unit abstractions. Thanks to Sean and Mehdi both for the comments and suggestions. Differential Revision: https://reviews.llvm.org/D23691 llvm-svn: 279360
* amdgpu: Fix default case value for get_local_sizeMatt Arsenault2016-08-202-2/+2
| | | | llvm-svn: 279359
* Revert r279351 and r279357 due to bot failuresManman Ren2016-08-202-69/+37
| | | | llvm-svn: 279358
* Fix windows botManman Ren2016-08-201-1/+1
| | | | llvm-svn: 279357
* [gold/ThinLTO] Restore ThinLTO file management in gold pluginTeresa Johnson2016-08-202-1/+20
| | | | | | | | | | | | | | | | | | Summary: The gold-plugin changes added along with the new LTO API in r278338 had the effect of removing the management of the PluginInputFile that ensured the files weren't released back to gold until the backend threads were complete. Add back the old file handling. Fixes PR29020. Reviewers: mehdi_amini Subscribers: mehdi_amini, llvm-commits, hjl.tools Differential Revision: https://reviews.llvm.org/D23721 llvm-svn: 279356
* [gold] Fix new gold test to specify emulation modeTeresa Johnson2016-08-201-0/+1
| | | | | | Add emulation mode option for new test added in r279023. llvm-svn: 279355
* added Xcode lldb-gtest-for-debugging targetTodd Fiala2016-08-201-0/+289
| | | | | | | | | | | | The lldb-gtest target is for CI and runs the tests as part of the build phase. It does not support debugging the gtests from Xcode, though, due to the run happening during the build phase. This change adds a lldb-gtest-for-debugging target that can be used to debug gtests. llvm-svn: 279354
* Add logic to the ObjC runtime in LLDB to extract the pointer values of the ↵Enrico Granata2016-08-204-1/+63
| | | | | | | | two singleton (pairtons?) instances of __NSCFBoolean that represent true and false This is useful because that knowledge will in turn allow no-code-running formatting of boolean NSNumbers; but that's a commit that will have to wait Monday.. llvm-svn: 279353
* [msan] Disable prlimit test on glibc < 2.13.Evgeniy Stepanov2016-08-201-0/+8
| | | | llvm-svn: 279352
* [NFC] Add a class ObjCProtocolQualifiers to wrap APIs for ObjC protocol list.Manman Ren2016-08-202-37/+69
| | | | | | | | | | | | | This is in preparation of adding a new type class ObjCTypeParamType that can take protocol qualifiers. ObjCProtocolQualifiers will be shared between ObjCObjectType and ObjCTypeParamType. rdar://24619481 rdar://25060179 Differential Revision: http://reviews.llvm.org/D23078 llvm-svn: 279351
* amdgcn: Fix get_local_size IR return typeMatt Arsenault2016-08-205-5/+27
| | | | llvm-svn: 279350
* [LTO] Add the ability to test -thinlto-emit-imports-files through llvm-lto2Mehdi Amini2016-08-192-1/+28
| | | | | | | | | | | | | | Summary: Start bringing llvm-lto2 to a level where we can test the LTO API a bit deeper. Reviewers: tejohnson Subscribers: llvm-commits, mehdi_amini Differential Revision: https://reviews.llvm.org/D23681 llvm-svn: 279349
* [Driver] Remove unused #include of llvm/Support/config.hVedant Kumar2016-08-191-1/+0
| | | | | | | | This is a follow-up to r279112 (which removed the need for the header) and in the same spirit as r279035 (which attempted to un-break out-of-tree builds). llvm-svn: 279348
* MachineFunction: Add llvm_unreachable for missing propertiesMatthias Braun2016-08-191-0/+1
| | | | | | Most compilers should give you a warning anyway though. llvm-svn: 279346
* Remove a test that depends on knowing all compiler's register allocation ↵Jim Ingham2016-08-191-23/+0
| | | | | | | | | | | schemes. This test was using a condition that would compare a variable against the register that would hold it. It was failing with clang on arm64 because clang put the variable on the stack. This is not a supportable way to write tests. llvm-svn: 279345
* Reset "undef" flag when coalescing subregister into whole registerKrzysztof Parzyszek2016-08-191-0/+1
| | | | llvm-svn: 279344
* amdgcn: Correct return types to be size_tMatt Arsenault2016-08-193-3/+3
| | | | llvm-svn: 279343
* GlobalISel: support legalization of G_FCONSTANTsTim Northover2016-08-195-0/+26
| | | | llvm-svn: 279341
* GlobalISel: teach legalizer how to handle integer constants.Tim Northover2016-08-194-3/+80
| | | | llvm-svn: 279340
* [InstCombine] use m_APInt to allow icmp (shl X, Y), C folds for splat ↵Sanjay Patel2016-08-193-33/+36
| | | | | | | | | constant vectors, part 1 This is a partial enablement (move the ConstantInt guard down) because there are many different folds here and one of the later ones will require reworking 'isSignBitCheck'. llvm-svn: 279339
* MachineFunction: Cleanup/simplify MachineFunctionProperties::print()Matthias Braun2016-08-194-40/+22
| | | | | | | | | | - Always compile print() regardless of LLVM_ENABLE_DUMP. (We usually only gard dump() functions with that). - Only show the set properties to reduce output clutter. - Remove the unused variant that even shows the unset properties. - Fix comments llvm-svn: 279338
* MachineFunction: Make LastProperty an alias of the last propertyMatthias Braun2016-08-192-4/+2
| | | | | | | This avoids unnecessary cases in switch statements covering all properties. llvm-svn: 279337
* [CMake] Support building on OS X without Xcode installationChris Bieneman2016-08-192-2/+14
| | | | | | | | This should resolve PR23162. This patch has two parts. First we need to check the error code from xcodebuild when querying for SDKs, second if the OS X SDK is not discovered, we ensure that /usr/include exists and use / as the OS X sysroot. llvm-svn: 279336
* Partially revert 279331, as we modify this instruction in the loopDaniel Berlin2016-08-191-3/+7
| | | | llvm-svn: 279335
* [CMake] Add check-compiler-rt target for runtimes buildChris Bieneman2016-08-191-1/+5
| | | | | | | | Durning standalone builds (which includes runtimes builds) we want to create a target named check-compiler-rt. Additionally we also create check-all if it doesn't already exist as a convienence target that depends on check-compiler-rt. This allows us to generate a single check target that invokes lit for all test suites in the runtimes projects, while avoiding name collision of check-all and not breaking existing workflows. llvm-svn: 279334
* [CMake] Add top-level install-compiler-rt targetChris Bieneman2016-08-192-0/+2
| | | | | | This is a wrapper target of all the component install targets. This wrapper target will be used by the new LLVM runtimes directory to connect top-level targets to the runtime project target. llvm-svn: 279333
* Revert "[asan] Add support of lifetime poisoning into ↵Vitaly Buka2016-08-194-48/+33
| | | | | | | | | | ComputeASanStackFrameLayout" This reverts commit r279020. Speculative revert in hope to fix asan test on arm. llvm-svn: 279332
* Convert some depth first traversals to depth_firstDaniel Berlin2016-08-193-17/+10
| | | | llvm-svn: 279331
* [www] Add nullability questions to analyzer FAQ.Devin Coughlin2016-08-191-0/+54
| | | | llvm-svn: 279330
* [CallGraph] Use decltype instead of pointer_to_unary_function. NFC.Tim Shen2016-08-191-24/+19
| | | | | | | | | | Reviewers: dblaikie Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D23726 llvm-svn: 279329
* [CallGraph] Use decltype instead of pointer_to_unary_function. NFC.Tim Shen2016-08-191-30/+25
| | | | | | | | | | Reviewers: dblaikie Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D23725 llvm-svn: 279328
* [lldb] Use OrcMCJITReplacement rather than MCJIT as the underlying JIT for LLDBLang Hames2016-08-191-1/+2
| | | | | | | | | | expression evaluation. OrcMCJITReplacement is a reimplementation of MCJIT using ORC components, and provides an easy upgrade path to ORC for existing MCJIT clients. There should be no functional changes resulting from this switch. llvm-svn: 279327
* [GraphTraits] Make nodes_iterator dereference to NodeType*/NodeRefTim Shen2016-08-1919-128/+79
| | | | | | | | | Currently nodes_iterator may dereference to a NodeType* or a NodeType&. Make them all dereference to NodeType*, which is NodeRef later. Differential Revision: https://reviews.llvm.org/D23704 Differential Revision: https://reviews.llvm.org/D23705 llvm-svn: 279326
* [Packetizer] Add debugging code to stop packetization after N instructionsKrzysztof Parzyszek2016-08-191-0/+21
| | | | llvm-svn: 279325
* [Hexagon] Avoid register dependencies on indirect branches in packetizerKrzysztof Parzyszek2016-08-191-7/+8
| | | | | | | Do not packetize the instruction setting the branch address with the indirect branch itself. llvm-svn: 279324
OpenPOWER on IntegriCloud