1. Sep 22, 2022
  2. Sep 21, 2022
    • J. Ryan Stinnett's avatar
      [LangRef][Docs] Fix RST header length for GC intrinsics · 74f0e64b
      J. Ryan Stinnett authored
      This fixes up the header length which regressed in
      8c1a9e3c.
      74f0e64b
    • Kazu Hirata's avatar
      [ModuleInliner] Factor out common code in InlineOrder.cpp (NFC) · 0a0ccc85
      Kazu Hirata authored
      This patch factors out common code in InlineOrder.cpp.
      
      Without this patch, the model is to ask classes like SizePriority and
      CostPriority to compare a pair of call sites:
      
        bool hasLowerPriority(const CallBase *L, const CallBase *R) const override {
      
      while these priority classes have their own caches of priorities:
      
        DenseMap<const CallBase *, PriorityT> Priorities;
      
      This model results in a lot of duplicate code like hasLowerPriority
      and updateAndCheckDecreased.
      
      This patch changes the model so that priority classes just have two
      methods to compute a priority for a given call site and to compare two
      previously computed priorities (as opposed to call sites).
      
      Facilities like hasLowerPriority and updateAndCheckDecreased move to
      PriorityInlineOrder along with the map from call sites to their
      priorities.  PriorityInlineOrder becomes a template class so that it
      can accommodate different priority classes.
      
      Differential Revision: https://reviews.llvm.org/D134149
      0a0ccc85
    • J. Ryan Stinnett's avatar
      [LangRef][Docs] Align RST syntax for GC intrinsics · 8c1a9e3c
      J. Ryan Stinnett authored
      This changes the GC intrinsics to use the same header styling as the others.
      8c1a9e3c
    • Joel E. Denny's avatar
      [lit] Implement DEFINE and REDEFINE directives · 28412d18
      Joel E. Denny authored
      These directives define per-test lit substitutions.  The concept was
      discussed at
      <https://discourse.llvm.org/t/iterating-lit-run-lines/62596/10>.
      
      For example, the following directives can be inserted into a test file
      to define `%{cflags}` and `%{fcflags}` substitutions with empty
      initial values, which serve as the parameters of another newly defined
      `%{check}` substitution:
      
      ```
      // DEFINE: %{cflags} =
      // DEFINE: %{fcflags} =
      
      // DEFINE: %{check} = %clang_cc1 %{cflags} -emit-llvm -o - %s | \
      // DEFINE:            FileCheck %{fcflags} %s
      ```
      
      The following directives then redefine the parameters before each use
      of `%{check}`:
      
      ```
      // REDEFINE: %{cflags} = -foo
      // REDEFINE: %{fcflags} = -check-prefix=FOO
      // RUN: %{check}
      
      // REDEFINE: %{cflags} = -bar
      // REDEFINE: %{fcflags} = -check-prefix=BAR
      // RUN: %{check}
      ```
      
      Of course, `%{check}` would typically be more elaborate, increasing
      the benefit of the reuse.
      
      One issue is that the strings `DEFINE:` and `REDEFINE:` already appear
      in 5 tests.  This patch adjusts those tests not to use those strings.
      Our prediction is that, in the vast majority of cases, if a test
      author mistakenly uses one of those strings for another purpose, the
      text appearing after the string will not happen to have the syntax
      required for these directives.  Thus, the test author will discover
      the mistake immediately when lit reports the syntax error.
      
      This patch also expands the documentation on existing lit substitution
      behavior.
      
      Reviewed By: jhenderson, MaskRay, awarzynski
      
      Differential Revision: https://reviews.llvm.org/D132513
      28412d18
    • Chris Bieneman's avatar
      [NFC] Add GitHub issues to HLSL FIXME comments · bc97751a
      Chris Bieneman authored
      In order to make this easier to track I've filed issues for each of the
      HLSL FIXME comments that I can find. I may have missed some, but I want
      this to be the new default mode.
      bc97751a
    • Matt Arsenault's avatar
      AMDGPU: Move test to correct location · 10207fc5
      Matt Arsenault authored
      This is not a MIR printer/parser test, so it belongs with the ordinary
      codegen tests.
      10207fc5
    • rkayaith's avatar
      [mlir][llvm] Support pointer entries in data layout translation · aa00e3e6
      rkayaith authored
      This adds support for pointer DLTI entries in LLVMIR export, e.g.
      ```
      // translated to: p0:32:64:128
      #dlti.dl_entry<!llvm.ptr, dense<[32,64,128]> : vector<3xi32>>
      // translated to: p1:32:32:32:64
      #dlti.dl_entry<!llvm.ptr<1>, dense<[32,32,32,64]> : vector<4xi32>>
      ```
      
      Reviewed By: ftynse
      
      Differential Revision: https://reviews.llvm.org/D133434
      aa00e3e6
    • Anders Langlands's avatar
      Add clang_CXXMethod_isDeleted function · bc14ed7d
      Anders Langlands authored
      Adds a function to check if a method has been deleted by copy-pasting
      the existing implementation of clang_CXXMethod_isDefaulted and changing
      it to call CXXMethod::isDeleted() instead.
      
      Differential Revision: https://reviews.llvm.org/D133924
      bc14ed7d
    • bixia1's avatar
      [mlir][memref] Add realloc op. · 9f13b934
      bixia1 authored
      Add memref.realloc and canonicalization of the op. Add conversion patterns for
      lowering the op to LLVM using unaligned alloc or aligned alloc based on the
      conversion option.
      
      Add filecheck tests for parsing and converting the op. Add an integration test.
      
      Reviewed By: ftynse
      
      Differential Revision: https://reviews.llvm.org/D133424
      9f13b934