[llvm-dev] creating Intrinsic DAG Node
Matt Arsenault via llvm-dev
llvm-dev at lists.llvm.org
Tue Feb 2 12:55:59 PST 2016
> On Feb 2, 2016, at 12:43, Ryan Taylor <ryta1203 at gmail.com> wrote:
> This seems to generate llvm.my_intrinsic just fine in the DAG, so no DAG errors; however, it won't match. For example, if I call the intrinsic from C, the DAG node looks to be named the same in dotty file but it won't match... am I missing something?
> I've done it exactly the way it was done above. The DAG looks great but it won't match. Did I miss something?
Are you using the right intrinsic type? Does it have a chain or result?
How are you calling it from C? Are you declaring the intrinsic? This can fail if you mismatched the readnone or readonly to the actual intrinsic definition
More information about the llvm-dev