Displaying 1 50 of 241,345 commits (0.017s)

LLVM — llvm/trunk/lib/Target/X86 X86FastISel.cpp, llvm/trunk/test/CodeGen/X86 fast-isel-load-i1.ll fast-isel-select-cmov.ll

[X86][FastISel] Use a COPY from K register to a GPR instead of a K operation

The KORTEST was introduced due to a bug where a TEST instruction used a K register.
but, turns out that the opposite case of KORTEST using a GPR is now happening

The change removes the KORTEST flow and adds a COPY instruction from the K reg to a GPR.

Differential Revision: https://reviews.llvm.org/D24953

LLVM — llvm/trunk/lib/Target/X86 X86ISelLowering.cpp

Strip trailing whitespace

LLVM — cfe/trunk/test/ASTMerge asm.cpp, cfe/trunk/test/ASTMerge/Inputs asm-function.cpp

ASTMerge: explicitly specify arch for GCCAsmStmt test to calm non-x86 buildbots

This should fix r282572.

LLVM — cfe/trunk/include/clang/Tooling/Core Replacement.h, cfe/trunk/lib/Tooling/Core Replacement.cpp

Merge conflicting replacements when they are order-independent.

Now two replacements are considered order-independent if applying them in
either order produces the same result. These include (but not restricted
to) replacements that:
  - don't overlap (being directly adjacent is fine) and
  - are overlapping deletions.
  - are insertions at the same offset and applying them in either order
    has the same effect, i.e. X + Y = Y + X if one inserts text X and the
    other inserts text Y.

Discussion about this design can be found in D24717

Reviewers: djasper, klimek

Subscribers: omtcyfz, cfe-commits

Differential Revision: https://reviews.llvm.org/D24800

LLVM — cfe/trunk/test/ASTMerge/Inputs exprs3.cpp

ASTMerge: specify arch for GCCAsmStmt test explicitly to calm non-x86 buildbots

LLVM — cfe/trunk/lib/StaticAnalyzer/Checkers UnreachableCodeChecker.cpp, cfe/trunk/test/Analysis unreachable-code-path.c

