[PATCH] D159206: [Clang] Propagate target-features if compatible when using mlink-builtin-bitcode

Matt Arsenault via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 30 16:40:26 PDT 2023


arsenm added inline comments.


================
Comment at: clang/lib/CodeGen/CGCall.h:398-401
+/// If \p F "target-features" are incompatible with the \p TargetOpts features,
+/// it is correct to drop the function. \return true if \p F is dropped
+bool dropFunctionWithIncompatibleAttributes(llvm::Function &F,
+                                            const TargetOptions &TargetOpts);
----------------
i think this should be done in a separate patch, just propagate + append for step 1. There are other edge cases I'm worried about handling with this


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D159206/new/

https://reviews.llvm.org/D159206



More information about the cfe-commits mailing list