================
@@ -366,6 +366,10 @@ class CodeGenModule : public CodeGenTypeCache {
/// An invalid attribute means that the defaults were computed but no
/// target-features attribute needs to be emitted.
std::optional<llvm::Attribute> DefaultTargetFeatures;
+ /// Lazily cached vscale ranges for feature maps and streaming modes.
+ using VScaleRangeKey =
+ std::pair<const llvm::StringMap<bool> *, TargetInfo::ArmStreamingKind>;
----------------
efriedma-quic wrote:
I'm surprised this works... I don't think there's any in-tree use of a DenseMap
with a key like this. But also, this probably isn't helping; I'd guess looking
up an entry with a StringMap key is more expensive than just recomputing the
vscale given a StringMap.
https://github.com/llvm/llvm-project/pull/241192
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits