[Mlir-commits] [mlir] Add support for MLIR to llvm vscale attribute (PR #67012)
Tobias Gysi
llvmlistbot at llvm.org
Thu Sep 21 07:12:54 PDT 2023
================
@@ -1610,6 +1612,16 @@ void ModuleImport::processFunctionAttributes(llvm::Function *func,
funcOp.setArmStreaming(true);
else if (func->hasFnAttribute("aarch64_pstate_sm_body"))
funcOp.setArmLocallyStreaming(true);
+ llvm::Attribute attr = func->getFnAttribute(llvm::Attribute::VScaleRange);
+ if (attr.isValid()) {
----------------
gysit wrote:
Does `attr.isValid()` return if function even has this attribute? Above it looks like there is also a specific function to achieve this (`func->hasFnAttribute("vscale_range")`)?
https://github.com/llvm/llvm-project/pull/67012
More information about the Mlir-commits
mailing list