Page MenuHomePhabricator

TableGen: Add IntrHasSideEffects property for intrinsics
Needs ReviewPublic

Authored by tstellarAMD on Jul 18 2016, 5:18 AM.

Details

Summary

The IntrNoMem, IntrReadMem, IntrWriteMem, and IntrArgMemOnly intrinsic
properties differ from their corresponding LLVM IR attributes by specifying
that the intrinsic, in addition to its memory properties, has no other side
effects.

The IntrHasSideEffects flag used in combination with one of the memory flags
listed above, makes it possible to define an intrinsic such that its
properties at the CodeGen layer match its properties at the IR layer.

Diff Detail

Event Timeline

tstellarAMD retitled this revision from to TableGen: Add IntrHasSideEffects property for intrinsics.
tstellarAMD updated this object.
tstellarAMD added a subscriber: llvm-commits.
mehdi_amini edited edge metadata.Jul 18 2016, 1:27 PM

makes it possible to define an intrinsic such that its properties at the CodeGen layer match its properties at the IR layer.

+1 for that! Thanks for cleaning this up.