PreISelIntrinsicLowering: Check RuntimeLibcalls instead of TLI for memory functions
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Thu, 10 Aug 2023 00:26:11 +0000 (20:26 -0400)
committerTobias Hieta <tobias@hieta.se>
Mon, 21 Aug 2023 07:53:10 +0000 (09:53 +0200)
commitb89a2ac64f641e8d38fcb15c626b0a9707013bba
tree4429e1bb3a85289e56c1e2f215b46279ccb79184
parentd489df7cfbfbb30a6440e2961106bd2f832f1494
PreISelIntrinsicLowering: Check RuntimeLibcalls instead of TLI for memory functions

We need a better mechanism for expressing which calls you are allowed
to emit and which calls are recognized. This should be applied to the
17 branch.

(cherry picked from commit c8cac156135de8e211b800ea5abe9666803b2875)
llvm/include/llvm/CodeGen/CodeGenPassBuilder.h
llvm/include/llvm/CodeGen/PreISelIntrinsicLowering.h
llvm/lib/CodeGen/PreISelIntrinsicLowering.cpp
llvm/test/CodeGen/ARM/no-expand-memcpy-no-builtins.ll [new file with mode: 0644]
llvm/test/Transforms/PreISelIntrinsicLowering/X86/lit.local.cfg [new file with mode: 0644]
llvm/test/Transforms/PreISelIntrinsicLowering/X86/load-relative.ll [moved from llvm/test/Transforms/PreISelIntrinsicLowering/load-relative.ll with 89% similarity]
llvm/test/Transforms/PreISelIntrinsicLowering/X86/objc-arc.ll [moved from llvm/test/Transforms/PreISelIntrinsicLowering/objc-arc.ll with 99% similarity]