[all-commits] [llvm/llvm-project] 608a66: [MLIR] Clean up pass options for test-loop-fusion ...

Philip Lassen via All-commits all-commits at lists.llvm.org
Thu Apr 4 03:26:56 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 608a663c8ee485c42637d021d554c8d264d556b1
      https://github.com/llvm/llvm-project/commit/608a663c8ee485c42637d021d554c8d264d556b1
  Author: Philip Lassen <plassen at groq.com>
  Date:   2024-04-04 (Thu, 04 Apr 2024)

  Changed paths:
    M mlir/test/Dialect/Affine/SuperVectorize/compose_maps.mlir
    M mlir/test/Dialect/Affine/SuperVectorize/vector_utils.mlir
    M mlir/test/Dialect/Affine/SuperVectorize/vectorize_unsupported.mlir
    M mlir/test/Dialect/Affine/loop-fusion-dependence-check.mlir
    M mlir/test/Dialect/Affine/loop-fusion-slice-computation.mlir
    M mlir/test/Dialect/Affine/loop-fusion-transformation.mlir
    M mlir/test/Dialect/Affine/slicing-utils.mlir
    M mlir/test/lib/Dialect/Affine/TestLoopFusion.cpp
    M mlir/test/lib/Dialect/Affine/TestVectorizationUtils.cpp

  Log Message:
  -----------
  [MLIR] Clean up pass options for test-loop-fusion and affine-super-vectorizer-test (#87606)

Before the change `test-loop-fusion` and `affine-super-vectorizer-test`
options were in their own category. This was because they used the
standard llvm command line parsing with `llvm::cl::opt`. This PR moves
them over to the mlir `Pass::Option` class.

Before the change
```
$ mlir-opt --help

...

  General options:
    ...

  Compiler passes to run
      Passes:
         ...
      Pass Pipelines:
        ...
  Generic Options:
       ....

  affine-super-vectorizer-test options:

    --backward-slicing                           
     ...
    --vectorize-affine-loop-nest
    
  test-loop-fusion options:

    --test-loop-fusion-dependence-check 
   ...
    --test-loop-fusion-transformation 
```

After the change 

```
$ mlir-opt --help

...

  General options:
    ...

  Compiler passes to run
      Passes:
          ...
          --affine-super-vectorizer-test
             --backward-slicing               
                ...
             --vectorize-affine-loop-nest  
          ...
          --test-loop-fusion options:
               --test-loop-fusion-dependence-check   
                ...
                --test-loop-fusion-transformation 
           ...
      Pass Pipelines:
        ...
  Generic Options:
      ...
```

---------

Signed-off-by: philass <plassen at groq.com>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list