[clang] [llvm] [Clang][InstCombine] Recognise div/ldiv/lldiv libcalls (PR #215868)

Craig Topper via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 13 13:06:42 PDT 2026


================
@@ -923,7 +923,13 @@ static void parseAnalyzerConfigs(AnalyzerOptions &AnOpts,
 static void getAllNoBuiltinFuncValues(ArgList &Args,
                                       std::vector<std::string> &Funcs) {
   std::vector<std::string> Values = Args.getAllArgValues(OPT_fno_builtin_);
-  auto BuiltinEnd = llvm::partition(Values, Builtin::Context::isBuiltinFunc);
+  auto IsBuiltinFunc = [](StringRef Name) {
+    // These libcalls have target-specific aggregate return types that cannot be
----------------
topperc wrote:

Doesn't Builtins.td allow an empty prototype string when it can't be expressed?

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


More information about the cfe-commits mailing list