Skip to content
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

Refactor machine operand accessors in EraVMInstrInfo.h so they use logical operands mappings #516

Open
akiramenai opened this issue May 3, 2024 · 0 comments

Comments

@akiramenai
Copy link
Collaborator

If to set let UseLogicalOperandMappings = true for an instruction, LLVM produces mappings to identify:

  • logical operand index -> its size (getLogicalOperandSize)
  • logical operand index -> its type (getLogicalOperandType)
  • logical operand index -> machine operand index (getLogicalOperandIdx)
    We enable these mappings in [EraVM][CodeEmitter] Emit arithmetics and pointer arithmetics #507.
    In the same time EraVMInstrInfo.h define similar functions: argumentType, argumentSize and functions to calculate iterators to corresponding machine operands. This logic is to be replaced with tablegen generated one.
@akiramenai akiramenai changed the title Refactor machine operand aggressors so they use logical operands mapping Refactor machine operand accessors so they use logical operands mapping May 3, 2024
@akiramenai akiramenai changed the title Refactor machine operand accessors so they use logical operands mapping Refactor machine operand accessors in EraVMInstrInfo.h so they use logical operands mappings May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant