[flang-commits] [flang] [flang]Pass to add vscale range attribute (PR #68103)

Tom Eccles via flang-commits flang-commits at lists.llvm.org
Wed Oct 4 07:03:45 PDT 2023


================
@@ -326,4 +326,18 @@ def OMPFunctionFiltering : Pass<"omp-function-filtering"> {
   ];
 }
 
+def VScaleAttr : Pass<"vscale-attr", "mlir::func::FuncOp"> {
+  let summary = "Add vscale_range attribute to functions";
+  let description = [{
+     Set an attribute for the vscale range on functions, to allow scalable
+     vector operations to be used on Arm processors.
----------------
tblah wrote:

nit: on the LLVM side, vscale range is also used by riscv https://reviews.llvm.org/D139873

It might be better to word it like "allow scalable vector operations to be used on processors with variable vector lengths"

https://github.com/llvm/llvm-project/pull/68103


More information about the flang-commits mailing list