Skip to content

[GlobalISel] Indirectify memory inputs for inline assembly #139078

Open
@Pierre-vh

Description

@Pierre-vh

We want memory input operands to be indirect in inline assembly, and if that's not the case then lowering fails.
#139077 was twice reverted because of it.

It looks like all we need to do is store the value on the stack then return the address of the stack slot to "indirectify" the input. Constants can be handled through the constant pool

see getAddressForMemoryInput in SelectionDAGBuilder.cpp

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions