================
@@ -50,4 +88,14 @@ def CIR_StdFindOp : CIR_StdOp<"find",
   }];
 }
 
+def CIR_StrLenOp : CIR_CStdLibOp<"strlen",
+  (ins CIR_PtrToChar8Type:$string),
+  (outs CIR_AnyFundamentalUIntType:$result)> {
----------------
erichkeane wrote:

I wonder if we should just do these analysis/function recognizing with the FE?  
As a part of our 'lower function' we could decide if it is the 'right' 
function?  

It seems like a lot of extra work here to recognize these when the FE has the 
info.

https://github.com/llvm/llvm-project/pull/210400
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to