Move architecture-specific code out of codegencommon.cpp (#65488)
authorBruce Forstall <brucefo@microsoft.com>
Thu, 17 Feb 2022 22:25:16 +0000 (14:25 -0800)
committerGitHub <noreply@github.com>
Thu, 17 Feb 2022 22:25:16 +0000 (14:25 -0800)
commita1653160f1c161a40b2f204c6dd3525441b840e4
tree010259929673c29874ad8f8d1bc23832de8d491d
parent053a472be0143bda0891c715d7b2ce7398538127
Move architecture-specific code out of codegencommon.cpp (#65488)

Move about 3300 lines of architecture-specific code to the
architecture-specific codegen files (codegenarm.cpp, codegenarm64.cpp,
codegenarmarch.cpp, codegenxarch.cpp). Much of this is prolog/epilog
generation.

A new set of arch-specific functions, genZeroInitFrameUsingBlockInit,
is added to extract a huge amount of arch-specific code from genZeroInitFrame.

The moved code wasn't altered except to remove unnecessary ifdefs.

Minor:
- inlined and removed getAdjustSP
- removed unused Compiler versions of GetHasTailCalls/SetHasTailCalls
src/coreclr/jit/codegen.h
src/coreclr/jit/codegenarm.cpp
src/coreclr/jit/codegenarm64.cpp
src/coreclr/jit/codegenarmarch.cpp
src/coreclr/jit/codegencommon.cpp
src/coreclr/jit/codegenlinear.cpp
src/coreclr/jit/codegenxarch.cpp
src/coreclr/jit/compiler.h