API to create a new Allocate node?

Cesar Soares Lucas Divino.Cesar at microsoft.com
Thu Apr 28 20:24:09 UTC 2022


Hi there!

I have a quick question. I'm trying to implement an optimization idea in C2 and it requires me to insert Allocate nodes in some places in the IR graph. I'm wondering if there is already a method that I can use that creates the node and adds the necessary edges to surrounding nodes. I tried to use GraphKit::new_instance but after some failed attempts I got the impression that that class is not guaranteed to work outside the parsing phase. 


Any advice would be appreciated.
Cesar


More information about the hotspot-compiler-dev mailing list