This is an archive of the discontinued LLVM Phabricator instance.

CfgTraits: add CfgInstructionRef
AcceptedPublic

Authored by nhaehnle on Aug 9 2020, 7:31 AM.

Details

Summary

In CFGs where a single instruction can define multiple values, the
distinction is significant.

Change-Id: Ic15e8e34428ea71023cd644739b1114cebab9594

Diff Detail

Event Timeline

nhaehnle created this revision.Aug 9 2020, 7:31 AM
Herald added a reviewer: aartbik. · View Herald Transcript
Herald added projects: Restricted Project, Restricted Project, Restricted Project. · View Herald Transcript
nhaehnle requested review of this revision.Aug 9 2020, 7:31 AM
arsenm added inline comments.Aug 11 2020, 7:08 AM
llvm/include/llvm/CodeGen/MachineCfgTraits.h
100

llvm_unreachable?

nhaehnle updated this revision to Diff 285711.Aug 14 2020, 11:37 AM
  • use llvm_unreachable
nhaehnle marked an inline comment as done.Aug 14 2020, 11:38 AM
nhaehnle added inline comments.
llvm/include/llvm/CodeGen/MachineCfgTraits.h
100

Makes sense, done.

arsenm accepted this revision.Sep 15 2020, 6:20 AM

LGTM

This revision is now accepted and ready to land.Sep 15 2020, 6:20 AM