[clang] [RISCV][Sema] Add feature check for target attribute to VSETVL intrinsics (PR #126064)
Brandon Wu via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 6 19:38:39 PST 2025
================
@@ -623,13 +623,37 @@ bool SemaRISCV::CheckBuiltinFunctionCall(const TargetInfo &TI,
}
}
+ auto checkVsetvl = [&](unsigned SEWOffset,
+ unsigned LMULOffset) -> bool {
+ const FunctionDecl *FD = SemaRef.getCurFunctionDecl();
+ llvm::StringMap<bool> FunctionFeatureMap;
----------------
4vtomat wrote:
Maybe it can be constructed at the entry of `CheckBuiltinFunctionCall`, let me refactor it
https://github.com/llvm/llvm-project/pull/126064
More information about the cfe-commits
mailing list