-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LSRA: Refactor some of the methods around creating kill set #102469
Conversation
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch |
@dotnet/jit-contrib |
@jakobbotsch - i fixed some riscv64 build errors. PTAL |
@@ -131,8 +131,8 @@ ABIPassingInformation RiscV64Classifier::Classify(Compiler* comp, | |||
regNumber secondReg = (isSecondFloat ? m_floatRegs : m_intRegs).Dequeue(); | |||
|
|||
return {2, new (comp, CMK_ABI) | |||
ABIPassingSegment[]{ABIPassingSegment::InRegister(firstReg, 0, firstSize), | |||
ABIPassingSegment::InRegister(secondReg, offset, secondSize)}}; | |||
ABIPassingSegment[2]{ABIPassingSegment::InRegister(firstReg, 0, firstSize), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i get build error locally without it:
[ 68%] Building CXX object jit/CMakeFiles/clrjit_unix_riscv64_x64.dir/targetriscv64.cpp.o
/home/kpathak/git/runtime/src/coreclr/jit/targetriscv64.cpp: In member function ‘ABIPassingInformation RiscV64Classifier::Classify(Compiler*, var_types, ClassLayout*, WellKnownArg)’:
/home/kpathak/git/runtime/src/coreclr/jit/targetriscv64.cpp:165:46: error: expected primary-expression before ‘]’ token
165 | ABIPassingSegment[]{passSlot(0, TARGET_POINTER_SIZE),
| ^
/home/kpathak/git/runtime/src/coreclr/jit/targetriscv64.cpp:166:111: error: too many initializers for ‘ABIPassingSegment [1]’
166 | passSlot(TARGET_POINTER_SIZE, passedSize - TARGET_POINTER_SIZE)}};
| ^
make[3]: *** [jit/CMakeFiles/clrjit_unix_riscv64_x64.dir/build.make:1613: jit/CMakeFiles/clrjit_unix_riscv64_x64.dir/targetriscv64.cpp.o] Error 1
make[2]: *** [CMakeFiles/Makefile2:2685: jit/CMakeFiles/clrjit_unix_riscv64_x64.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:1681: CMakeFiles/crosscomponents.dir/rule] Error 2
make: *** [Makefile:299: crosscomponents] Error 2
/ba-g failure is related to #102479 |
…02469) * refactor code around buildkill * fix build errors * some more errors * jit format * fix riscv64 * make retTypeDesc as noway_assert * fix riscv64 errors * jit format
…02469) * refactor code around buildkill * fix build errors * some more errors * jit format * fix riscv64 * make retTypeDesc as noway_assert * fix riscv64 errors * jit format
I did some refactoring and separated out the methods for the ones that create multiple defs vs. single def as well the one with create defs for call, and the ones that just build the
killMask.
This is in preparation for the upcoming work I am doing to add support for predicate registers. This patch is extracted out from #98258