1. Apr 16, 2020
  2. Apr 15, 2020
    • Vince Bridgers's avatar
      [ASTImporter] Add support for importing fixed point literals · 789215dc
      Vince Bridgers authored
      Summary:
      This patch adds support for importing fixed point literals, following
      up to https://reviews.llvm.org/D46915 specifically for importing AST.
      
      Reviewers: martong, leonardchan, ebevhan, a.sidorin, shafik
      
      Reviewed By: martong
      
      Subscribers: balazske, rnkovacs, teemperor, cfe-commits
      
      Tags: #clang
      
      Differential Revision: https://reviews.llvm.org/D77721
      789215dc
    • Dominik Montada's avatar
      [GlobalISel] Fix invalid combine of unmerge(merge) with intermediate cast · bddac41b
      Dominik Montada authored
      Summary:
      The combine for unmerge(cast(merge)) is only valid for vectors, but was
      missing a corresponding check. Add a check that the operands are vectors
      to avoid an invalid combine.
      
      Without this check, the combiner would emit incorrect code for scalars
      and pointers because the artifact cast (trunc/ext) only affects bits at
      the end of the type, while this combine assumes that the casted bits
      appear between meaningful bits.
      
      This also uncovered a segmentation fault in the AMDGPU
      InstructionSelector. The tests triggering this bug have been moved to
      their own file and a check for the segmentation fault has been added.
      
      Reviewers: arsenm, dsanders, aemerson, paquette, aditya_nandakumar
      
      Reviewed By: arsenm
      
      Subscribers: tpr, jvesely, wdng, nhaehnle, rovka, kerbowa, llvm-commits
      
      Tags: #llvm
      
      Differential Revision: https://reviews.llvm.org/D78191
      bddac41b
    • Fangrui Song's avatar
      [TimeProfiler] Fix some style issues. NFC · 7c135509
      Fangrui Song authored
      Reviewed By: broadwaylamb, russell.gallop
      
      Differential Revision: https://reviews.llvm.org/D78153
      7c135509
    • Fangrui Song's avatar
      [ELF] Refactor the way we handle -plugin-opt= (GCC collect2 or clang LTO related options) · cd5d5ce2
      Fangrui Song authored
      GCC collect2 passes several options to the linker even if LTO is not used
      (note, lld does not support GCC LTO). The lto-wrapper may be a relative
      path (especially during development, when gcc is in a build directory), e.g.
      
        -plugin-opt=relative/path/to/lto-wrapper
      
      We need to ignore such options, which are currently interpreted by
      cl::ParseCommandLineOptions() and will fail with `error: --plugin-opt: ld.lld: Unknown command line argument 'relative/path/to/lto-wrapper'`
      because the path is apparently not an option registered by an `llvm::cl::opt`.
      
      See lto-plugin-ignore.s for how we interpret various -plugin-opt= options now.
      
      Reviewed By: grimar, tejohnson
      
      Differential Revision: https://reviews.llvm.org/D78158
      cd5d5ce2
    • Louis Dionne's avatar
      [libc++] Remove workaround for .fail.cpp tests that don't have clang-verify markup · 7a6aaf9b
      Louis Dionne authored
      By renaming .fail.cpp tests that don't need clang-verify to .compile.fail.cpp,
      the new test format will not try to compile these tests with clang-verify,
      and the old test format will work just the same. However, this allows
      removing a workaround that requires parsing each test looking for
      clang-verify markup.
      
      After this change, a .fail.cpp test should always have clang-verify markup.
      When clang-verify is not supported by the compiler, we will just check that
      these tests fail to compile. When clang-verify is supported, these tests
      will be compiled with clang-verify whether they have markup or not (so
      they should have markup, or they will fail).
      
      This simplifies the test suite and also ensures that all of our .fail.cpp
      tests provide clang-verify markup. If it's impossible for a test to have
      clang-verify markup, it can be moved to a .compile.fail.cpp test, which
      are unconditionally just checked for compilation failure.
      7a6aaf9b
    • Dominik Montada's avatar
      [GlobalISel] translate freeze to new generic G_FREEZE · 443c244c
      Dominik Montada authored
      Summary:
      As a follow up to https://reviews.llvm.org/D29014, add translation
      support for freeze.
      
      Introduce a new generic instruction G_FREEZE and translate freeze to it.
      
      Reviewers: dsanders, aqjune, arsenm, aditya_nandakumar, t.p.northover, lebedev.ri, paquette, aemerson
      
      Reviewed By: aqjune, arsenm
      
      Subscribers: fhahn, lebedev.ri, wdng, rovka, hiraditya, jfb, volkan, llvm-commits
      
      Tags: #llvm
      
      Differential Revision: https://reviews.llvm.org/D77795
      443c244c
    • Hubert Tong's avatar
      [www] Update make_cxx_dr_status for v10; regenerate cxx_dr_status.html · a73a81dc
      Hubert Tong authored
      Summary: Update `latest_release` to reflect the release of Clang 10.
      
      Reviewed By: rsmith
      
      Differential Revision: https://reviews.llvm.org/D78172
      a73a81dc
    • Florian Hahn's avatar
      [DSE,MSSA] Add use of alloca, to guard against removal in the future. · b5786082
      Florian Hahn authored
      Currently the alloca does not escape and all stores and the memset can
      be removed. Adding a use of the alloca ensures not all stores are
      eliminated.
      b5786082