[llvm-dev] Assigning custom information to IR instruction and passing it to its correspondent in Selection DAG
Przemyslaw Ossowski via llvm-dev
llvm-dev at lists.llvm.org
Thu Apr 25 02:54:55 PDT 2019
Hello,
I’m looking for the best approach which would allow for marking given LLVM
IR instruction during IR custom pass and later utilizing that information
during DAG Instruction Selection in order to match given pattern based on
this marking.
I’m wondering if marking IR instruction utilizing Metadata is good idea.
But how later pass that information to DAG and appropriately mark in
DAGBuilder SDNode, which represents the earlier marked instruction in IR?
Any suggestion how to implement the most efficiently?
I’m expecting there are already similar solutions – maybe someone would be
able to indicate the exact example?
Thanks in advance,
Przemek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190425/64ef9106/attachment.html>
More information about the llvm-dev
mailing list