[StaticAnalyzer] Fix false positives for vardecls that are technically unreachable but 
they are needed.


    switch (x) {
      int a;  // <- This is unreachable but needed
    case 1:
      a = ...

Differential Revision: https://reviews.llvm.org/D24905

LLVM — cfe/trunk/utils clang-completion-mode.el

Fix warnings in clang-completion-mode.el.

- Use defvar to declare variables
- Don't use delete-backward-char, which is for interactive use only

Patch by Philipp Stephani

LLVM — cfe/trunk/include/clang/AST ASTImporter.h DeclFriend.h, cfe/trunk/lib/AST ASTImporter.cpp

[ASTImporter] Implement some expression-related AST node import (part 2)

* Some code cleanup
* Add tests not present in http://reviews.llvm.org/D14286
* Integrate a test suite from Serge Pavlov (http://reviews.llvm.org/D14224)
* ArrayTypeTraitExpr: serialize sub-expression to avoid keeping it undefined
* Implement import of some nodes:
  - ArrayTypeTraitExpr
  - ExpressionTraitExpr
  - OpaqueValueExpr
  - ArraySubscriptExpr
  - ExplicitCastExpr
  - ImplicitValueInitExpr
  - OffsetOfExpr
  - CXXThisExpr
  - CXXThrowExpr
  - CXXNoexceptExpr
  - CXXDefaultArgExpr
  - CXXScalarValueInitExpr
  - CXXBindTemporaryExpr
  - CXXTemporaryObjectExpr
  - MaterializeTemporaryExpr
  - ExprWithCleanups

  - StaticAssertDecl

    [5 lines not shown]

LLVM — llvm/trunk/include/llvm/Analysis TargetTransformInfo.h, llvm/trunk/lib/Target/SystemZ SystemZTargetTransformInfo.cpp SystemZTargetTransformInfo.h

[SystemZ] Implementation of getUnrollingPreferences().

This commit enables more unrolling for SystemZ by implementing the
SystemZTargetTransformInfo::getUnrollingPreferences() method.

It has been found that it is better to only unroll moderately, so the
DefaultUnrollRuntimeCount has been moved into UnrollingPreferences in order
to set this to a lower value for SystemZ (4).

Reviewers: Evgeny Stupachenko, Ulrich Weigand.

LLVM — cfe/trunk/lib/Headers intrin.h

[Headers] Replace stray indentation with tabs with spaces. NFC.

This matches the rest of the surrounding file.
Delta File
+9 -9 cfe/trunk/lib/Headers/intrin.h
+9 -9 1 file

LLVM — lld/trunk/ELF InputFiles.cpp, lld/trunk/test/ELF exclude.s

[ELF] Ignore sections flagged with SHF_EXCLUDE

Differential revision: https://reviews.llvm.org/D24966

LLVM — llvm/trunk/lib/CodeGen/SelectionDAG DAGCombiner.cpp, llvm/trunk/test/CodeGen/AMDGPU r600-export-fix.ll

[DAG] Remove isVectorClearMaskLegal() check from vector_build dagcombine

This check currently doesn't seem to do anything useful on any in-tree target:
On non-x86, it always evaluates to false, so we never hit the code path that
creates the shuffle with zero.
On x86, it just forwards to isShuffleMaskLegal(), which is a reasonable thing to
query in general, but doesn't make sense if only restricted to zero blends.

Differential Revision: https://reviews.llvm.org/D24625

LLVM — lldb/trunk/lldb.xcodeproj project.pbxproj, lldb/trunk/source/Plugins/UnwindAssembly/x86 UnwindAssembly-x86.cpp x86AssemblyInspectionEngine.cpp

Reverting r282565.

A testbot found a regression introduced in the testsuite with
the changes in r282565 on Ubuntu (TestStepNoDebug.ReturnValueTestCase).
I'll get this set up on an ubuntu box and figure out what is happening
there -- likely a problem with the eh_frame augmentation, which isn't
used on macosx.

LLVM — lldb/trunk/lldb.xcodeproj project.pbxproj, lldb/trunk/source/Plugins/UnwindAssembly/x86 UnwindAssembly-x86.cpp x86AssemblyInspectionEngine.cpp

Refactor the x86 UnwindAssembly class into a separate class called
x86AssemblyInspectionEngine and the current UnwindAssembly_x86 to
allow for the core engine to be exercised by unit tests.

The UnwindAssembly_x86 class will have access to Targets, Processes,
Threads, RegisterContexts -- it will be working in the full lldb

x86AssemblyInspectionEngine is layered away from all of that, it is
given some register definitions and a bag of bytes to profile.

I wrote an initial unittest for a do-nothing simple x86_64/i386
function to start with.  I'll be adding more.

The x86 assembly unwinder was added to lldb early in its bringup;
I made some modernization changes as I was refactoring the code
to make it more consistent with how we write lldb today.

I also added RegisterContextMinidump_x86_64.cpp to the xcode project
file so I can run the unittests from that.

The testsuite passes with this change, but there was quite a bit of
code change by the refactoring and it's possible there are some 
issues.  I'll be testing this more in the coming days, but it looks
like it is behaving correctly as far as I can tell with automated

    [3 lines not shown]

LLVM — cfe/trunk/include/clang/AST ExprCXX.h, cfe/trunk/lib/CodeGen CGExprCXX.cpp CodeGenFunction.h

Revert r282556. This change made several bots unhappy.

LLVM — llvm/trunk/include/llvm/LTO LTO.h

[LTO] Mark member function as const to fix compiler errors.
Delta File
+1 -1 llvm/trunk/include/llvm/LTO/LTO.h
+1 -1 1 file

LLVM — llvm/trunk/lib/Fuzzer FuzzerTracePC.cpp FuzzerTracePC.h

[libFuzzer] speedup TracePC::FinalizeTrace

LLVM — llvm/trunk/include/llvm/Analysis LoopAccessAnalysis.h, llvm/trunk/lib/Analysis LoopAccessAnalysis.cpp

[LAA] Rename emitAnalysis to recordAnalys. NFC

Ever since LAA was split out into an analysis on its own, this function
stopped emitting the report directly.  Instead it stores it to be
retrieved by the client which can then emit it as its own report
(e.g. -Rpass-analysis=loop-vectorize).

LLVM — lld/trunk/ELF Writer.cpp Target.cpp, lld/trunk/test/ELF/linkerscript symbol-assignexpr.s data-segment-relro.s

[ELF] Use MaxPageSize for aligning PT_LOAD

This matches the behavior of Binutils linkers. We also change the
default MaxPageSize on x86-64 to 0x1000 to preserver the current
behavior, which is the same as the behavior implemented by gold.


Differential Revision: https://reviews.llvm.org/D24987

LLVM — llvm/trunk/include/llvm/IR DiagnosticInfo.h, llvm/trunk/lib/Analysis OptimizationDiagnosticInfo.cpp

[Inliner] Port all opt remarks to new streaming API

LLVM — llvm/trunk/test/Transforms/Inline optimization-remarks-yaml.ll

Pass -S to opt in this test to avoid printing binary on mismatch

The purpose of the test is to verify diagnostics.

LLVM — cfe/trunk/include/clang/Basic DiagnosticFrontendKinds.td, cfe/trunk/test/Misc warning-flags.c

Put new warning in a diagnostic group.

The warning I added in r282426 should be a diagnostic group.

LLVM — cfe/trunk/include/clang/AST ExprCXX.h, cfe/trunk/lib/CodeGen CGExprCXX.cpp CodeGenFunction.h

P0145R3 (C++17 evaluation order tweaks): evaluate the right-hand side of
assignment and compound-assignment operators before the left-hand side. (Even
if it's an overloaded operator.)

This completes the implementation of P0145R3 + P0400R0 for all targets except
Windows, where the evaluation order guarantees for <<, >>, and ->* are
unimplementable as the ABI requires the function arguments are evaluated from
right to left (because parameter destructors are run from left to right in the

LLVM — cfe/trunk/lib/Sema SemaDeclCXX.cpp, cfe/trunk/test/SemaCXX cxx0x-defaulted-functions.cpp

Revert r282547 and add test to show correct behavior.

LLVM — cfe/trunk/lib/CodeGen CoverageMappingGen.cpp, cfe/trunk/test/CoverageMapping switch.c switchmacro.c

[Coverage] The coverage region for switch covers the code after the switch.

This patch fixes a regression introduced in r262697 that changed the way the
coverage regions for switches are constructed. The PGO instrumentation counter
for a switch statement refers to the counter at the exit of the switch.
Therefore, the coverage region for the switch statement should cover the code
that comes after the switch, and not the switch statement itself.


Differential Revision: https://reviews.llvm.org/D24981

LLVM — llvm/trunk/lib/Object MachOObjectFile.cpp, llvm/trunk/test/Object macho-invalid.test

Next set of additional error checks for invalid Mach-O files for the
other load commands that use the MachO::dylinker_command type
but not used in llvm libObject code but used in llvm tool code.

and LC_DYLD_ENVIRONMENT load commands.
Delta File
+38 -0 llvm/trunk/lib/Object/MachOObjectFile.cpp
+9 -0 llvm/trunk/test/Object/macho-invalid.test
+0 -0 llvm/trunk/test/Object/Inputs/macho-invalid-dyld-name_offset-toobig
+0 -0 llvm/trunk/test/Object/Inputs/macho-invalid-dyld-name_toobig
+0 -0 llvm/trunk/test/Object/Inputs/macho-invalid-dyld-small
+47 -0 5 files

LLVM — llvm/trunk CMakeLists.txt

[CMake] Force CMP0057 to NEW

Hans reported an issue with r282510 on the list. This should resolve the issue.
Delta File
+4 -0 llvm/trunk/CMakeLists.txt
+4 -0 1 file

LLVM — llvm/trunk/include/llvm/LTO LTO.h

[LTO] Add an API to check if a symbol is a TLS one.

Will be used in lld.
Delta File
+4 -0 llvm/trunk/include/llvm/LTO/LTO.h
+4 -0 1 file

LLVM — llvm/trunk/lib/Target/AArch64 AArch64GenRegisterBankInfo.def AArch64RegisterBankInfo.cpp

[AArch64][RegisterBankInfo] Switch to statically allocated ValueMapping.

Another step toward TableGen'ed like structure for the RegisterBankInfo
of AArch64. By doing this, we also save a bit of compile time for the
exact same output.

LLVM — llvm/trunk/lib/Target/AArch64 AArch64GenRegisterBankInfo.def

[AArch64][RegisterBankInfo] Fix copy/paste in comments.


LLVM — cfe/trunk/lib/Sema SemaDeclCXX.cpp, cfe/trunk/test/SemaCXX cxx0x-defaulted-functions.cpp

Fix defaulted member functions for templated classes.

In some cases, non-special member functions were being marked as being defaulted
in templated classes.  This can cause interactions with later code that expects
the default function to be one of the specific member functions.  Fix the check
so that templated class members are checked the same way as non-templated class
members are.

LLVM — llvm/trunk/lib/Target/X86 X86ISelLowering.cpp, llvm/trunk/test/CodeGen/X86 copysign-constant-magnitude.ll

[x86] add folds for FP logic with vector zeros

The 'or' case shows up in copysign. The copysign code also had 
redundant checking for a scalar zero operand with 'and', so I 
removed that. 

I'm not sure how to test vector 'and', 'andn', and 'xor' yet, 
but it seems better to just include all of the logic ops since
we're fixing 'or' anyway.

LLVM — cfe/trunk/lib/CodeGen CodeGenAction.cpp

Shorten DiagnosticInfoOptimizationRemark* to OptimizationRemark*. NFC

With the new streaming interface in LLVM, these class names need to be
typed a lot and it's way too looong.
Delta File
+15 -21 cfe/trunk/lib/CodeGen/CodeGenAction.cpp
+15 -21 1 file

LLVM — llvm/trunk/include/llvm/IR DiagnosticInfo.h, llvm/trunk/lib/Analysis OptimizationDiagnosticInfo.cpp

Shorten DiagnosticInfoOptimizationRemark* to OptimizationRemark*. NFC

With the new streaming interface, these class names need to be typed a
lot and it's way too looong.

LLVM — llvm/trunk/include/llvm/Target TargetRegisterInfo.h, llvm/trunk/lib/CodeGen MachineRegisterInfo.cpp

[TargetRegisterInfo, AArch64] Add target hook for isConstantPhysReg().

The current implementation of isConstantPhysReg() checks for defs of
physical registers to determine if they are constant.  Some
architectures (e.g. AArch64 XZR/WZR) have registers that are constant
and may be used as destinations to indicate the generated value is
discarded, preventing isConstantPhysReg() from returning true.  This
change adds a TargetRegisterInfo hook that overrides the no defs check
for cases such as this.

Reviewers: MatzeB, qcolombet, t.p.northover, jmolloy

Subscribers: junbuml, aemerson, mcrosier, rengolin

Differential Revision: https://reviews.llvm.org/D24570

LLVM — llvm/trunk/lib/Transforms/IPO Inliner.cpp, llvm/trunk/test/Transforms/Inline optimization-remarks-yaml.ll optimization-remarks.ll

[Inliner] Fold the analysis remark into the missed remark

There is really no reason for these to be separate.

The vectorizer started this pretty bad tradition that the text of the
missed remarks is pretty meaningless, i.e. vectorization failed.  There,
you have to query analysis to get the full picture.

I think we should just explain the reason for missing the optimization
in the missed remark when possible.  Analysis remarks should provide
information that the pass gathers regardless whether the optimization is
passing or not.

LLVM — llvm/trunk/lib/Transforms/Utils LoopSimplify.cpp, llvm/trunk/test/Transforms/LoopUnroll rebuild_lcssa.ll

[LoopSimplify] When simplifying phis in loop-simplify, do it only if it preserves LCSSA 

LLVM — cfe/trunk/lib/CodeGen CodeGenAction.cpp

Adapt to LLVM optimization remark interface change. NFC

LLVM — llvm/trunk/include/llvm/Analysis OptimizationDiagnosticInfo.h, llvm/trunk/include/llvm/IR DiagnosticInfo.h LLVMContext.h

Output optimization remarks in YAML

(Re-committed after moving the template specialization under the yaml
namespace.  GCC was complaining about this.)

This allows various presentation of this data using an external tool.
This was first recommended here[1].

As an example, consider this module:

  1 int foo();
  2 int bar();
  4 int baz() {
  5   return foo() + bar();
  6 }

The inliner generates these missed-optimization remarks today (the
hotness information is pulled from PGO):

  remark: /tmp/s.c:5:10: foo will not be inlined into baz (hotness: 30)
  remark: /tmp/s.c:5:18: bar will not be inlined into baz (hotness: 30)

Now with -pass-remarks-output=<yaml-file>, we generate this YAML file:

    [61 lines not shown]

LLVM — llvm/trunk/lib/IR DiagnosticInfo.cpp

Sort headers

LLVM — lldb/trunk/include/lldb/Host FileSpec.h, lldb/trunk/source/Host/common FileSpec.cpp

Update FileSpec's interface to use StringRefs.

Differential Revision: https://reviews.llvm.org/D24936

LLVM — llvm/trunk CMakeLists.txt, llvm/trunk/docs CMakeLists.txt CMake.rst

[cmake] Support overriding remaining HTML doc install directories

Support overriding the Doxygen & OCamldoc install directories,
and provide a more FHS-compliant defaults for both of them. This extends
r282240 that added this override for Sphinx-built documentation.

added, to control the location where Doxygen-generated and
OCamldoc-generated HTML docs are installed appropriately. They both
specify CMake-style install paths, and therefore can either by relative
to the install prefix or absolute.

The new defaults are subdirectories of share/doc/llvm, and replace
the previous directories of 'docs/html' and 'docs/ocaml/html' that
resulted in creating invalid '/usr/docs' that furthermore lacked proper
namespacing for the LLVM package. The new defaults are consistent with
the ones used for Sphinx HTML documentation, differing only in the last
component. Since the 'html' subdirectory is already used for Sphinx
docs, the 'doxygen-html' and 'ocaml-html' directories are used instead.

Differential Revision: https://reviews.llvm.org/D24935

LLVM — llvm/trunk/include/llvm/Support CommandLine.h, llvm/trunk/tools/llvm-mc llvm-mc.cpp

Fix a typo, depricated -> deprecated

Differential Revision: https://reviews.llvm.org/D22849

LLVM — cfe/trunk/lib/Frontend CompilerInstance.cpp, cfe/trunk/lib/StaticAnalyzer/Frontend AnalysisConsumer.cpp

Adapt to LLVM EnableStatistics() change.

LLVM — llvm/trunk/include/llvm/ADT Statistic.h, llvm/trunk/lib/Support Statistic.cpp

Statistic: Bring back printing on exit by default

Turns out several external projects relied on llvm printing statistics
on exit. Let's go back to this behaviour by default and have an optional
parameter to disable it.

LLVM — lld/trunk/COFF Chunks.cpp, lld/trunk/test/COFF reloc-arm.test


Handle this in the exact same way as IMAGE_REL_AMD64_SECREL

Differential revision: https://reviews.llvm.org/D24608

LLVM — lldb/trunk/include/lldb lldb-private-types.h, lldb/trunk/source/Plugins/Process/minidump RegisterContextMinidump_x86_64.cpp RegisterContextMinidump_x86_64.h

Adding a RegisterContextMinidump_x86_64 converter

This is a register context converter from Minidump to Linux reg context.
This knows the layout of the register context in the Minidump file
(which is the same as in Windows FYI) and as a result emits a binary data
buffer that matches the Linux register context binary layout.
This way we can reuse the existing RegisterContextLinux_x86_64 and
RegisterContextCorePOSIX_x86_64 classes.

Reviewers: labath, zturner

Subscribers: beanz, mgorny, lldb-commits, amccarth

Differential Revision: https://reviews.llvm.org/D24919

LLVM — llvm/trunk/utils/lit README.txt

[lit] Add instructions to run lit's test suite

 - Patch by Brian Gesiak.
 - https://reviews.llvm.org/D24968
Delta File
+16 -0 llvm/trunk/utils/lit/README.txt
+16 -0 1 file

LLVM — libcxx/trunk CMakeLists.txt

Revert r282483 - [cmake] Add linker option "-Wl,-z,defs" in standalone build

Revert r282483 as it causes build failures due to missing symbols when
not linking to -lgcc_s (i.e. doing pure LLVM stack build). The patch can
be reintroduced when the build system is fixed to add all needed
libraries (libunwind, compiler-rt).
Delta File
+0 -12 libcxx/trunk/CMakeLists.txt
+0 -12 1 file

LLVM — llvm/trunk/tools/llvm-cxxfilt llvm-cxxfilt.cpp CMakeLists.txt

[llvm-cxxfilt] Use llvm::outs(). Simplify.

This adds a dependency on Support/. As llvm-cxxfilt will grow
support for options this will be needed anyway.