This is an archive of the discontinued LLVM Phabricator instance.

RegisterPressure: Add operators to RegisterMaskPair
AcceptedPublic

Authored by axeldavy on Mar 19 2017, 4:06 AM.

Details

Summary

Add operators and a new constructor to RegisterMaskPair.
This makes it handier and enables to use set and maps with
the structure.

Diff Detail

Repository
rL LLVM

Event Timeline

axeldavy created this revision.Mar 19 2017, 4:06 AM
rampitec added inline comments.Mar 19 2017, 12:23 PM
include/llvm/CodeGen/RegisterPressure.h
45

That is undesirable to have a constructor which does not initialize fields.

axeldavy updated this revision to Diff 92296.Mar 19 2017, 4:42 PM
This revision is now accepted and ready to land.Mar 19 2017, 4:57 PM