Hi,I'm implementing a front end which apply its own APIs to generate ScheduleTree in isl.And I want to use AKG as my back end to generate GPU or Acend code. So I want to do "AutoPoly" stage with my own Schedule Tree which is identical to AKG's generated ScheduleTree and do next sequential passes as AKG did. I replace
MakeScheduleTree()
in scop_builder.cc with my ScheduleTree string.But I noticed that its origal implementation do a lot to initialize scop_info which is critical to Transform() and GenHalide() in AutoPoly stage.(I learned that by reading the source code)
And I don't want to generate Stmt by "schedule.ScheduleOps"becase if I had did it ,there was no need to generate ScheduleTree by my own.
Futhermore,the original ScheduleTree generation including scop_info assignment depends on Stmt,so I'm a little confused how to skip Stmt and assign scop_info .Is that a possibal way to assign scop_info?If not ,any other tips to implement my thought?Or what should I learn to do that?
Thanks a lot.
Hi,I'm implementing a front end which apply its own APIs to generate ScheduleTree in isl.And I want to use AKG as my back end to generate GPU or Acend code. So I want to do "AutoPoly" stage with my own Schedule Tree which is identical to AKG's generated ScheduleTree and do next sequential passes as AKG did. I replace
in scop_builder.cc with my ScheduleTree string.But I noticed that its origal implementation do a lot to initialize scop_info which is critical to Transform() and GenHalide() in AutoPoly stage.(I learned that by reading the source code)
And I don't want to generate Stmt by "schedule.ScheduleOps"becase if I had did it ,there was no need to generate ScheduleTree by my own.
Futhermore,the original ScheduleTree generation including scop_info assignment depends on Stmt,so I'm a little confused how to skip Stmt and assign scop_info .Is that a possibal way to assign scop_info?If not ,any other tips to implement my thought?Or what should I learn to do that?
Thanks a lot.