This is an archive of the discontinued LLVM Phabricator instance.

[TableGen] Implement !getdagargs and !getdagargnames.
AbandonedPublic

Authored by fpetrogalli on May 30 2023, 4:28 AM.

Details

Reviewers
simon_tatham
Summary
``!getdagargs<``\ *type*\ ``>(``\ *dag*\ ``)``
    This operator extracts the list of arguments of the given *dag*.

    Due to limitations of the type system, it is requires that the
    arguments of the given *dag* can be converted to *type*. In
    practice, this means that for each *arg* in the *dag* the
    predicate ``!isa<type>(arg)`` is true.

``!getdagargnames(``\ *dag*\ ``)``
    This operator extracts the list of argument names of the given *dag*.

Diff Detail

Event Timeline

fpetrogalli created this revision.May 30 2023, 4:28 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 30 2023, 4:28 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
fpetrogalli requested review of this revision.May 30 2023, 4:28 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 30 2023, 4:28 AM

I'm confused – isn't D151457 already open for this patch?

I'm confused – isn't D151457 already open for this patch?

Oh! I didn't know about that! What a coincidence! I'll review D151457.

fpetrogalli abandoned this revision.Jun 5 2023, 4:39 AM

Abandoned in favour of the per-element operands getdagarg and getdagname. See https://reviews.llvm.org/D151457#4384382