Skip to content

[Feature Request] Add OPERAND_MEMORY as a OperandType to AArch64 target #158739

@Sharjeel-Khan

Description

@Sharjeel-Khan

I noticed many backends have OperandType so it is easier to query if they are memory operands by checking if OperandType is OPERAND_MEMORY. This is not the case for AArch64 target but you can do this for the ARM target. I looked through all the backend with Operand_Memory and it seems to be mostly for disassembling or llvm-exegesis.

It would be nice to add it to AArch64 because it adds more information to the operands. This new type will help us with simplifying some code in our work within a fork of LLVM that we plan to upstream in the future. The commits that added it previously in other backends said it should not affect anything in-tree. I just want to see if this would be an alright change with maintainers before I make a PR.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions