[llvm] [FMV][GlobalOpt] Statically resolve calls to versioned functions. (PR #87939)

Jon Roelofs via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 16 11:28:32 PST 2025


================
@@ -1850,6 +1850,13 @@ class TargetTransformInfo {
   /// false, but it shouldn't matter what it returns anyway.
   bool hasArmWideBranch(bool Thumb) const;
 
+  /// Returns a bitmask constructed from the target-features or fmv-features
+  /// metadata of a function.
+  uint64_t getFeatureMask(Function &F) const;
----------------
jroelofs wrote:

can it be `const Function &`? likewise for `isMultiversionedFunction`

https://github.com/llvm/llvm-project/pull/87939


More information about the llvm-commits mailing list