Support GT_OBJ for x86
authorCarol Eidt <carol.eidt@microsoft.com>
Sat, 10 Sep 2016 15:24:51 +0000 (08:24 -0700)
committerCarol Eidt <carol.eidt@microsoft.com>
Tue, 20 Sep 2016 21:20:52 +0000 (14:20 -0700)
commite550cf35bd5ff8e7eefcb1a605219f71a3672d83
treeaa931fc667fc8ce4a8085eb132576fbd82f90080
parent53b124af8ab69316223f05d05fba30e069aa0503
Support GT_OBJ for x86

Add support for GT_OBJ for x86, and allow them to be transformed into a list
of fields (in morph) if it is a promoted struct. Add a new list type for
this (GT_FIELD_LIST) with the type and offset, and use it for the multireg
arg passing as well for consistency.
Also refactor fgMorphArgs so that there is a positive check for reMorphing,
rather than relying on gtCallLateArgs, which can be null if there are no
register args.
In codegenxarch, modify the struct passing (genPutStructArgStk) to work for
both the x64/ux and x86 case, including the option of pushing fields onto
the stack.
Eliminate the redundant INS_movs_ptr, and replace with the pre-existing
INS_movsp.
23 files changed:
src/jit/codegenarm.cpp
src/jit/codegenarm64.cpp
src/jit/codegencommon.cpp
src/jit/codegenlinear.h
src/jit/codegenxarch.cpp
src/jit/compiler.h
src/jit/flowgraph.cpp
src/jit/gentree.cpp
src/jit/gentree.h
src/jit/gtlist.h
src/jit/gtstructs.h
src/jit/importer.cpp
src/jit/instr.h
src/jit/jit.h
src/jit/lower.cpp
src/jit/lower.h
src/jit/lowerarm64.cpp
src/jit/lowerxarch.cpp
src/jit/lsra.cpp
src/jit/morph.cpp
src/jit/rationalize.cpp
src/jit/regalloc.cpp
src/jit/valuenum.cpp