[clang] [CIR] Add support for the IdiomRecognizer pass (PR #208854)

Rithik Sharma via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 13 21:01:02 PDT 2026


================
@@ -3461,6 +3462,9 @@ CIRGenModule::createCIRFunction(mlir::Location loc, StringRef name,
     // Mark C++ special member functions (Constructor, Destructor etc.)
     setCXXSpecialMemberAttr(func, funcDecl);
 
+    // Tag functions that match a known standard library entity.
+    setFuncIdentityAttr(func, funcDecl);
----------------
SharmaRithik wrote:

Done, the spelling is std::find now, the term of art rather than std_find. My earlier not possible only held for the default printer, the quoting printer handles the colons. Thanks to Andy and Cursor for the idea, and also folded into one setFuncInfoAttr.

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


More information about the cfe-commits mailing list