facebookresearch / CompilerGym

Reinforcement learning environments for compiler and program optimization tasks
https://compilergym.ai/
MIT License
906 stars 127 forks source link

[WIP] Bump ProGraML to include the type graph patch. #731

Open ChrisCummins opened 2 years ago

ChrisCummins commented 2 years ago

This adds the patch from https://github.com/ChrisCummins/ProGraML/pull/199 to add type graphs to ProGraML representation.

In [1]: import compiler_gym

In [2]: env = compiler_gym.make('llvm-v0')

In [3]: env.reset()

In [4]: G = env.observation.Programl()