[all-commits] [llvm/llvm-project] 5bfd5c: Add support for MLIR to llvm vscale attribute (#67...

Mats Petersson via All-commits all-commits at lists.llvm.org
Mon Sep 25 06:32:32 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5bfd5c60bf02590a575661c609684e5cf3dd1e6f
      https://github.com/llvm/llvm-project/commit/5bfd5c60bf02590a575661c609684e5cf3dd1e6f
  Author: Mats Petersson <6831237+Leporacanthicus at users.noreply.github.com>
  Date:   2023-09-25 (Mon, 25 Sep 2023)

  Changed paths:
    M mlir/include/mlir/Dialect/LLVMIR/LLVMAttrDefs.td
    M mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td
    M mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
    M mlir/lib/Target/LLVMIR/ModuleImport.cpp
    M mlir/lib/Target/LLVMIR/ModuleTranslation.cpp
    M mlir/test/Dialect/LLVMIR/func.mlir
    A mlir/test/Target/LLVMIR/Import/vscale.ll
    A mlir/test/Target/LLVMIR/vscale.mlir

  Log Message:
  -----------
  Add support for MLIR to llvm vscale attribute (#67012)

The vscale_range is used for scalabale vector functionality in Arm
Scalable Vector Extension to select the size of vector operation (and I
thnk RISCV has something similar).

This patch adds the base support for the vscale_range attribute to the
LLVM::FuncOp, and the marshalling for translation to LLVM-IR and import
from LLVM-IR to LLVM dialect.

This attribute is intended to be used at higher level MLIR, specified
either by command-line options to the compiler or using compiler
directives (e.g. pragmas or function attributes in the source code) to
indicate the desired range.




More information about the All-commits mailing list