1. May 13, 2020
  2. May 12, 2020
    • Jay Foad's avatar
      [GlobalISel][IRTranslator] Fix <1 x Ty> handling in ConstantExprs · 989be65b
      Jay Foad authored
      Summary:
      ConstantExprs involving operations on <1 x Ty> could translate into MIR
      that failed to verify with:
      *** Bad machine code: Reading virtual register without a def ***
      
      The problem was that translate(const Constant &C, Register Reg) had
      recursive calls that passed the same Reg in for the translation of a
      subexpression, but without updating VMap for the subexpression first as
      translate(const Constant &C, Register Reg) expects.
      
      Fix this by using the same translateCopy helper function that we use for
      translating Instructions. In some cases this causes extra G_COPY
      MIR instructions to be generated.
      
      Fixes https://bugs.llvm.org/show_bug.cgi?id=45576
      
      Reviewers: arsenm, volkan, t.p.northover, aditya_nandakumar
      
      Subscribers: jvesely, wdng, nhaehnle, rovka, hiraditya, kerbowa, llvm-commits
      
      Tags: #llvm
      
      Differential Revision: https://reviews.llvm.org/D78378
      989be65b
    • Jay Foad's avatar
      [GlobalISel][IRTranslator] New helper function translateCopy. NFC. · bd80a8bb
      Jay Foad authored
      Reviewers: arsenm, volkan, t.p.northover, aditya_nandakumar
      
      Subscribers: wdng, rovka, hiraditya, llvm-commits
      
      Tags: #llvm
      
      Differential Revision: https://reviews.llvm.org/D78377
      bd80a8bb
    • Florian Hahn's avatar
      [Matrix] Check non-dependent elt type before creating DepSizedMatrix. · ffcaed32
      Florian Hahn authored
      We should check non-dependent element types before creating a
      DependentSizedMatrixType. Otherwise we do not generate an error message
      for dependent-sized matrix types with invalid non-dependent element
      types, if the template is never instantiated. See the make5 struct in
      the tests.
      
      It also moves the SEMA template tests to
      clang/test/SemaTemplate/matrix-type.cpp and introduces a few more test
      cases.
      ffcaed32