[clang] [AArch64] Add option -msve-streaming-vector-bits= . (PR #144611)
Pengcheng Wang via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 18 20:02:14 PDT 2025
================
@@ -1034,9 +1034,16 @@ class TargetInfo : public TransferrableTargetInfo,
/// set of primary and secondary targets.
virtual llvm::SmallVector<Builtin::InfosShard> getTargetBuiltins() const = 0;
+ enum class ArmStreamingKind {
+ NotStreaming,
+ StreamingCompatible,
+ Streaming,
+ };
+
/// Returns target-specific min and max values VScale_Range.
virtual std::optional<std::pair<unsigned, unsigned>>
- getVScaleRange(const LangOptions &LangOpts, bool IsArmStreamingFunction,
+ getVScaleRange(const LangOptions &LangOpts,
+ ArmStreamingKind IsArmStreamingFunction,
----------------
wangpc-pp wrote:
Why can't we add `IsArmStreamingFunction` to `LangOpts`? It it weird to add a target-specific parameter to a common hook.
https://github.com/llvm/llvm-project/pull/144611
More information about the cfe-commits
mailing list