summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [C++11] More 'nullptr' conversion. In some cases just using a boolean check ↵Craig Topper2014-04-1559-563/+574
| | | | | | instead of comparing to nullptr. llvm-svn: 206243
* Use std::unique_ptr to manage MCBasicBlocks in MCFunction.David Blaikie2014-04-153-21/+16
| | | | llvm-svn: 206242
* [MC] Require an MCContext when constructing an MCDisassembler.Lang Hames2014-04-1517-80/+119
| | | | | | | | | | | | | | | | This patch re-introduces the MCContext member that was removed from MCDisassembler in r206063, and requires that an MCContext be passed in at MCDisassembler construction time. (Previously the MCContext member had been initialized in an ad-hoc fashion after construction). The MCCContext member can be used by MCDisassembler sub-classes to construct constant or target-specific MCExprs. This patch updates disassemblers for in-tree targets, and provides the MCRegisterInfo instance that some disassemblers were using through the MCContext (previously those backends were constructing their own MCRegisterInfo instances). llvm-svn: 206241
* X86JITInfo: [x86] Use X86CompilationCallback_SSE() along;NAKAMURA Takumi2014-04-151-3/+2
| | | | | | | | | | *not* Subtarget->hasSSE1() *but* __SSE__, the flag that LLVM libraries are compiled The callback calls internal LLVM JIT libraries. It may be built with -msse (or above). FIXME: JIT may use "host" instead of "generic" by default. llvm-svn: 206240
* [ARM64,C++11]: Range'ify the dead-register-definition pass.Jim Grosbach2014-04-151-27/+23
| | | | | | Range-based for loops. No functional change intended. llvm-svn: 206239
* Add iterator_range for MachineInstr defs.Jim Grosbach2014-04-151-0/+16
| | | | llvm-svn: 206238
* Partial revert of r206229, to get the build bots green again.Aaron Ballman2014-04-151-8/+9
| | | | llvm-svn: 206237
* [MC] Emit an error if cfi_startproc is used before a symbol is defined.Quentin Colombet2014-04-155-0/+23
| | | | | | | | | Currently, we bind those directives with the last symbol, so if none has been defined, this would lead to a crash of the compiler. <rdar://problem/15939159> llvm-svn: 206236
* [Register Coalescer] Add a test case for 206060.Quentin Colombet2014-04-151-0/+83
| | | | | | <rdar://problem/16582185> llvm-svn: 206235
* Fix typo from r206232Richard Trieu2014-04-151-2/+2
| | | | llvm-svn: 206234
* Add some basic sanity checks to ↵Jason Molenda2014-04-151-0/+24
| | | | | | | | | | DynamicLoaderDarwinKernel::ReadKextSummaryHeader() when it is reading the kext table, in case we're reading out of a core file with corrupt contents in this region. <rdar://problem/16601915> llvm-svn: 206233
* Fix a bad interaction between -Wtautological-overlap-compare and delayedRichard Trieu2014-04-153-4/+23
| | | | | | diagnostics which caused delayed diagnostics on dead paths to be emitted. llvm-svn: 206232
* CodeGen: Handle CapturedStmt in instrumentation based profilingJustin Bogner2014-04-155-0/+101
| | | | | | | | CapturedStmt was being ignored by instrumentation based profiling, and its counters attributed to the containing function. Instead, we need to treat this as a top level entity, like we do with blocks. llvm-svn: 206231
* [Allocator] Add Deallocate support to the AllocatorBase CRTP class,Chandler Carruth2014-04-151-0/+33
| | | | | | | | | | | | along with templated overloads much like we have for Allocate. These will facilitate switching the Deallocate interface of all the Allocator classes to accept the size by pre-filling it from the type size where we can do so. I plan to convert several uses to the template variants in subsequent patches prior to adding the Size parameter. No functionality changed, WIP. llvm-svn: 206230
* Fixing a typo, updating the diagnostic wording and logic based on ↵Aaron Ballman2014-04-155-10/+10
| | | | | | post-commit review feedback. Amends r206186. llvm-svn: 206229
* [ARM64][MC] Set the default CPU string to generic.Quentin Colombet2014-04-151-3/+1
| | | | llvm-svn: 206228
* [Driver][ARM64] Make sure the default CPU is passed to the assembler.Quentin Colombet2014-04-151-0/+3
| | | | | | <rdar://problem/16573920> llvm-svn: 206227
* [Allocator] Hack around the fact that GCC can't compile theChandler Carruth2014-04-151-0/+2
| | | | | | | static_assert added in r206225. I'm looking into a proper fix, but wanted the bots back. llvm-svn: 206226
* [Allocator] Factor the Allocate template overloads into a base classChandler Carruth2014-04-151-29/+57
| | | | | | | | | | | | | | | | | | | | rather than defining them (differently!) in both allocators. This also serves as a basis for documenting and even enforcing some of the LLVM-style "allocator" concept methods which must exist with various signatures. I plan on extending and changing the signatures of these to further simplify our allocator model in subsequent commits, so I wanted to factor things as best as I could first. Notably, I'm working to add the 'Size' to the deallocation method of all allocators. This has several implications not the least of which are faster deallocation times on certain allocation libraries (tcmalloc). It also will allow the JIT allocator to fully model the existing allocation interfaces and allow sanitizer poisoning of deallocated regions. The list of advantages goes on. =] But by factoring things first I'll be able to make this easier by first introducing template helpers for the deallocation path. llvm-svn: 206225
* Fix warning in ms-x86-vtordisp test caseReid Kleckner2014-04-141-2/+2
| | | | llvm-svn: 206224
* Ensure we evaluate VLA bounds if a variably-modified type is used as theRichard Smith2014-04-142-2/+12
| | | | | | | argument to __builtin_va_arg. Patch by Rahul Jain, some test massaging and IR emission order changes by me. llvm-svn: 206223
* Use std::unique_ptr for DIE childrenDavid Blaikie2014-04-145-43/+31
| | | | | | | | | Got bored, removed some manual memory management. Pushed references (rather than pointers) through a few APIs rather than replacing *x with x.get(). llvm-svn: 206222
* Make sure these two files are distinct, or else the modules system may, on ↵Nick Lewycky2014-04-142-0/+4
| | | | | | certain file systems, treat them as if they were the same file. llvm-svn: 206221
* X86: Nuke one more CPU autodetect blurb.Jim Grosbach2014-04-141-7/+1
| | | | | | Missed one in r206094. This brings MC and TargetMachine back into sync. llvm-svn: 206220
* Change argument order and add explanatory comment to r206130David Blaikie2014-04-143-10/+13
| | | | | | Changes requested in code review by Eric Christopher of r206130. llvm-svn: 206219
* Use FrameSetup on frame instructions for the Mips port.Eric Christopher2014-04-142-2/+3
| | | | | | | I can't seem to get a testcase to show a difference here, but it's part of the unconditional-br.ll line table weirdness. llvm-svn: 206218
* Add module name and module map file to -module-file-infoBen Langmuir2014-04-144-0/+34
| | | | llvm-svn: 206217
* [CMake] Reformat, if(MSVC)...else()...endif()NAKAMURA Takumi2014-04-141-1/+1
| | | | llvm-svn: 206215
* Revert "Revert r206045, "Fix shift by constants for vector.""Matt Arsenault2014-04-144-16/+179
| | | | | | Fix cases where the Value itself is used, and not the constant value. llvm-svn: 206214
* Fix LLDB to build with top of tree LLVM/Clang.Greg Clayton2014-04-141-5/+3
| | | | | | Patch from Michael Tao. llvm-svn: 206213
* Include additional libLLVMARM64Utils.a file.Greg Clayton2014-04-141-0/+1
| | | | llvm-svn: 206212
* [ARM64][MC] Set the default CPU to cyclone when initilizating the MC layer.Quentin Colombet2014-04-141-0/+6
| | | | | | | | This matches that ARM64Subtarget does for now. This is related to <rdar://problem/16573920> llvm-svn: 206211
* Re-apply r206096 after investigating the gdb buildbot failure.Adrian Prantl2014-04-143-9/+129
| | | | | | | | | | | | | | | Thanks to dblaikie for updating the testcase! Debug info: (bugfix) C++ C/Dtors can be compiled to multiple functions, therefore, their declaration cannot have one DW_AT_linkage_name. The specific instances however can and should have that attribute. This patch reorders the code in DwarfUnit::getOrCreateSubprogramDIE() to emit linkage names for C/Dtors. rdar://problem/16362674. llvm-svn: 206210
* [cleanup] Run clang-format over most of YAMLParser.h to fix a bunch ofChandler Carruth2014-04-141-55/+41
| | | | | | | | small formatting inconsistencies with the rest of LLVM and even this file. I looked at all the changes and they seemed like just better formatting. llvm-svn: 206209
* Fix for codegen bug that could cause illegal cmn instruction generationLouis Gerbarg2014-04-142-1/+34
| | | | | | | | | | | In rare cases the dead definition elimination pass code can cause illegal cmn instructions when it replaces dead registers on instructions that use unmaterialized frame indexes. This patch disables the dead definition optimization for instructions which include frame index operands. rdar://16438284 llvm-svn: 206208
* Add a flag to disable the ARM64DeadRegisterDefinitionsPassLouis Gerbarg2014-04-142-1/+26
| | | | | | | This patch adds a -arm64-dead-def-elimination flag so that it is possible to disable dead definition elimination. Includes test case. llvm-svn: 206207
* PR19415: Converting 'constexpr' to 'const' in a non-static data member can failRichard Smith2014-04-142-9/+15
| | | | | | if the member is already 'const'. Don't assert in that case. llvm-svn: 206205
* PR19411: Walk lexical parents, not semantic parents, when determining whether aRichard Smith2014-04-142-1/+8
| | | | | | DeclContext is (lexically) within a C language linkage specification. llvm-svn: 206204
* Fix find command in test/Modules/prune.m broken by r206201Ben Langmuir2014-04-141-1/+1
| | | | llvm-svn: 206203
* Add clang:: qualifier back to ModuleBen Langmuir2014-04-141-1/+1
| | | | | | Apparently this was required by some compilers. llvm-svn: 206202
* Allow multiple modules with the same name to coexist in the module cacheBen Langmuir2014-04-1435-100/+328
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To differentiate between two modules with the same name, we will consider the path the module map file that they are defined by* part of the ‘key’ for looking up the precompiled module (pcm file). Specifically, this patch renames the precompiled module (pcm) files from cache-path/<module hash>/Foo.pcm to cache-path/<module hash>/Foo-<hash of module map path>.pcm In addition, I’ve taught the ASTReader to re-resolve the names of imported modules during module loading so that if the header search context changes between when a module was originally built and when it is loaded we can rebuild it if necessary. For example, if module A imports module B first time: clang -I /path/to/A -I /path/to/B ... second time: clang -I /path/to/A -I /different/path/to/B ... will now rebuild A as expected. * in the case of inferred modules, we use the module map file that allowed the inference, not the __inferred_module.map file, since the inferred file path is the same for every inferred module. llvm-svn: 206201
* sanitizer_atomic_msvc.h: add atomic_fetch_{add,sub} overloads for uintptr_tHans Wennborg2014-04-141-0/+29
| | | | | | This should hopefully unbreak the MSVC build after r206178. llvm-svn: 206200
* sanitizer_deadlock_detector.h: MSVC 2012 doesn't like compound literalsHans Wennborg2014-04-141-5/+8
| | | | llvm-svn: 206199
* [ARM64] Port over missing subtarget features, and CPU definitions from AArch64.James Molloy2014-04-143-5/+52
| | | | llvm-svn: 206198
* [ARM64] Add big endian target arm64_be.James Molloy2014-04-142-2/+11
| | | | llvm-svn: 206197
* Replace two calls to object::symbol_iterator::increment(), which hadKaelyn Takata2014-04-141-10/+4
| | | | | | been removed in r200442. llvm-svn: 206196
* Remove a variable from r206192 that is only used in an assert.Kaelyn Takata2014-04-141-2/+2
| | | | llvm-svn: 206195
* Fix a bug in which BranchProbabilityInfo wasn't setting branch weights of ↵Akira Hatanaka2014-04-144-22/+84
| | | | | | | | | | | | basic blocks inside loops correctly. Previously, BranchProbabilityInfo::calcLoopBranchHeuristics would determine the weights of basic blocks inside loops even when it didn't have enough information to estimate the branch probabilities correctly. This patch fixes the function to exit early if it doesn't see any exit edges or back edges and let the later heuristics determine the weights. This fixes PR18705 and <rdar://problem/15991090>. Differential Revision: http://reviews.llvm.org/D3363 llvm-svn: 206194
* Fix 2008-03-05-SxtInRegBug.ll so that the CHECK-NOT will not match the filename.Richard Trieu2014-04-141-0/+2
| | | | llvm-svn: 206193
* Fix up MCFixup::getAccessVariant to handle unary expressions.Kaelyn Takata2014-04-142-1/+9
| | | | | | | | | | | | This allows correct relocations to be generated for a symbolic address that is being adjusted by a negative constant. Since r204294, such expressions have triggered undefined behavior when LLVM was built without assertions. Credit goes to Rafael for this patch; I'm submitting it on his behalf as he is on vacation this week. llvm-svn: 206192
OpenPOWER on IntegriCloud