This is an archive of the discontinued LLVM Phabricator instance.

GlobalISel: Add DstOp version of buildIntrinsic
ClosedPublic

Authored by arsenm on May 15 2019, 8:13 PM.

Diff Detail

Event Timeline

arsenm created this revision.May 15 2019, 8:13 PM

The patch looks good. One comment - does it make sense to have two functions or unify the implementation - make the non DstOp version forward to DstOp version?

The patch looks good. One comment - does it make sense to have two functions or unify the implementation - make the non DstOp version forward to DstOp version?

It would require creating another vector constructing DstOps, which seems worse

The patch looks good. One comment - does it make sense to have two functions or unify the implementation - make the non DstOp version forward to DstOp version?

It would require creating another vector constructing DstOps, which seems worse

Fair enough. I'm not strongly opinionated here - either way is good for me.

This revision is now accepted and ready to land.May 15 2019, 8:43 PM

The patch looks good. One comment - does it make sense to have two functions or unify the implementation - make the non DstOp version forward to DstOp version?

It would require creating another vector constructing DstOps, which seems worse

Fair enough. I'm not strongly opinionated here - either way is good for me.

There is some inconsistency in the current set of APIs. buildUnmerge provides ArrayRef<LLT> and ArrayRef<unsigned> variants, whereas buildInstr uses ArrayRef<DstOp>

arsenm closed this revision.May 16 2019, 5:20 AM

r360879