1. Jul 15, 2020
    • Logan Smith's avatar
      [clang] Add 'override' to virtual function overrides generated by ClangAttrEmitter · fbb30c31
      Logan Smith authored
      ClangAttrEmitter.cpp generates ParsedAttr derived classes with virtual overrides in them (which end up in AttrParsedAttrImpl.inc); this patch ensures these generated functions are marked override, and not (redundantly) virtual.
      
      I hesitate to say NFC since this does of course affect the behavior of the generator code, but the generated code behaves the same as it did before, so it's NFC in that sense.
      
      Differential Revision: https://reviews.llvm.org/D83616
      fbb30c31
    • Rahul Joshi's avatar
      [MLIR] Add argument related API to Region · e2b71610
      Rahul Joshi authored
      - Arguments of the first block of a region are considered region arguments.
      - Add API on Region class to deal with these arguments directly instead of
        using the front() block.
      - Changed several instances of existing code that can use this API
      - Fixes https://bugs.llvm.org/show_bug.cgi?id=46535
      
      Differential Revision: https://reviews.llvm.org/D83599
      e2b71610
    • Shuhong Liu's avatar
      [AIX] Remove diff -a option on llvm-cov.test · 85bed2f3
      Shuhong Liu authored
      Summary:
      llvm-cov.test generates .gcov files and compared with target
      sample files. Since the files do not contain any binary data
      (files are plain ASCII texts), remove -a from diff. And this
      fix will the error on AIX since the default diff tool on AIX
      does not support -a option.
      
      Reviewers: hubert.reinterpretcast, daltenty, stevewan
      
      Subscribers: llvm-commits
      
      Tags: #LLVM
      
      Differential Revision: https://reviews.llvm.org/D83711
      85bed2f3
    • Rahul Joshi's avatar
      [MLIR] [TableGen] Avoid generating an assert which is always true. · 256d4481
      Rahul Joshi authored
      - Avoid generating "assert(resultTypes.size() >= 0u)" which is always true
      
      Differential Revision: https://reviews.llvm.org/D83735
      256d4481
    • Michael Kruse's avatar
      [docs] Update llvm.loop metadata documentation. · 322e7cfa
      Michael Kruse authored
      Loop metadata nodes do not adhere to the documented property:
      
      (a) LoopIDs are not unique: Any pass that duplicates IR will do it
          including its metadata (e.g. LoopVersioning) such that multiple
          loops are linked with the same LoopID. There is even a test case
          (Transforms/LoopUnroll/unroll-pragmas-disabled.ll) for multiple
          loops with the same LoopID.
      
      (b) LoopIDs are not persistent: Adding or removing an item from a LoopID
          can only be done by creating a new MDNode and assigning it to the
          loop's branch(es). Passes such as LoopUnroll (llvm.loop.unroll.disable)
          and LoopVectorize (llvm.loop.isvectorized) use this to mark loops to
          not be transformed multiple times or to avoid that a LoopVersioned
          original loop is transformed.
      
      Update the documentation according to how llvm.loop is used in practice.
      
      Differential Revision: https://reviews.llvm.org/D55290
      322e7cfa
  2. Jul 14, 2020