Skip to content

Do not keep "global" SPIR-V instructions in MachineFunctions #170

@iliya-diyachkov

Description

@iliya-diyachkov

We probably can avoid keeping copies of "global" SPIR-V instructions in each MachineFunction, at least for some of them. For this purpose we need to implement a special cache for such "global" instructions in SPIRVGlobalRegister. For this implementation we need to find out how to

  • print the instructions from the cache to represent them in MachineFunction dumps,
  • what data structures should represent cached instructions (candidates so far are MCInst or new custom class),
  • how safely link cached instructions with other MachineInstrs in different MachineFunctions.
    I think we can do this for OpDecorate and OpName instructions, then also support Types/Consts/GVars/Funcs and others if applicable to them.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions