================ @@ -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; ---------------- wangpc-pp wrote:
Put it at the entry of `CheckBuiltinFunctionCall` may not be enough, we still need to construct the feature map for each builtin inside a function. This map should be constructed when entering a function scope. https://github.com/llvm/llvm-project/pull/126064 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits