[Mlir-commits] [mlir] Add support for MLIR to llvm vscale attribute (PR #67012)
Mats Petersson
llvmlistbot at llvm.org
Fri Sep 22 09:35:32 PDT 2023
================
@@ -2342,6 +2342,19 @@ ParseResult LLVMFuncOp::parse(OpAsmParser &parser, OperationState &result) {
result.addAttribute(getFunctionTypeAttrName(result.name),
TypeAttr::get(type));
+ if (succeeded(parser.parseOptionalKeyword("vscale_range"))) {
----------------
Leporacanthicus wrote:
I did try this, but I had some problems with getting a VScaleRangeAttr from the returned value for getAttribute - or something like that. I must say I didn't find it particularly easy to do what I wanted - probably because I've not really worked with MLIR attributes - especially not "other attributes that have something more than a simple value". And I though the `arm_streaming` attrribute was a good starting point... ;)
https://github.com/llvm/llvm-project/pull/67012
More information about the Mlir-commits
mailing list