Support G_FRAME_INDEX instruction selection.
Diff Detail
- Repository
- rL LLVM
Event Timeline
Seems reasonable; a couple nits.
test/CodeGen/X86/GlobalISel/frameIndex-instructionselect.mir | ||
---|---|---|
3 | Also test X32 LEA64_32r? and rename the i386 check prefix ;) | |
7 | FWIW, I found this function more confusing than helpful: it doesn't involve any frame index for x86_64, yet the mir has one. Maybe make the function an empty void() ? We still want to teach mir not to require an IR definition someday. Alternatively, write a test using an alloca? That should have the same behavior everywhere. |
LGTM, thanks!
Looks like the test has a file mode svn prop, maybe you can undo that?
lib/Target/X86/X86LegalizerInfo.cpp | ||
---|---|---|
72 | Maybe check STI->isTarget64BitILP32 so that you don't have to carry around a TargetMachine? |
Maybe check STI->isTarget64BitILP32 so that you don't have to carry around a TargetMachine?