Mill Computing, Inc. › Forums › The Mill › Tools › Compilers › The Compiler › Reply To: The Compiler
Keep in mind that when dealing with LLVM IR, you already have to consider lowering its intrinsics [1] (though I believe you get some defaults like “llvm.memcpy” calling “memcpy”, if your target doesn’t do smarter lowering).
Some intrinsics (“llvm.memcpy”, “llvm.memmove”, “llvm.memset” and possibly more) are automatically detected from naive loops and are also generated from compilers, e.g. for shallow copies.
[1] http://llvm.org/docs/LangRef.html#standard-c-library-intrinsics
-
This reply was modified 9 years, 2 months ago by
eddyb.