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

[AIEX] Add support to select Itinerary based of RegClass of Operand #144

Merged
merged 6 commits into from
Aug 22, 2024

Conversation

krishnamtibrewala
Copy link
Collaborator

@krishnamtibrewala krishnamtibrewala commented Aug 6, 2024

NFC, allowing to define instruction with variable itinerary based on regClass.
By default we assume operand 0 for an instruction but the newly added support allows to provide an operand no.

@krishnamtibrewala krishnamtibrewala force-pushed the aie2-variable-itin branch 5 times, most recently from 5a6afe3 to db77249 Compare August 6, 2024 22:54
@krishnamtibrewala krishnamtibrewala force-pushed the aie2-variable-itin branch 2 times, most recently from 85a2442 to 7a36434 Compare August 8, 2024 23:43
@krishnamtibrewala krishnamtibrewala force-pushed the aie2-variable-itin branch 4 times, most recently from 6702bd2 to a2af5cc Compare August 17, 2024 00:34
…airs" with an Instr.

ItineraryRegPairs consist of InstrItinClass, RegisterClass, OperandIdx, this is to allow a target to select Itinerary based on RegClass used for a given operand number
@krishnamtibrewala krishnamtibrewala force-pushed the aie2-variable-itin branch 2 times, most recently from e0746d0 to 6167267 Compare August 21, 2024 18:20
…sed on regClass

This uses CodeGenInstruction data to generate:
 - InstrInfo::getSchedClass(const MCInstrDesc &Desc, iterator_range<const MachineOperand *> Operands)
-- InstrInfo::getSchedClass(const MCInstrDesc &Desc, iterator_range<const MachineOperand *> Operands)
The function defaults to Desc.getSchedClass() in case instr is not defined with variable itinerary
@gbossu gbossu merged commit b10e440 into aie-public Aug 22, 2024
8 checks passed
@gbossu gbossu deleted the aie2-variable-itin branch August 22, 2024 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants